Delete files specified in "--from-files"-file that don't exist on the sender side

Matt McCutchen matt at mattmccutchen.net
Mon Mar 9 02:14:43 GMT 2009


On Fri, 2009-03-06 at 22:56 -0800, Wayne Davison wrote:
> If someone is doing inotify-based --files-from transfers and a filename
> is now missing, maybe they really want --delete-missing-args to ensure
> that the receiver doesn't have a version of the now-missing file.

There's no need for that: the deletion will generate its own inotify
event that the program can handle separately, just like any other
concurrent change to the source after the start of an rsync run.

> If not, I think --ignore-missing-args might be a nice matching option
> name.

Sure.  I had been thinking there would be a single option that deletes
missing arguments from the destination if --delete is on and skips them
otherwise, but I guess it might be more useful to specify
--{ignore,delete}-missing-args and --delete independently.

-- 
Matt



More information about the rsync mailing list