I'm trying to use rsync to back up a remote Linux server
I'm running DeltaCopy as a server on my desktop PC (Win7/64), and running rsync by SSH'ing to the Linux box, sudo'ing to root, and doing something like (slightly obfuscated, for obvious reasons):
rsync -azv --modify-window=1 \
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found/*} \
--log-file=/var/log/rsync.log /* rsync://[email protected]/MyBackup
It seems to be working, but I'm worried that there might be one or more files that didn't get copied and are quietly falling between the cracks.
Is there any straightforward way to get rsync to generate a concise list of files on the Linux box that SHOULD have gotten copied, but either didn't get copied, or are different, so I'll know which ones need special attention (MySQL InnoDB, etc)?
Also, given the above example, what changes should I make for subsequent runs in order to replace the copy with newer versions if something has changed?