]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: delete uncompressed local backup
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Mar 2014 16:07:48 +0000 (13:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Mar 2014 16:07:48 +0000 (13:07 -0300)
share/hydractl/backup-restore-site

index 4224f45271648951c92651164bd424a41507dd3d..9a25738d6bc87a3ef03a6ee0e83491e480f75cdb 100755 (executable)
@@ -91,8 +91,8 @@ if [ -d "$RESTOREDIR/$FOLDER" ]; then
   cp -a $RESTOREDIR/$FOLDER $FOLDER
 fi
 
-# Deleted uncompressed local backup
-if [ "$1" == "localhost" ]; then
+# Delete uncompressed local backup
+if [ "$1" == "localhost" ] || [ "$1" == "backups" ]; then
   rm -rf $RESTOREDIR/$FOLDER 
 fi