Here was the initial command I used to get the first sync in place manually.
rsync -arvzh --progress -e 'ssh -i path to pub key' /dir/to/backup user@host:/backup/dir/here
A quick review of the flags
-a archive mode (preserve timestamps)
-r recurse into directories
-v verbose
-z compress data during transfer
-h output in human readable format
--progress show a nice progress meter (won't want this in script)
-e specify remote shell and put any further args in quotes
No comments:
Post a Comment