diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-01-19 10:06:27 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-01-19 10:06:27 -0200 |
commit | aa951b9f873e85db0ea94a7c3c69c2c6bc9c0496 (patch) | |
tree | 619f37da0f95e02fd94b81ce61f4185051417a0f /share/hydractl | |
parent | e8ddaed6b135b84a9d80086e81a28352860b8470 (diff) | |
download | hydra-aa951b9f873e85db0ea94a7c3c69c2c6bc9c0496.tar.gz hydra-aa951b9f873e85db0ea94a7c3c69c2c6bc9c0496.tar.bz2 |
More verbosity
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/backup-copy-site | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/hydractl/backup-copy-site b/share/hydractl/backup-copy-site index 25dd354..77a6cb7 100755 --- a/share/hydractl/backup-copy-site +++ b/share/hydractl/backup-copy-site @@ -52,6 +52,10 @@ if [ -z "$PORT" ]; then PORT="22" fi -# Sync to remote destination. +# Create destination folder. +echo "Login in to remote server to create remote folder..." ssh -p $PORT backups@$SERVER mkdir -p $ORIG -rsync -av -e "ssh -p $PORT" $ORIG/ backups@$SERVER:/$ORIG/ + +# Sync to remote destination. +echo "Copying backup..." +rsync -avz -e "ssh -p $PORT" $ORIG/ backups@$SERVER:/$ORIG/ |