rsync -av --del ~/ /media/m/USB\ Stick/kopia/rsynclinux/

For reasons unknown I was living in a false impression that once I remove a file from home directory in source the file would be removed in destination as well.

I had to reinstall and restore the backup... only to find how wrong I was. I now have an incredible mess of obsolete & duplicated files!!

Well I won't travel back to the past to make a proper backup, instead I'm stuck with slowly, ardously bringing order to my old notes.

But at least I want to avoid such mistakes in the future. Why does this call to rsync fail to delete files?

Note I read this: rsync doesn't delete files in destination directory But as U can see my call to rsync does not include a wildcard so the two problems are not the same

1 Answer 1


The --del option is an alias for --delete-during. The option you were looking for is --delete.

There's a good summary of the different options at https://superuser.com/questions/156664/what-are-the-differences-between-the-rsync-delete-options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.