Problems with link-dest

Matt McCutchen hashproduct at gmail.com
Tue May 16 20:15:12 GMT 2006


On Tue, 2006-05-16 at 08:10 -0700, Wayne Davison wrote:
> The
> reason they are not linked together is that you didn't use --times (-t)
> in your rsync copy, so they ended up needing different timestamps, and
> rsync can only hard-link files that have identical attributes.

Not exactly.  Only a difference in a _preserved_ attribute prevents a
hard link.  The files aren't linked because the quick check, which is by
default based on size and time even if times are not being preserved,
failed.  Thus rsync decided that the file's data needed to be
transferred, so it could not hard link to the old file.  If one uses
--checksum or --size-only without --times, rsync is perfectly happy to
make hard links.

Matt




More information about the rsync mailing list