Does the --delete conflict with --files-from?

Hongyi Zhao hongyi.zhao at gmail.com
Wed Apr 15 04:56:28 MDT 2015


On Wed, 15 Apr 2015 02:48:13 -0400, Kevin Korb wrote:

> Technically no, practically kinda...
> Deleting files only works when you are syncing a directory.  If you
> specify every file to copy then you aren't actually syncing anything and
> there is nothing for --delete to do.  So, --delete will only work if
> your files-from file is a list of directories rather that files.
> 
> OTOH, you are probably actually looking for the --delete-missing-args
> option which is a fairly new feature.

Thanks a lot for your hints.

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.



More information about the rsync mailing list