DO NOT REPLY [Bug 5804] New: Make atomic-rsync atomic - Tools
This is a discussion on DO NOT REPLY [Bug 5804] New: Make atomic-rsync atomic - Tools ; 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 ...
-
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.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
-
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.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
-
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.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html