fix up borg backups
This commit is contained in:
parent
26ee5592ac
commit
4fb7ed8d2a
@ -22,7 +22,7 @@ let
|
|||||||
|
|
||||||
umountLatest = ({mountpoint, ...}:
|
umountLatest = ({mountpoint, ...}:
|
||||||
''set -euo pipefail
|
''set -euo pipefail
|
||||||
"${pkgs.util-linux}/bin/umount ${mountpoint}/.snapshot-latest"
|
${pkgs.util-linux}/bin/umount ${mountpoint}/.snapshot-latest
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -39,8 +39,8 @@ let
|
|||||||
var_log = {
|
var_log = {
|
||||||
mountpoint = "/var/log";
|
mountpoint = "/var/log";
|
||||||
zfs_name = "rpool/nixos/var/log";
|
zfs_name = "rpool/nixos/var/log";
|
||||||
paths = [ "/var/log/.snapshot-latest/caddy/" ];
|
paths = [ "/var/log/.snapshot-latest/" ];
|
||||||
patterns = [ "access-beta.jakstys.lt.log-*.zst" ];
|
patterns = [ "+ caddy/access-beta.jakstys.lt.log-*.zst" ];
|
||||||
backup_at = "*-*-* 00:10:00";
|
backup_at = "*-*-* 00:10:00";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -164,12 +164,13 @@ in {
|
|||||||
name = name;
|
name = name;
|
||||||
value = {
|
value = {
|
||||||
doInit = true;
|
doInit = true;
|
||||||
repo = "zh2769@zh2769.rsync.net:borg/hel1-a.servers.jakst";
|
repo = "zh2769@zh2769.rsync.net:hel1-a.servers.jakst";
|
||||||
encryption = {
|
encryption = {
|
||||||
mode = "repokey-blake2";
|
mode = "repokey-blake2";
|
||||||
passCommand = "cat /var/src/secrets/borgbackup/password";
|
passCommand = "cat /var/src/secrets/borgbackup/password";
|
||||||
};
|
};
|
||||||
paths = value.paths;
|
paths = value.paths;
|
||||||
|
extraArgs = "--remote-path=borg1";
|
||||||
compression = "auto,lzma";
|
compression = "auto,lzma";
|
||||||
startAt = "*-*-* 00:05:00";
|
startAt = "*-*-* 00:05:00";
|
||||||
readWritePaths = [ rwpath ];
|
readWritePaths = [ rwpath ];
|
||||||
|
Loading…
Reference in New Issue
Block a user