summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-19 10:06:27 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-19 10:06:27 -0200
commitaa951b9f873e85db0ea94a7c3c69c2c6bc9c0496 (patch)
tree619f37da0f95e02fd94b81ce61f4185051417a0f /share
parente8ddaed6b135b84a9d80086e81a28352860b8470 (diff)
downloadhydra-aa951b9f873e85db0ea94a7c3c69c2c6bc9c0496.tar.gz
hydra-aa951b9f873e85db0ea94a7c3c69c2c6bc9c0496.tar.bz2
More verbosity
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-copy-site8
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/