command not working.. help

Wayne Davison wayned at
Fri Jul 12 11:45:58 MDT 2013

On Sat, Jul 6, 2013 at 11:33 PM, Garvit Sharma <garvits45 at> wrote:

> *rsync -av --files-from=FILE --delete-before src/ dest/*

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):

S /file1
S /file2
H /*

and then ran:

rsync -aiv --filter='merge filter-file' --delete-before src/ dest/

You would then just need to make sure that everything you need to transfer
in the src dir is listed in the filter file.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list