diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-08 10:34:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-08 10:34:16 -0300 |
commit | 10b477cd354666a27decde2888407196addb54a4 (patch) | |
tree | 73674497c4ff73eec82118ac9cff25bddd8c2318 | |
parent | ead3c554a1d5fa0a4c5000f4fe5289a10120af9b (diff) | |
download | hydra-10b477cd354666a27decde2888407196addb54a4.tar.gz hydra-10b477cd354666a27decde2888407196addb54a4.tar.bz2 |
Set BACKUPDIR correctly when method is set
-rw-r--r-- | lib/hydra/backup | 4 |
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" |