On 15/02/13 19:29, mick wrote:
Nev
Thnaks for that, but I don't think it will work. The problem I have is that all the files on the /sender/ are now newer than the original backups on the NAS.
I may just have to recopy all the source files from disk to disk using the -p switch to cp so that the file time stamps are maintained. That way the NAS won't see all the source files as being newer next time I kick off the rsync.
I'm not sure why you didn't use rsync to copy them back rather than cp ?
Anyway the answer to your original question is that the default behaviour for rsync is to only compute file differences via the checksums if the modification dates between source and destination indicate the file has changed (source is newer than the destination) So it's not actually recopying everything (though if things like permissions have changed on the source files they will now overwrite those on the target and naturally the timestamps will be updated) Previously when you ran your backup it would have just skipped anything that had the same or older timestamp than the target.
The other thing you could do is use rsync to copy over the top resetting the timestamps back. This would be quicker than using cp as it won't have to copy the whole file over, however you'd need to set some options to tell to ignore the newer timestamps on the target.