From f2825513c07d4c0edc1b626512978b140433ab87 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 30 Oct 2024 22:29:04 +0800 Subject: [PATCH] feat: adjust btrbk - decrease snapshots count --- modules/nixos/base/btrbk.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/base/btrbk.nix b/modules/nixos/base/btrbk.nix index 181e1190..2e8a6714 100644 --- a/modules/nixos/base/btrbk.nix +++ b/modules/nixos/base/btrbk.nix @@ -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";