Lucas Meijer
2007-Nov-15 14:41 UTC
--compare-dest not working for me. what am I doing wrong?
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 having the same trouble with --link-dest, and --copy-dest. The behaviour I'm seeing from rsync, is what I would have expected if the --XX-dest= parameter would be missing. (I've tried every variation of having or not having slashes after the a/ b/ and c/'s I could think of) (tested with 2.6.9 on linux, and with cwrsync 2.6.9 on windows xp) Bye, Lucas
Matt McCutchen
2007-Nov-15 18:11 UTC
--compare-dest not working for me. what am I doing wrong?
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/ Matt
Possibly Parallel Threads
- cwrsync and link-dest option
- Possibile rsync --link-dest or --compare-dest bug
- Windows Trouble with --link-dest set: "file not found" when rsync tries to create hard link
- --compare-dest -- copy ONLY files with content-differences between 2 directories... to a third
- RSync --compare-dest