From ad513b0df8ca58178230f5f868c6172b735fe1a6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 24 May 2018 08:47:13 -0300 Subject: Run as a subprocess on continuous mode --- borger | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/borger b/borger index 76ad9dc..a00e84a 100755 --- a/borger +++ b/borger @@ -9,6 +9,7 @@ # https://borgbackup.readthedocs.io/en/stable/usage/help.html#borg-help-placeholders # Parameters +FULLNAME="$0" BASENAME="`basename $0`" DESTINATION="$1" OPTION="$2" @@ -173,7 +174,8 @@ elif [ "$OPTION" == "--check" ]; then borger_check elif [ "$OPTION" == "--continuous" ]; then while true; do - borger_run + # Run as a subprocess so we do not exit on any fatal error + $FULLNAME $DESTINATION info "Running on continous mode... sleeping $INTERVAL..." sleep $INTERVAL done -- cgit v1.2.3