hosts: nasbak: add remote btrbk
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user