nixos-configuration/machines/morpheus/btrbk.nix

26 lines
549 B
Nix
Raw Normal View History

2024-08-01 16:24:21 +02:00
{ ... }: {
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";
};
};
};
};
};
}