2026-06-19 09:54:05 +10:00
|
|
|
{ config, ... }: {
|
|
|
|
|
age.secrets.restic_env.file = ../../secrets/restic_env.age;
|
|
|
|
|
age.secrets.restic_pass.file = ../../secrets/restic_pass.age;
|
|
|
|
|
age.secrets.restic_url.file = ../../secrets/restic_url.age;
|
|
|
|
|
|
|
|
|
|
services.restic.backups."flower" = {
|
|
|
|
|
initialize = true;
|
|
|
|
|
createWrapper = true;
|
2026-06-19 09:59:59 +10:00
|
|
|
progressFps = 0.016666;
|
2026-06-19 09:54:05 +10:00
|
|
|
|
|
|
|
|
environmentFile = config.age.secrets.restic_env.path;
|
|
|
|
|
passwordFile = config.age.secrets.restic_pass.path;
|
|
|
|
|
repositoryFile = config.age.secrets.restic_url.path;
|
|
|
|
|
|
|
|
|
|
paths = ["/flower"];
|
|
|
|
|
timerConfig = {
|
2026-06-19 10:20:00 +10:00
|
|
|
# every 6 hours
|
|
|
|
|
OnCalendar = "*-*-* 00,06,12,18:00:00";
|
2026-06-19 09:54:05 +10:00
|
|
|
Persistent = true;
|
|
|
|
|
};
|
2026-06-19 09:59:22 +10:00
|
|
|
pruneOpts = [
|
2026-06-19 10:20:00 +10:00
|
|
|
"--keep-last 8"
|
2026-06-19 09:54:05 +10:00
|
|
|
"--keep-daily 7"
|
|
|
|
|
"--keep-weekly 5"
|
|
|
|
|
"--keep-monthly 12"
|
|
|
|
|
"--keep-yearly 75"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|