delete files

Carlos Carvalho carlos at
Fri Nov 11 15:15:30 MST 2011

Brian K. White (brian at wrote on 11 November 2011 15:59:
 >Is there any way to specify a file to be deleted on the remote side 
 >explicitly by name?
 >I would have thought that deleting the file locally, the rsyncing the 
 >non-existing file with --del would have resulted in the remote file, 
 >which does exist being deleted.

No, rsync only deletes when it scans the directory.

You can get what you want with v3.1 and --delete-missing-args.

More information about the rsync mailing list