Systemd unescape instance
This commit is contained in:
parent
018cd3cac1
commit
81e4898699
@ -12,9 +12,9 @@ let
|
|||||||
echo "Need exactly one argument, the path to backup.";
|
echo "Need exactly one argument, the path to backup.";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
echo "Starting backup.";
|
path="$1";
|
||||||
path="$(systemd-escape -u --path "$1")";
|
echo "Starting backup of $path";
|
||||||
restic backup "$path";
|
# restic backup "$path";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
@ -57,7 +57,7 @@ in
|
|||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${restic-wrapper}/bin/restic-wrapper %i";
|
ExecStart = "${restic-wrapper}/bin/restic-wrapper %I";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.timers."backup-helper@" = {
|
systemd.timers."backup-helper@" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user