DO NOT REPLY [Bug 5644] New: Option to recheck basis dirs for existing dest files

samba-bugs at samba.org samba-bugs at samba.org
Tue Jul 29 18:26:25 GMT 2008


https://bugzilla.samba.org/show_bug.cgi?id=5644

           Summary: Option to recheck basis dirs for existing dest files
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: matt at mattmccutchen.net
         QAContact: rsync-qa at samba.org


Currently, rsync does not check basis dirs for existing destination files.  As
the man page description of --link-dest puts it, existing destination files are
"definitive".  I would like an option, tenatively named --recheck-basis-dirs,
to make them non-definitive.  Specifically, with this option:

- An existing destination file that matches a --compare-dest file would be
deleted regardless of --delete.  (Deletion without --delete might seem
surprising, but the goal is to leave the destination in the correct state with
respect to the basis dir for the paths that are being processed on the current
run.  Think of it like --force.)

- An existing destination file that matches a --link-dest file would be
replaced with a hard link to the --link-dest file.

(The analogue for --copy-dest would be to replace a destination file matched in
a --copy-dest dir with a copy of the --copy-dest file, but I don't see any
point in doing that.)

I'm thinking that both cases should be itemized as if the destination file
never existed, but I'm not sure of this.


-- 
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