From 81e489869943f2c30a7ee17cee85e374e943b246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 2 Jun 2024 22:58:46 +0200 Subject: [PATCH] Systemd unescape instance --- backup.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backup.nix b/backup.nix index f42011a..fb7ec9e 100644 --- a/backup.nix +++ b/backup.nix @@ -12,9 +12,9 @@ let echo "Need exactly one argument, the path to backup."; exit 1; fi - echo "Starting backup."; - path="$(systemd-escape -u --path "$1")"; - restic backup "$path"; + path="$1"; + echo "Starting backup of $path"; + # restic backup "$path"; ''; }; in @@ -57,7 +57,7 @@ in }; serviceConfig = { Type = "oneshot"; - ExecStart = "${restic-wrapper}/bin/restic-wrapper %i"; + ExecStart = "${restic-wrapper}/bin/restic-wrapper %I"; }; }; systemd.timers."backup-helper@" = {