borgbackup: fix some minor issues
This commit is contained in:
parent
67af66939c
commit
f39f1e58a2
|
@ -1,8 +1,8 @@
|
||||||
{ pkgs, stdenv, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
borgPassCommand = pkgs.writeScript "borgPassCommand" ''
|
borgPassCommand = pkgs.writeScript "borgPassCommand" ''
|
||||||
#!${stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# Make sure everything but the password ends up on stderr
|
# Make sure everything but the password ends up on stderr
|
||||||
exec 3>&1 >&2
|
exec 3>&1 >&2
|
||||||
|
@ -33,7 +33,7 @@ in
|
||||||
};
|
};
|
||||||
encryption = {
|
encryption = {
|
||||||
mode = "repokey";
|
mode = "repokey";
|
||||||
passCommand = borgPassCommand;
|
passCommand = "${borgPassCommand}";
|
||||||
};
|
};
|
||||||
compression = "auto,lz4";
|
compression = "auto,lz4";
|
||||||
startAt = "hourly";
|
startAt = "hourly";
|
||||||
|
|
Loading…
Reference in a new issue