Simple btrbk config
This commit is contained in:
25
machines/morpheus/btrbk.nix
Normal file
25
machines/morpheus/btrbk.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ ... }: {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user