aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-08 10:34:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-08 10:34:16 -0300
commit10b477cd354666a27decde2888407196addb54a4 (patch)
tree73674497c4ff73eec82118ac9cff25bddd8c2318
parentead3c554a1d5fa0a4c5000f4fe5289a10120af9b (diff)
downloadhydra-10b477cd354666a27decde2888407196addb54a4.tar.gz
hydra-10b477cd354666a27decde2888407196addb54a4.tar.bz2
Set BACKUPDIR correctly when method is set
-rw-r--r--lib/hydra/backup4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index 9ac6833..e48f904 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -70,6 +70,10 @@ function hydra_backup_environment_remote {
echo "Missing backup action"
exit 1
fi
+ elif [ "$METHOD" == "rsync" ]; then
+ BACKUPDIR="$BACKUPDIR/rsync/var/backups/duplicity/daily.1"
+ elif [ "$METHOD" == "rdiff" ]; then
+ BACKUPDIR="$BACKUPDIR/rdiff/var/backups/duplicity"
else
if [ -d "$BACKUPDIR/$METHOD" ]; then
BACKUPDIR="$BACKUPDIR/$METHOD"