On Tue, Nov 2, 2010 at 9:29 AM, Norbert van Bolhuis
<nvbolh...@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..
-- 
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

Reply via email to