1
0
forked from clan/clan-core

borgbackup: block borgjob is finished

We do not want to start multiple borgbackups in parallel
This commit is contained in:
Jörg Thalheim 2024-03-25 14:21:05 +01:00
parent fee37dc1db
commit eea276d643

View File

@ -94,7 +94,7 @@ in
(pkgs.writeShellScriptBin "borgbackup-create" ''
set -efu -o pipefail
${lib.concatMapStringsSep "\n" (dest: ''
systemctl start borgbackup-job-${dest.name}
systemctl start --wait borgbackup-job-${dest.name}
'') (lib.attrValues cfg.destinations)}
'')
(pkgs.writeShellScriptBin "borgbackup-list" ''