I have a script which monitors file system events and then calls rsync using --files-from, however that does not handle the case where those files do not exist so I currently have a separate job which culls files have been deleted. It would be nicer if rsync read a file explicitly mentioned in --files-from that does not exist as one which needs deletion on the destination.
Upgrade your rsync and use --delete-missing-args
As mentioned, this is already implemented.
Hah thanks, I thought I had the latest but apparently not.
Hello. (In reply to comment #0) > I have a script which monitors file system events and then calls rsync using > --files-from, however that does not handle the case where those files do not > exist so I currently have a separate job which culls files have been deleted. > > It would be nicer if rsync read a file explicitly mentioned in --files-from > that does not exist as one which needs deletion on the destination. I wrote a similar utility. And it uses "--include-from" instead of "--files-from".