restic: update
This commit is contained in:
parent
8a25f5c8d4
commit
4397798b73
1 changed files with 9 additions and 4 deletions
|
@ -6,6 +6,9 @@
|
||||||
sops.secrets.restic-ame = {
|
sops.secrets.restic-ame = {
|
||||||
sopsFile = ../../../secrets/restic/secrets.yaml;
|
sopsFile = ../../../secrets/restic/secrets.yaml;
|
||||||
};
|
};
|
||||||
|
sops.secrets.ame-s3 = {
|
||||||
|
sopsFile = ../../../secrets/s3/secrets.yaml;
|
||||||
|
};
|
||||||
environment.systemPackages = [pkgs.restic];
|
environment.systemPackages = [pkgs.restic];
|
||||||
services.restic = {
|
services.restic = {
|
||||||
backups = {
|
backups = {
|
||||||
|
@ -26,15 +29,17 @@
|
||||||
"/home/*/.local/share/.var"
|
"/home/*/.local/share/.var"
|
||||||
];
|
];
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
"--keep-daily=4"
|
"--keep-daily=7"
|
||||||
"--keep-weekly=3"
|
"--keep-weekly=6"
|
||||||
"--keep-monthly=2"
|
"--keep-monthly=5"
|
||||||
];
|
];
|
||||||
initialize = true;
|
initialize = true;
|
||||||
repository = "/nas/restic";
|
repository = "s3:https://s3.flake.sh/restic-ame";
|
||||||
passwordFile = config.sops.secrets.restic-ame.path;
|
passwordFile = config.sops.secrets.restic-ame.path;
|
||||||
|
environmentFile = config.sops.secrets.ame-s3.path;
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
|
Persistent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue