On Sat, 16 Feb 2013 13:04:18 +0000 Neil Sedger neil@moley.org.uk allegedly wrote:
-c will do it, from the man:
-c, --checksum skip based on checksum, not mod-time & size
But you'll have to do this every time from now on and it takes a while as it has to checksum each file. Quicker than copying it again though.
Neil
Thanks for this. It (along with other comments) prompted a thorough re-read of the man page. I can see that this might help, but there appears to be a downside in the computation of a 128 bit MD5 hash for each file. That might be quick enough on my desktop, but I fear that the NAS might struggle a bit and the rsync might then take longer than the straight copy would have done. I might experiment some time later.
I did, however, note that the --size-only option might have helped me because that would check only the file sizes and not the modification time. Since the files haven't changed in size, then no re-transfer would be necessary.
Overall lesson. Don't assume that what I think I know is correct. And read the manual properly. Oh, and don't cock things up in the first place.
Thanks again to all who replied.
Mick ---------------------------------------------------------------------
blog: baldric.net gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312
---------------------------------------------------------------------