Re: --compare-dest not working for me. what am I doing wrong?

2007-11-15 Thread Wayne Davison
On Thu, Nov 15, 2007 at 10:29:58PM +0100, Lucas Meijer wrote: > mkdir a b c > echo foo > a/test > echo foo > b/test > rsync -av --compare-dest=../b a/ c/ The two test files don't match in their preserved attributes. They must either have the same mtime, or you must not ask rsync to preserve times

Re: --compare-dest not working for me. what am I doing wrong?

2007-11-15 Thread Lucas Meijer
Hey Matt, 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/ tried that too, same result for me: mkdir a b c echo foo > a/test echo foo > b/test rsync -av --compare-dest=../b a/ c

Re: --compare-dest not working for me. what am I doing wrong?

2007-11-15 Thread Matt McCutchen
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

--compare-dest not working for me. what am I doing wrong?

2007-11-15 Thread Lucas Meijer
Hey. Can anybody spot my mistake? mkdir a b c echo foo > a/test echo foo > b/test rsync -av --compare-dest=b a/ c/ Expected results: no copy of a/test to c/test, since it is already present in b. Actual results: a/test gets copied to c/test What is wrong here? My expectation? my syntax? I'm