Does rsync delete files from the destination if they were deleted from the source?
For example, say in the source /home/me I have three files:
a.txt
b.txt
c.txt
Now, I run the command rsync -v /home/me/ user@ip.address:/home/backup and it copies files a.txt, b.txt and c.txt to /home/backup.
The contents of /home/backup are now
a.txt
b.txt
c.txt
If I were to delete a.txt from /home/me, would a.txt get deleted from /home/backup the next time I run rsync, is there an option I need to specify or is it just completely impossible?
If there are any alternatives to rsync that do this, they are welcome as well.
Side note: I have read this and this relating to this topic, but I couldn't exactly understand or see how it was exactly related to the question.
--dry-run. – Sparhawk Dec 18 '15 at 04:32