Actually cleanup local snapshots

This commit is contained in:
Valentin Brandl 2025-01-16 19:45:55 +01:00
parent c3fe6cfc7e
commit d6a86058af
Signed by: vbrandl
GPG Key ID: 7FB009175885FC76

View File

@ -1,28 +1,6 @@
{ ... }: {
services.btrbk = {
instances = {
/*
home = {
settings = {
snapshot_preserve = "24h 14d 4w 12m";
snapshot_preserve_min = "latest";
# don't auto cleanup target
target_preserve_min = "all";
volume."/" = {
snapshot_dir = ".btrbk";
subvolume = {
home = {
snapshot_create = "always";
};
};
target = "/run/media/me/backup/morpheus";
};
};
};
*/
# local snapshots:
# - create hourly
# - keep hourly for 4 days and daily forever
@ -49,7 +27,8 @@
# disable systemd timer
onCalendar = null;
settings = {
snapshot_preserve = "*h 14d";
# 14 * 24 = 336
snapshot_preserve = "336h 14d";
snapshot_preserve_min = "latest";
target_preserve = "14d 8w *m";