summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 17:29:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 17:29:01 -0300
commit11233840b1c822a323010c5f91f62389cc8e9368 (patch)
tree44ca978fd869748cf2e8b2b29f67adfc3d3ff1e2 /lib
parentff32bc68bc51908abdd56c440b7570348f1834a8 (diff)
downloadhydra-11233840b1c822a323010c5f91f62389cc8e9368.tar.gz
hydra-11233840b1c822a323010c5f91f62389cc8e9368.tar.bz2
Support for restore method
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/backup5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index 210139b..260446d 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -36,10 +36,7 @@ function hydra_backup_environment {
exit 1
fi
else
- if [ "$METHOD" == "restore" ]; then
- echo "Invalid backup method 'restore'"
- exit 1
- elif [ -d "$BACKUPDIR/$METHOD" ]; then
+ if [ -d "$BACKUPDIR/$METHOD" ]; then
BACKUPDIR="$BACKUPDIR/$METHOD"
else
echo "Backup folder for $METHOD not found at $BACKUPDIR"