hosts: nasbak: add remote btrbk

This commit is contained in:
2023-10-29 09:46:49 +01:00
parent 91f8856a97
commit 21376db87b
4 changed files with 53 additions and 4 deletions

View File

@@ -49,6 +49,7 @@
};
services.btrbk = {
extraPackages = [ pkgs.lz4 ];
instances = {
hf = {
onCalendar = "hourly";
@@ -72,6 +73,39 @@
};
};
};
bak = {
stream_compress = "lz4";
onCalendar = "weekly";
settings = {
incremental = "yes";
snapshot_create = "no";
snapshot_dir = "@snapshots";
timestamp_format = "long";
snapshot_preserve_min = "all";
target_preserve_min = "no";
target_preserve = "4w 2m";
ssh_identity = "/etc/btrbk/ssh/id_ed25512_btrbk";
volume = {
"ssh://jupiter.home.opel-online.de/mnt/snapshots/Mars" = {
target = "/mnt/nas/Backups/nas/Mars";
subvolume = {
"@nas" = {};
};
};
};
volume = {
"ssh://jupiter.home.opel-online.de/mnt/snapshots/Pluto" = {
target = "/mnt/nas/Backups/nas/Pluto";
subvolume = {
"@" = {};
};
};
};
};
};
# lf = {
# onCalendar = "daily";
# settings = {