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

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


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 at samba.org
        ReportedBy: jae at platinumpsi.com
         QAContact: rsync-qa at 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.


More information about the rsync mailing list