Simple btrbk config
This commit is contained in:
parent
2bd2b5f57f
commit
a0c00480f3
@ -15,6 +15,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||
nixpkgs.overlays = [ overlay-unstable ];
|
||||
})
|
||||
(import ./common.nix inputs)
|
||||
(import ./morpheus/btrbk.nix inputs)
|
||||
(import ./dev.nix inputs)
|
||||
(import ./entertainment.nix inputs)
|
||||
(import ./office.nix inputs)
|
||||
|
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user