I want to rsync my entire Rackspace cloud server disk to a local drive. The command I am currently using is:
rsync --dry-run --archive --xattrs --compress --partial --progress --exclude={/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / user@remote_server:/backup_dir
I figure I should not exclude /dev/
because my root partition is on /dev/xvda1
.
However, when I run this, I get no output and it exits immediately. The exit code (checked with echo $?
) is 0
. What could be going on?
Also: if there is a better way to do this, or more appropriate command line flags, do tell me.