plinth-infra/flake/system/borg.nix

27 lines
616 B
Nix

{ pkgs, ... }: {
services.borgmatic = {
enable = true;
configurations = {
default = {
repositories = [
{ label = "plinth"; path = "ssh://backup@100.66.18.84/./plinth"; }
];
source_directories = [
"/srv/pds"
];
encryption_passcommand = "${pkgs.coreutils}/bin/cat /root/.borg_password";
compression = "auto,zstd,10";
relocated_repo_access_is_ok = true;
keep_daily = 7;
keep_weekly = 4;
keep_monthly = 6;
keep_yearly = 4;
exclude_if_present = ["CACHEDIR.tag"];
};
};
};
}