rsync arguments while reviewing rsync with con jobs crontab
In order to keep two directories truly in sync, it is necessary to delete files from the destination directory if they are removed from the source. By default, rsync does not delete anything from the destination directory.
We can change this behavior with the --delete option. Before using this option, use the --dry-run option and do testing to prevent data loss:
rsync -a --delete source destination