Actually cleanup local snapshots
This commit is contained in:
parent
c3fe6cfc7e
commit
d6a86058af
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user