omniflake/system/btrbk.nix
2023-07-28 22:58:08 +02:00

19 lines
474 B
Nix

{ config, pkgs, ... }:
{
services.btrbk = {
extraPackages = [ pkgs.mbuffer ];
instances.btrbk = {
onCalendar = "hourly";
settings = {
subvolume = "/home";
snapshot_preserve = "40d";
snapshot_preserve_min = "4d";
snapshot_dir = "/btrbk_snapshots";
target = "/run/media/till/backup/${config.networking.hostName}";
target_preserve_min = "2h";
target_preserve = "40d 52w *m";
};
};
};
}