[Dirvish] [patch] local to remote backup; dirvish push

Robert Siemer Robert.Siemer-dirvish at backsla.sh
Tue Aug 29 21:58:57 UTC 2006


> 2.6.2 says:
>   --link-dest=DIR
>     This option behaves like --compare-dest but  also  will  create
>     hard  links from DIR to the destination directory for unchanged
>     files.  Files with changed ownership or permissions will not be
>     linked.   Like  --compare-dest if DIR is a relative path, it is
>     relative to the  destination  directory  (which  changes  in  a
>     recursive transfer).

I read the comment in parentheses as an superfluous note that the
directory to link from changes while descending into subdirs. But of
course it descends, too, thus "changes".

> But, I'm seeing the same behavior in both 2.6.2 and 2.6.5.  Did 2.6.8 
> change this?  Have you check the link counts?  Try the following:
> 
>   $ mkdir -p /tmp/rsync_test/orig/foo/bar
>   $ cd /tmp/rsync_test 
>   $ echo "foo" > orig/foo/bar/test
>   $ rsync -av orig/ 1
>   $ rsync -av --link-dest 1 orig/ 2

This is wrong. It should be "--link-dest ../1" to be relative to the
destination. Works here as expected. Could you try this with 2.6.2,
please?


Greetings,
		Robert


More information about the Dirvish mailing list