2024-12-06 22:58:46 +00:00
|
|
|
{ config, ... }:
|
2021-07-03 23:43:52 +01:00
|
|
|
|
|
|
|
{
|
2024-12-06 22:58:46 +00:00
|
|
|
age.secrets = {
|
|
|
|
restic-passwords = {
|
|
|
|
file = ../../secrets/restic-passwords.age;
|
|
|
|
};
|
|
|
|
restic-environment = {
|
|
|
|
file = ../../secrets/restic-environment.age;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-07-03 23:43:52 +01:00
|
|
|
services.restic.backups = {
|
2021-08-07 12:38:18 +01:00
|
|
|
backblaze = {
|
2021-07-03 23:43:52 +01:00
|
|
|
initialize = true;
|
2024-12-06 22:58:46 +00:00
|
|
|
passwordFile = config.age.secrets.restic-passwords.path;
|
|
|
|
environmentFile = config.age.secrets.restic-environment.path;
|
2021-11-25 11:42:32 +00:00
|
|
|
repository = "b2:architect:/";
|
2022-10-11 20:29:41 +01:00
|
|
|
paths = [ "/var/lib" "/secrets" "/services" ];
|
2021-11-25 11:42:32 +00:00
|
|
|
pruneOpts = [
|
2021-07-03 23:43:52 +01:00
|
|
|
"--keep-daily 45"
|
|
|
|
"--keep-weekly 12"
|
|
|
|
"--keep-monthly 12"
|
|
|
|
"--keep-yearly 3"
|
|
|
|
];
|
|
|
|
timerConfig = {
|
2023-02-19 05:31:24 +00:00
|
|
|
OnCalendar = "monday 09:00";
|
2022-04-05 13:05:08 +01:00
|
|
|
RandomizedDelaySec = "1h";
|
2021-07-03 23:43:52 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|