From b48c2af6b6e989f2a18ea786a2f55702a2047fa9 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 21 Jul 2016 15:58:33 +0200 Subject: [PATCH] adjust backup script for new locations --- bin/backup | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bin/backup b/bin/backup index 620062e..099fa21 100755 --- a/bin/backup +++ b/bin/backup @@ -1,14 +1,7 @@ #!/bin/bash -e -if [ -e /Volumes ]; then - SHACHECK="2688057d3ddc1b9b5a5a4309f89a2bcb57cc033b /Volumes/Duplicity/mountcheck" - if ! ( echo "${SHACHECK}" | shasum -cs ); then - echo "/Volumes/Duplicity does not seem to be mounted or wrong volume" - exit 1 - fi -fi - CMD=${1:-backup} +HOSTNAME=$(hostname -s) -exec vault2env /secret/private/duplicity/$(hostname -s) -- \ - duplicity-backup ${CMD} +exec vault2env /secret/private/duplicity/${HOSTNAME} -- \ + duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${CMD}