Drive Backup Script (rsync)

From Federal Burro of Information
Revision as of 22:07, 6 January 2017 by David (talk | contribs)
Jump to navigationJump to search
#!/bin/sh
time /usr/bin/rsync -avzr /home/david/ /mnt/F/backup/nex/home/david --stats
time /usr/bin/rsync -avzr /etc/ /mnt/F/backup/nex/etc --stats
time /usr/bin/rsync -avzr /root/ /mnt/F/backup/nex/root --stats

https://gist.github.com/KartikTalwar/4393116

Original

rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir>

Flip

rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" [source_dir] [dest_host:/dest_dir]