samba-bugs@samba.org
2008-Nov-11 07:32 UTC
DO NOT REPLY [Bug 5887] New: RFE: --link-any-dest option considers contents only, ignores name
https://bugzilla.samba.org/show_bug.cgi?id=5887
Summary: RFE: --link-any-dest option considers contents only,
ignores name
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: Dave@Yost.com
QAContact: rsync-qa@samba.org
Use case: say you have a directory full of media files on the source, and you
copy them all to the destination. Now you rename some or all of the source
files. You want rsync to rename the files on the destination to match the
source. So you might do this:
rsync -av --delete --link-any-dest=. .
rsync would checksum all files in the source and destination hierarchies. If a
destination file is found with checksum matching the source, the link is made
if the contents are identical, whether or not the filenames are identical.
After this is all done, then --delete operations would take place.
--
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
2008-Nov-11 12:08 UTC
DO NOT REPLY [Bug 5887] RFE: --link-any-dest option considers contents only, ignores name
https://bugzilla.samba.org/show_bug.cgi?id=5887
matt@mattmccutchen.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
------- Comment #1 from matt@mattmccutchen.net 2008-11-11 06:08 CST -------
The --detect-renamed option added by detect-renamed.diff does some of what you
want: it scans only extraneous files in the destination directory (not another
directory), and it compares only size and mtime, not contents, though the
potential matches it finds are just used as basis files for delta transfers
instead of being assumed to have identical contents. Note also
link-by-hash.diff.
--
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.
Apparently Analagous Threads
- DO NOT REPLY [Bug 5665] New: need option to hard link from source tree to dest tree
- DO NOT REPLY [Bug 7289] New: --link-dest seen as unknown option
- DO NOT REPLY [Bug 6667] New: proposal: --transaction
- DO NOT REPLY [Bug 7368] New: Support --link-dest when receiving from a old version
- DO NOT REPLY [Bug 4128] New: ignore-times with link-dest behaves unexpected / sematics not clear