Discussion:
Difference in --link-dest.
Maxim Kudelya
2005-07-22 22:01:45 UTC
Permalink
Hello,
Why if I do in my home directory:

rsync -av --link-dest=sources/ sources/ backup.0/

that's don't make hardlinks, but copy.

rsync -av --link-dest=/home/maxim/sources/ /home/maxim/sources/ /home/maxim/backup.0/

is work properly and I get hardlinks.
I'm use Debian 3.1 and rsync version 2.6.4 protocol version 29.

Thanks,
Maxim.
Wayne Davison
2005-07-22 21:08:21 UTC
Permalink
Post by Maxim Kudelya
rsync -av --link-dest=sources/ sources/ backup.0/
that's don't make hardlinks, but copy.
Because, as the documentation states, --list-dest is relative to the
destination, so it's looking in backup.0/sources for potential files.
Try using --link-dest=../sources or even --link-dest=$PWD/sources.

..wayne..

Loading...