samba-bugs at samba.org
2009-Aug-27 22:18 UTC
DO NOT REPLY [Bug 6667] New: proposal: --transaction
https://bugzilla.samba.org/show_bug.cgi?id=6667 Summary: proposal: --transaction Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: Dave at Yost.com QAContact: rsync-qa at samba.org someday, perhaps with zfs, file system APIs will offer transaction wrapper functions, something like fio_begn(), fio_cancel(), fio_commit(). In the meantime (another 10 years?) until that happy day arrives, rsync could fake an almost transactional update in the following manner: instead of creating hidden files as you go, create a hidden directory at the root of the tree containing all files being transferred. Populate this new tree with transferred files, then when all have been transferred, hard link all the rest of the files from the existing tree into the new tree. Finally, rename the existing tree to a backup name, rename the new tree into place, then rm -rf the renamed old tree. --transaction and --partial would work well together. -- 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 at samba.org
2009-Aug-27 22:50 UTC
DO NOT REPLY [Bug 6667] proposal: --transaction
https://bugzilla.samba.org/show_bug.cgi?id=6667 ------- Comment #1 from carson at taltos.org 2009-08-27 17:50 CST ------- Except that assumes rsync will never traverse a filesystem boundary. Be very careful about your assumptions... -- 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 at samba.org
2009-Aug-27 23:06 UTC
DO NOT REPLY [Bug 6667] proposal: --transaction
https://bugzilla.samba.org/show_bug.cgi?id=6667 matt at mattmccutchen.net changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #2 from matt at mattmccutchen.net 2009-08-27 18:06 CST ------- The "atomic-rsync" script distributed with rsync in the "support" dir does what you propose. -- 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.
Seemingly Similar Threads
- DO NOT REPLY [Bug 5665] New: need option to hard link from source tree to dest tree
- Call for testing: OpenSSH 7.2
- DO NOT REPLY [Bug 5887] New: RFE: --link-any-dest option considers contents only, ignores name
- Call for testing: OpenSSH 7.2
- DO NOT REPLY [Bug 7015] New: Build problems on HP-UX, Tru64 -- alloca, -Wno-unused-parameter