(when) does rsync daemon sync ?

Wayne Davison wayned at samba.org
Sat Nov 6 09:51:54 MDT 2010


On Tue, Nov 2, 2010 at 9:29 AM, Norbert van Bolhuis
<nvbolhuis at aimvalley.nl>wrote:

> Is there a way to make the rsync daemon use sync or whatsoever to make sure
> the rsync command returns only if all transferred data is written to
> physical media[?]
>

You can't delay the return, but you can ask the rsync daemon to run "sync"
by using a "post-xfer exec" command.  If you want that to run only for
received files (i.e. if the module could be alternately used for sending
files too), you'll need to also specify a pre-xfer exec command that
analyzes the RSYNC_REQUEST variable, note the RSYNC_PID of any request that
is for an incoming transfer, and make your post-xfer exec check if its
RSYNC_PID indicates that it is a writing transfer.  Alternately, you could
make one module write-only and a duplicate module read-only and only put the
post-xfer sync onto the write-only module.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20101106/946509e6/attachment.html>


More information about the rsync mailing list