samba-bugs@samba.org
2008-Oct-02 01:28 UTC
DO NOT REPLY [Bug 5804] New: Make atomic-rsync atomic
https://bugzilla.samba.org/show_bug.cgi?id=5804 Summary: Make atomic-rsync atomic Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: matt@mattmccutchen.net QAContact: rsync-qa@samba.org The support/atomic-rsync script is not actually atomic because it moves the old destination directory out of place and then moves the updated one into place. Make it atomic by having the destination path be a symlink to the actual tree and atomically replacing this symlink when an updated tree is ready. -- 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-Oct-11 16:34 UTC
DO NOT REPLY [Bug 5804] Make atomic-rsync atomic
https://bugzilla.samba.org/show_bug.cgi?id=5804 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from wayned@samba.org 2008-10-11 11:34 CST ------- The script now supports this if the user has setup the supplied destination as a symlink to a directory that ends in -1 or -2. i.e.: mkdir /tmp/dest-1 ln -s dest-1 /tmp/dest atomic-rsync -av /tmp/src/ /tmp/dest/ That would end up with /tmp/dest symlinked to the new /tmp/dest-2 dir. A re-run of the atomic-rsync command would replace the /tmp/dest-1 dir and change the symlink back. Etc. -- 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-Oct-11 18:42 UTC
DO NOT REPLY [Bug 5804] Make atomic-rsync atomic
https://bugzilla.samba.org/show_bug.cgi?id=5804 matt@mattmccutchen.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED ------- Comment #2 from matt@mattmccutchen.net 2008-10-11 13:42 CST ------- Looks good! Thanks! -- 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 5802] New: misleading error message in atomic rsync
- DO NOT REPLY [Bug 5201] New: Rsync lets user corrupt dest by applying non-inplace batch in inplace mode
- DO NOT REPLY [Bug 5644] New: Option to recheck basis dirs for existing dest files
- DO NOT REPLY [Bug 3829] New: rsync loses access ACLs on transferred files
- DO NOT REPLY [Bug 7123] New: Use both old dest file and partial file as basis data