DO NOT REPLY [Bug 5804] New: Make atomic-rsync atomic
[url]https://bugzilla.samba.org/show_bug.cgi?id=5804[/url]
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: [email]wayned@samba.org[/email]
ReportedBy: [email]matt@mattmccutchen.net[/email]
QAContact: [email]rsync-qa@samba.org[/email]
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: [url]https://bugzilla.samba.org/userprefs.cgi?tab=email[/url]
------- 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: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]
DO NOT REPLY [Bug 5804] Make atomic-rsync atomic
[url]https://bugzilla.samba.org/show_bug.cgi?id=5804[/url]
[email]wayned@samba.org[/email] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #1 from [email]wayned@samba.org[/email] 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: [url]https://bugzilla.samba.org/userprefs.cgi?tab=email[/url]
------- 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: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]
DO NOT REPLY [Bug 5804] Make atomic-rsync atomic
[url]https://bugzilla.samba.org/show_bug.cgi?id=5804[/url]
[email]matt@mattmccutchen.net[/email] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
------- Comment #2 from [email]matt@mattmccutchen.net[/email] 2008-10-11 13:42 CST -------
Looks good! Thanks!
--
Configure bugmail: [url]https://bugzilla.samba.org/userprefs.cgi?tab=email[/url]
------- 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: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]