--link-dest

Matt McCutchen
Sat, 15 Dec 2007 03:55:52 -0000

On Fri, 2007-12-14 at 17:50 -0800, Alan Batie wrote:
> The first step is
> to be able to verify that --link-dest works on it, but I can't even get
> it to work in an known-good environment --- no matter how I specify the
> args to it, it's copying the file rather than linking

> <agora.rdrop.com> [151] $ rsync -a --link-dest=b.1 x b.0

The man page description of --link-dest states that rsync interprets the
path relative to the destination directory, so you need to pass
--link-dest=../b.1 .

Matt