Merci Francis.
Yes, that would probably be a way to do it, but I guess it needs
correctly escaping the special characters which may appear in file
names. (Yes, there are people who use "*" in file names, etc.)
So what I'm doing now is using neither --delete-missing-arg nor
--files-from, but
Hi.
On Tue, 23 Apr 2019 16:35:15 +0200 MI via rsync wrote:
> If someone has a good suggestion on how to rsync a list of files and
> delete from the destination any file that is not listed in --files-from,
> that would be welcome.
Assuming you are talking about files in a same source directory
Thank you Kevin.
It seems that I misunderstood the purpose of this --delete-missing-args
option.
If someone has a good suggestion on how to rsync a list of files and
delete from the destination any file that is not listed in --files-from,
that would be welcome.
Thanks,
MI
Origi
--files-from will delete files from the destination that are listed but
not existing in the source. It isn't delete what isn't listed.
On 4/23/19 5:29 AM, MI via rsync wrote:
> I'm generating a list of files to sync, and would like all the files not
> in my list to be deleted from the destination