<div class="gmail_quote">On Tue, Nov 2, 2010 at 9:29 AM, Norbert van Bolhuis <span dir="ltr">&lt;<a href="mailto:nvbolhuis@aimvalley.nl">nvbolhuis@aimvalley.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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[?]<br></blockquote><div><br></div><div>You can&#39;t delay the return, but you can ask the rsync daemon to run &quot;sync&quot; by using a &quot;post-xfer exec&quot; 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&#39;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.</div>
<div><br></div></div>..wayne..<br>