delaying symlinks sync until the data it points to available
Wayne Davison
wayned at samba.org
Sat Jun 8 09:59:25 MDT 2013
On Thu, Jun 6, 2013 at 1:55 PM, Satish Shukla <satish at cadence.com> wrote:
> Is there an easy option in rsync which enables it to sync the data first
> and then the symlink pointed to it.
No, there is not. A couple possible other solutions:
Consider using --delay-updates so that rsync moves all the completed
files/symlinks into place very rapidly (make sure to use a relative
--partial-dir, which is true by default).
Or consider using the atomic-rsync script from the support dir which would
allow you to do a normal --link-dest transfer into a new directory and (if
setup with symlinks) atomically move the whole new hierarchy into place at
once.
..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130608/9e87af36/attachment.html>
More information about the rsync
mailing list