From: Silvio Rhatto Date: Thu, 24 May 2018 11:47:13 +0000 (-0300) Subject: Run as a subprocess on continuous mode X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ad513b0df8ca58178230f5f868c6172b735fe1a6;p=borger.git Run as a subprocess on continuous mode --- 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