I am using this command to backup a main server to a backup server.rsync -avz --delete-after --exclude-from '/usr/order/exclude.txt' --password-file=/usr/prod/masterpass.rsync /usr/order/ order@slave::order >> /usr/prod/$log 2>&1I hadn't realised until now that this leaves files/folders on the backup server that are no longer present on the main server.How do I get it to make it so the backup server is an exact match to the main server i.e. delete files/folders on the backup server that no longer exist on the main server?
How to make rsync delete files/folders on backup server that no longer exist on main server?
rsync