Bug 10681 - Add an option to delete non-existent files in --files-from
Add an option to delete non-existent files in --files-from
Status: RESOLVED WORKSFORME
Product: rsync
Classification: Unclassified
Component: core
3.0.9
All All
: P5 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-01 03:17 UTC by Daniel O'Connor
Modified: 2014-07-02 09:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel O'Connor 2014-07-01 03:17:57 UTC
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.
Comment 1 Kevin Korb 2014-07-01 03:20:27 UTC
Upgrade your rsync and use --delete-missing-args
Comment 2 Wayne Davison 2014-07-01 04:02:43 UTC
As mentioned, this is already implemented.
Comment 3 Daniel O'Connor 2014-07-01 04:49:03 UTC
Hah thanks, I thought I had the latest but apparently not.
Comment 4 Dmitry Yu Okunev 2014-07-02 09:48:25 UTC
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".