<div class="gmail_quote">On Sat, Apr 24, 2010 at 1:31 PM, keropen <span dir="ltr">&lt;<a href="mailto:keropen@tnde.org">keropen@tnde.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am thinking of doing the sync in two steps:<br>
<br>
1) sync with --partial-dir and --backup-dir to send updated files to a<br>
different directory at the destination<br>
2) sync from the backup dir to the actual destination with --inplace<br>
and --no-whole-file</blockquote></div><div><br></div>The backup option isn&#39;t what you want, but something similar is:  Change the first step to be a copy to a new destination directory using a --compare-dest option pointing at the real destination directory.  That will create just changed files into the alt destination.  You could then copy files from the alt destination to the real destination locally with --inplace (and perhaps --remove-source-files).  If you need to be able to do deletions, you should be able to use --link-dest instead of --compare-dest, and then copy the whole result with --del into the real destination (since rsync will skip all the files that got hard-linked together).<div>
<br></div><div>In looking at this, I noticed that rsync lets users specify --temp-dir with --inplace, but that combination of options doesn&#39;t appear to do anything useful (and may well be harmful -- I didn&#39;t look at the code enough to be certain).  It might be interesting to have rsync interpret that combination as &quot;always do an in-place copy out of the temp dir&quot;.  Backward compatibility checking would be difficult, though, since that combination of options are accepted in current versions.<br>
<div><br><div>..wayne..<br>
</div></div></div>