delete without copy

Matt McCutchen matt at mattmccutchen.net
Mon Mar 3 13:24:30 GMT 2008


On Mon, 2008-03-03 at 11:14 +0100, david reinares wrote:
> Is there any way to run rsync to create a file list and just delete
> files not present at source?

Yes, there's a neat little trick that does this: pass
--ignore-non-existing --ignore-existing to stop rsync from creating new
files and from updating existing files.

Matt



More information about the rsync mailing list