diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-24 08:47:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-24 08:47:13 -0300 |
commit | ad513b0df8ca58178230f5f868c6172b735fe1a6 (patch) | |
tree | 7dd163c68c39ba3e562b7ff59a9df65edbe49c37 /borger | |
parent | 2661b80abd49466bdd58a10c5af5e35fef4d6761 (diff) | |
download | borger-ad513b0df8ca58178230f5f868c6172b735fe1a6.tar.gz borger-ad513b0df8ca58178230f5f868c6172b735fe1a6.tar.bz2 |
Run as a subprocess on continuous mode
Diffstat (limited to 'borger')
-rwxr-xr-x | borger | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |