diff --git a/restore.sh b/restore.sh index 4e5ac24f026c65aa5340e36c320e4c949d118ca0..99fce0019cc1c9b100fcf3a13fb5d7c734ea1fed 100755 --- a/restore.sh +++ b/restore.sh @@ -36,10 +36,17 @@ # --- load a transfer plugin STORAGE_BIN=`_j_getvar ${STORAGEFILE} "bin"` + if [ -z "$STORAGE_BIN" ]; then - # STORAGE_BIN=restic - STORAGE_BIN=duplicity + if ! id -u | grep '^0$' + then + cecho error "ERROR: Maybe you need root permissions to start $0" + else + cecho error "ERROR: missing config bin = ... for file transfer." + fi + exit 1 fi + CFGPREFIX=${STORAGE_BIN}_ . `dirname $0`/plugins/transfer/$STORAGE_BIN.sh || exit 1