Skip to content

Commit

Permalink
restic: keep more monthly
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <me@sumnerevans.com>
  • Loading branch information
sumnerevans committed Jan 18, 2025
1 parent a873acf commit ad8aa65
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/services/restic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ let
# Remove old backup sets. Keep hourly backups from the past week, daily
# backups for the past 90 days, weekly backups for the last half year,
# monthly backups for the last two years, and yearly backups for the last
# two decades.
# monthly backups for the last 5 years, and yearly backups forever.
${resticCmd} forget \
--prune \
--group-by host \
--keep-hourly 168 \
--keep-daily 90 \
--keep-weekly 26 \
--keep-monthly 24 \
--keep-yearly 20
--keep-monthly 60 \
--keep-yearly unlimited
# Ping healthcheck.io
${pkgs.curl}/bin/curl -fsS --retry 10 https://hc-ping.com/${cfg.healthcheckPruneId}
Expand Down

0 comments on commit ad8aa65

Please sign in to comment.