From aa951b9f873e85db0ea94a7c3c69c2c6bc9c0496 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 19 Jan 2012 10:06:27 -0200 Subject: More verbosity --- share/hydractl/backup-copy-site | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'share/hydractl/backup-copy-site') 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/ -- cgit v1.2.3