samba-bugs@samba.org
2007-Sep-08 22:57 UTC
DO NOT REPLY [Bug 4961] New: rsync ignores --compare-dest flag?
https://bugzilla.samba.org/show_bug.cgi?id=4961 Summary: rsync ignores --compare-dest flag? Product: rsync Version: 2.6.9 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: jae@platinumpsi.com QAContact: rsync-qa@samba.org Perhaps I have the syntax wrong, however, the following attempts to copy all files in SOURCE every time: 1. mkdir LATEST_CHANGES SOURCE BACKUP_STAGING 2. touch SOURCE/filea SOURCE/fileb SOURCE/filec 3. rsync -avi SOURCE/* LATEST_CHANGES (all files copied, as expected) 4. touch SOURCE/filed SOURCE/filee 5. rsync -avin SOURCE/* BACKUP_STAGING --compare-dest=LATEST_CHANGES always reports the three files that are in LATEST_CHANGES: building file list ... done>f+++++++ filea >f+++++++ fileb >f+++++++ filec >f+++++++ filed >f+++++++ filee( diff SOURCE LATEST_CHANGES yields: ) Only in SOURCE: filed Only in SOURCE: filee (implying that files a,b, and c match.) SO - I'm expecting that filed and filee be copied to BACKUP_STAGING, but not files a,b, and c. ultimately, I plan to use this as follows: rsync -avi SOURCE/* BACKUP_STAGING --compare-dest=LATEST_CHANGES --compare-dest=BOM_REPO Is this a bug? Or am I just using it the wrong way? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Sep-08 23:01 UTC
DO NOT REPLY [Bug 4961] rsync ignores --compare-dest flag?
https://bugzilla.samba.org/show_bug.cgi?id=4961 ------- Comment #1 from jae@platinumpsi.com 2007-09-08 18:02 CST ------- just discovered that the behavior seems to work as it's supposed to as long as the paths are absolute paths. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Sep-09 00:19 UTC
DO NOT REPLY [Bug 4961] rsync ignores --compare-dest flag?
https://bugzilla.samba.org/show_bug.cgi?id=4961 ------- Comment #2 from hashproduct+rsync@gmail.com 2007-09-08 19:19 CST ------- You're using it the wrong way. The man page description of --compare-dest=DIR says, "If DIR is a relative path, it is relative to the destination directory." So your option should be --compare-dest=../LATEST_CHANGES . -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Sep-11 02:00 UTC
DO NOT REPLY [Bug 4961] rsync ignores --compare-dest flag?
https://bugzilla.samba.org/show_bug.cgi?id=4961 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #3 from wayned@samba.org 2007-09-10 21:01 CST ------- As noted, the path needed to be tweaked to work. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.