From 405100888187f010d4532c9b6193ed9ed4126ed7 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Mon, 3 Mar 2025 15:35:53 +0100 Subject: [PATCH] Fix compatibility --- backup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 831e6e3..5d11a61 100755 --- a/backup.sh +++ b/backup.sh @@ -9,6 +9,7 @@ if [ -z "$1" ]; then mode="auto" else mode="$1" + shift fi source $DIR/inc.sh @@ -50,7 +51,7 @@ EOF backup(){ case $1 in "auto") - action="backup" + action="" ;; "full") action="full" @@ -72,7 +73,7 @@ backup(){ echo "Running pre_actions" pre_actions exit_on_fail $? "Pre_action failed" - echo "Creating encrypted incremental backup: $bckplist " + echo "Creating encrypted $action backup: $bckplist " export PASSPHRASE="$encpass" export FTP_PASSWORD="$ftppass" set -x -- GitLab