bug with --link-dest ?

Matt McCutchen hashproduct+rsync at gmail.com
Mon Jan 22 11:30:01 GMT 2007

On 1/22/07, Tony Abernethy <tony at servacorp.com> wrote:
> > cd /path/to; rsync -vaH --progress --delete --stats --numeric-ids
> > -x --link-dest=./filetree/ ./filetree/ ./current/
> If my understanding is right, that would attempt to link files from
> ./current/./filetree
> You maybe want a --link-dest=../filetree
> (Flames invited if I've got this wrong)

You're right.  The description of --link-dest=DIR in the man page
says, "If DIR is a relative path, it is relative to the destination
directory."  This is because the generator and receiver access the DIR
by name after changing into the destination directory.


More information about the rsync mailing list