DO NOT REPLY [Bug 4961] New: rsync ignores --compare-dest flag?

samba-bugs at samba-bugs at
Sat Sep 8 22:57:33 GMT 2007

           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 at
        ReportedBy: jae at
         QAContact: rsync-qa at

Perhaps I have the syntax wrong, however, the following attempts to copy all
files in SOURCE every time:

2. touch SOURCE/filea SOURCE/fileb SOURCE/filec
(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

Is this a bug?  Or am I just using it the wrong way?

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list