summaryrefslogtreecommitdiff
path: root/custom/borgbackup.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/borgbackup.nix')
-rw-r--r--custom/borgbackup.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index a10f6590..dc40c652 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -141,7 +141,7 @@ in {
141 ${tCfg.repo}::${cfg.prefix}$1-{utcnow} 141 ${tCfg.repo}::${cfg.prefix}$1-{utcnow}
142 ''; 142 '';
143 in if tCfg.lock == null then borgCmd else "flock -xo /var/lock/${tCfg.lock} ${borgCmd}"; 143 in if tCfg.lock == null then borgCmd else "flock -xo /var/lock/${tCfg.lock} ${borgCmd}";
144 scriptArgs = "%I"; 144 scriptArgs = if cfg.snapshots == "lvm" then "%I" else "%i";
145 145
146 unitConfig = { 146 unitConfig = {
147 AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock"; 147 AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock";