<div dir="ltr"><div class="gmail_extra">On Sat, Jul 6, 2013 at 11:33 PM, Garvit Sharma <span dir="ltr"><<a href="mailto:garvits45@gmail.com" target="_blank">garvits45@gmail.com</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><b>rsync -av --files-from=FILE --delete-before src/ dest/</b></div><div></div></blockquote></div><br>For rsync's --delete to do anything, you must send an entire directory of files, e.g. if you added -r to that command and specified a directory in the files-from list.  If you know that the list of files you are specifying is complete for src/ what you really want to do is use some filtering that limits what get sent as the contents of the src dir so that rsync can then delete based upon it.  For instance, if you had some show/hide commands in a file (these are anchored at the top of the transfer):</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">S /file1</div><div class="gmail_extra">S /file2</div><div class="gmail_extra">H /*</div><div class="gmail_extra"><br></div><div class="gmail_extra">and then ran:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">rsync -aiv --filter='merge filter-file' --delete-before src/ dest/</div><div class="gmail_extra"><br></div><div class="gmail_extra">You would then just need to make sure that everything you need to transfer in the src dir is listed in the filter file.<br>

<br clear="all"><div>..wayne..</div>
</div></div>