diff --git a/backup.sh b/backup.sh index 831e6e386269ff0b0249b27a070db44e556ff3ca..5d11a6106841568d56525973b0abcf8099fbee12 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