Andreas Schildbach
2010-Jan-01 14:26 UTC
temp name for destination directory, move in place after successfull complete?
Hello everyone, In --link-dest/--copy-dest/--compare-dest modes, I'd like to distinguish between destination directories that have been completely rsynced and the ones that are only partially synced because of a network failure. In short, I'd like to mimic the behaviour rync has on individual files (building them as .filename-random and then renaming them to filename) for the whole destination directory. Of course, I could instruct rsync to create .destination-random rather than just destination. However, I think I cannot rename the temporary directory after successfull completion via the rsync protocol (this would need shell access or a mounted filesystem, both of which I want to avoid). Is there any way to do this magic with rsync, or maybe is there any option that removes the whole destination again if something went wrong? Best regards, Andreas
Wayne Davison
2010-Jan-15 15:44 UTC
temp name for destination directory, move in place after successfull complete?
On Fri, Jan 1, 2010 at 6:26 AM, Andreas Schildbach <andreas at schildbach.de>wrote:> In short, I'd like to mimic the behaviour rync has on individual > files (building them as .filename-random and then renaming them to > filename) for the whole destination directory. >The only thing rsync currently supports is --delay-updates. This option makes rsync place completed files into a dot-subdir of your choice in each directory of the transfer, and then, when the transfer is complete, it renames all the changed files into place in rapid succession. Other options, such as using the support/atomic-rsync script, require you to be running commands on the receiving side the transfer. ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20100115/3e6a8c8f/attachment.html>