From 3edae4100247a4e512df400e8532e2b7290227fc Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 5 Jan 2025 00:20:45 -0500 Subject: [PATCH] btrbk: no local snapshots --- hosts/ytnix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index 40af3bb..fbbeeb3 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -222,15 +222,15 @@ services.btrbk.instances.local = { onCalendar = "hourly"; + # only create snapshots automatically. backups are triggered manually with `btrbk resume` snapshotOnly = true; settings = { - # only create snapshots automatically. backups are triggered manually with `btrbk resume` - snapshot_preserve = "7d"; - snapshot_preserve_min = "2d"; + snapshot_preserve_min = "latest"; target_preserve = "*d"; target_preserve_min = "no"; target = "/mnt/external/btr_backup/ytnix"; stream_compress = "zstd"; + stream_compress_level = "8"; snapshot_dir = "/snapshots"; subvolume = { "/home" = { };