]> gitweb.fluxo.info Git - hydra.git/commitdiff
More verbosity
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Jan 2012 12:06:27 +0000 (10:06 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Jan 2012 12:06:27 +0000 (10:06 -0200)
share/hydractl/backup-copy-site

index 25dd354179bbf0362a8b94e00ce1820530f47e72..77a6cb76c6cf759a40548491673a79801fc437c9 100755 (executable)
@@ -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/