You are not logged in.
I'm backing up my harddrive to my backup external drive (which is where I got the files from in the first place). cp --update is copying EVERYTHING all over again just because the modify times are different (by one day because of how I transferred files to my backup in the first place).
Is there a simple/elegant solution to only copying files that don't exist at the target directory? ie. an --update but without the copying of 'newer' versions of old files?
Last edited by virati (2010-01-30 20:37:38)
Offline
I'm backing up my harddrive to my backup external drive (which is where I got the files from in the first place). cp --update is copying EVERYTHING all over again just because the modify times are different (by one day because of how I transferred files to my backup in the first place).
Is there a simple/elegant solution to only copying files that don't exist at the target directory? ie. an --update but without the copying of 'newer' versions of old files?
cp --no-clobber
Offline
virati wrote:I'm backing up my harddrive to my backup external drive (which is where I got the files from in the first place). cp --update is copying EVERYTHING all over again just because the modify times are different (by one day because of how I transferred files to my backup in the first place).
Is there a simple/elegant solution to only copying files that don't exist at the target directory? ie. an --update but without the copying of 'newer' versions of old files?
cp --no-clobber
gah! I looked through the cp --help 3 times and can't believe i looked over that each time. Thanks!
Offline
Offline
rsync is wayyyyy better for backups
rsync -av --delete $SRC/ $TARGET
Offline