hard links question

Wayne Davison wayned at samba.org
Tue Feb 8 19:33:55 GMT 2005


On Sun, Feb 06, 2005 at 10:23:21PM -0800, Alex Farid Aliev wrote:
> Desired behavior is to create new file if permissions
> have changed versus changing file2 in place.

Rsync doesn't have any logic to try to deal with hard-links from files
inside of the transfer to files outside of the transfer.  If you're
doing some kind of a backup, check into the --link-dest option:  you
would transfer into an empty hierarchy and let rsync create the hard-
links for identical files (in both attributes and content).

..wayne..


More information about the rsync mailing list