rsync delete remote duplicates

Posted by BlakBat on Super User See other posts from Super User or by BlakBat
Published on 2012-06-11T16:16:05Z Indexed on 2012/06/11 16:42 UTC
Read the original article Hit count: 180

Filed under:

I'm trying to delete remote duplicate files without transferring the non-existing files, and without updating the existing files.

If I specify both --existing and --ignore-existing (along with "-av --remove-source-files", the operation is a no-op and nothing will be transfered, but nothing will be deleted either.

The best I got so far is to make a local copy of destination, use rsync without --ignore-existing, then rsync my local copy on top of the destination

© Super User or respective owner

Related posts about rsync