bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp -u


From: Markku A. Mähönen
Subject: cp -u
Date: Sat, 14 Jun 2008 11:28:14 +0300

Hi!

I'm using Ubuntu version 8.04, kernel 2.6.24-19-generic. I have done some
simple backups of directories using 'cp -u' that updates the files, if
source is newer than the destination (or if destination file is missing).

I noticed that if, for some reason, the copy of a file is interrupted (and
so the destination file is not the same size as the source) and after that
you do 'cp -u' again it does not update the interrupted file. So the 'cp -u'
does not care about the file size mismatch and cares only about the
timestamps.

So I would like to suggest that 'cp -u' should also check the size of the
files and do a copy if source is newer, or if destination is missing, or if
file sizes are different.

Regards,

Markku A. Mähönen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]