--link-dest
Matt McCutchen
hashproduct+rsync at gmail.com
Tue Jan 2 21:47:56 GMT 2007
On 1/2/07, tony.chamberlain at lemko.com <tony.chamberlain at lemko.com> wrote:
> rsync -a --delete --link-dest=/home/chamberl/oldbk/
> /home/chamberl/source/ /home/chamberl/backup/
>
> I make sure that /home/chamberl/source has some files exactly the same as in
> /home/chamberl/oldbk/
> but evertything gets copiued, and no hard links are done (though they should
> be).
Rsync only makes hard links if the source files match the oldbk files
in all preserved attributes. Since you used -a, these attributes are
permissions and modification time, plus user and group if rsync runs
as root. Do these attributes match between source and oldbk files?
Matt
More information about the rsync
mailing list