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:
parent
fee37dc1db
commit
eea276d643
@ -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" ''
|
||||
|
Loading…
Reference in New Issue
Block a user