--compare-dest not working for me. what am I doing wrong?
matt at mattmccutchen.net
Thu Nov 15 18:11:38 GMT 2007
On Thu, 2007-11-15 at 15:41 +0100, Lucas Meijer wrote:
> Can anybody spot my mistake?
> mkdir a b c
> echo foo > a/test
> echo foo > b/test
> rsync -av --compare-dest=b a/ c/
Relative --*-dest paths are interpreted relative to the destination
directory (as stated in the man page), so you should use:
rsync -av --compare-dest=../b a/ c/
More information about the rsync