feat: btrbk
This commit is contained in:
parent
fcc7c22739
commit
eab0bd8d10
3 changed files with 39 additions and 2 deletions
29
hosts/gwiad/btrbk.nix
Normal file
29
hosts/gwiad/btrbk.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.btrbk = {
|
||||
instances.btrbk = {
|
||||
onCalendar = "hourly";
|
||||
settings = {
|
||||
snapshot_dir = "@snapshots";
|
||||
snapshot_create = "onchange";
|
||||
incremental = "strict";
|
||||
snapshot_preserve_min = "2d";
|
||||
snapshot_preserve = "7d";
|
||||
target_preserve_min = "3d";
|
||||
target_preserve = "20d";
|
||||
timestamp_format = "long-iso";
|
||||
volume."/btr_pool" = {
|
||||
target = "/run/media/jhemono/Gwiad PHD/Backup";
|
||||
subvolume = {
|
||||
"@home" = {
|
||||
snapshot_name = "home";
|
||||
target_preserve = "20d 15w *m";
|
||||
};
|
||||
"@var".snapshot_name = "var";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue