29 lines
736 B
Nix
29 lines
736 B
Nix
{ 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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|