aboutsummaryrefslogtreecommitdiff
path: root/borger
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-24 08:47:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-24 08:47:13 -0300
commitad513b0df8ca58178230f5f868c6172b735fe1a6 (patch)
tree7dd163c68c39ba3e562b7ff59a9df65edbe49c37 /borger
parent2661b80abd49466bdd58a10c5af5e35fef4d6761 (diff)
downloadborger-ad513b0df8ca58178230f5f868c6172b735fe1a6.tar.gz
borger-ad513b0df8ca58178230f5f868c6172b735fe1a6.tar.bz2
Run as a subprocess on continuous mode
Diffstat (limited to 'borger')
-rwxr-xr-xborger4
1 files changed, 3 insertions, 1 deletions
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