]> gitweb.fluxo.info Git - borger.git/commitdiff
Start threads in parallel so cotinuous mode works for all targets
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 17:55:58 +0000 (14:55 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 17:55:58 +0000 (14:55 -0300)
borger

diff --git a/borger b/borger
index 8fe8e6de25efa9969f55cbeab0bd75e2b610e676..792973c5a83d3b4cf5c1a82745b181e570d0ecc9 100755 (executable)
--- a/borger
+++ b/borger
@@ -43,15 +43,16 @@ function borger_config {
     info "Multiple destination \"$DESTINATION\" found. Processing each subconfig..."
 
     # Config is a folder, so we iterate over all items
-    # and call borger for each config
+    # and call borger for each config in parallel
     for config in `ls $CONFIG`; do
       info "Calling borger for $DESTINATION/$config..."
-      $FULLNAME $DESTINATION/$config $OPTION
+      $FULLNAME $DESTINATION/$config $OPTION &
     done
 
     # Since we dispatched everything to subprocesses,
     # there's nothing to do here.
-    exit
+    #exit
+    wait
   fi
 
   # Ensure we have an username