I just went through this. You need to us the rsync --delete
option. The Arch wiki is wrong about the --delete
option altering anything in the source system. It will only delete files in destination if they have been deleted or are not in source. This will also prevent a bunch of unwanted files building up if you run the backup on a regular basis.
↧
Answer by Schooled for Pacman: error: duplicated database entry
↧