Skip to content

Commit

Permalink
feat: adjust btrbk - decrease snapshots count
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Oct 30, 2024
1 parent 1e33fd1 commit f282551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nixos/base/btrbk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

services.btrbk.instances.btrbk = {
# How often this btrbk instance is started. See systemd.time(7) for more information about the format.
onCalendar = "Tue,Thu,Sat *-*-* 3:45:20";
onCalendar = "Tue,Sat *-*-* 3:45:20";
settings = {
# how to prune local snapshots:
# 1. keep daily snapshots for xx days
snapshot_preserve = "9d";
snapshot_preserve = "7d";
# 2. keep all snapshots for 2 days, no matter how frequently you (or your cron job) run btrbk
snapshot_preserve_min = "2d";

Expand Down

0 comments on commit f282551

Please sign in to comment.