From: Silvio Rhatto Date: Sat, 8 Mar 2014 13:34:16 +0000 (-0300) Subject: Set BACKUPDIR correctly when method is set X-Git-Tag: 0.2.2~87 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=10b477cd354666a27decde2888407196addb54a4;p=hydra.git Set BACKUPDIR correctly when method is set --- 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"