Add escaped path to script

This commit is contained in:
Torjus Håkestad 2024-06-02 23:15:23 +02:00
parent 6089368745
commit af496e418e

View File

@ -1,6 +1,7 @@
{ lib, config, pkgs, utils, ... }:
let
cfg = config.backup-helper;
escaped-path = utils.escapeSystemdPath "/etc/machine-id";
restic-wrapper = pkgs.writeShellApplication {
name = "restic-wrapper";
runtimeInputs = [
@ -14,10 +15,9 @@ let
fi
path="$1";
echo "Starting backup of $path";
# restic backup "$path";
# restic backup ${escaped-path};
'';
};
escaped-path = utils.escapeSystemdPath "/etc/machine-id";
in
{
options.backup-helper.enable = lib.mkEnableOption "Enable backup-helper";