backup
This commit is contained in:
parent
65e096c381
commit
df81fe36f5
2 changed files with 13 additions and 8 deletions
|
|
@ -1,13 +1,19 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.btrbk.instances.btrbk = {
|
services.btrbk = {
|
||||||
onCalendar = "hourly";
|
extraPackages = [ pkgs.mbuffer ];
|
||||||
settings = {
|
instances.btrbk = {
|
||||||
snapshot_preserve = "40d";
|
onCalendar = "hourly";
|
||||||
snapshot_preserve_min = "7d";
|
settings = {
|
||||||
snapshot_dir = "/btrbk_snapshots";
|
subvolume = "/home";
|
||||||
subvolume = "/home";
|
snapshot_preserve = "40d";
|
||||||
|
snapshot_preserve_min = "4d";
|
||||||
|
snapshot_dir = "/btrbk_snapshots";
|
||||||
|
target = "/run/media/till/backup";
|
||||||
|
target_preserve_min = "no";
|
||||||
|
target_preserve = "40d 52w *m";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
"wheel"
|
"wheel"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
];
|
];
|
||||||
packages = with pkgs; [];
|
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue