Skip to content
Snippets Groups Projects
Verified Commit 40510088 authored by David Beniamine's avatar David Beniamine
Browse files

Fix compatibility

parent da6c0623
Branches
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ if [ -z "$1" ]; then ...@@ -9,6 +9,7 @@ if [ -z "$1" ]; then
mode="auto" mode="auto"
else else
mode="$1" mode="$1"
shift
fi fi
source $DIR/inc.sh source $DIR/inc.sh
...@@ -50,7 +51,7 @@ EOF ...@@ -50,7 +51,7 @@ EOF
backup(){ backup(){
case $1 in case $1 in
"auto") "auto")
action="backup" action=""
;; ;;
"full") "full")
action="full" action="full"
...@@ -72,7 +73,7 @@ backup(){ ...@@ -72,7 +73,7 @@ backup(){
echo "Running pre_actions" echo "Running pre_actions"
pre_actions pre_actions
exit_on_fail $? "Pre_action failed" exit_on_fail $? "Pre_action failed"
echo "Creating encrypted incremental backup: $bckplist " echo "Creating encrypted $action backup: $bckplist "
export PASSPHRASE="$encpass" export PASSPHRASE="$encpass"
export FTP_PASSWORD="$ftppass" export FTP_PASSWORD="$ftppass"
set -x set -x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment