2021-11-25 11:42:32 +00:00
|
|
|
{ config, lib, ... }:
|
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;
|
2021-08-07 12:38:18 +01:00
|
|
|
passwordFile = "/secrets/restic/data.key";
|
|
|
|
s3CredentialsFile = "/secrets/restic/credentials.txt";
|
2021-11-25 11:42:32 +00:00
|
|
|
repository = "b2:architect:/";
|
|
|
|
paths = [ "/var/lib" "/secrets" ];
|
|
|
|
pruneOpts = [
|
2021-07-03 23:43:52 +01:00
|
|
|
"--keep-daily 45"
|
|
|
|
"--keep-weekly 12"
|
|
|
|
"--keep-monthly 12"
|
|
|
|
"--keep-yearly 3"
|
|
|
|
];
|
|
|
|
timerConfig = {
|
2021-08-07 12:38:18 +01:00
|
|
|
OnCalendar = "monday 00:05";
|
|
|
|
RandomizedDelaySec = "2h";
|
2021-07-03 23:43:52 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|