2024-11-19 05:15:20 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
services.borgmatic = {
|
|
|
|
enable = true;
|
|
|
|
configurations = {
|
|
|
|
default = {
|
|
|
|
repositories = [
|
|
|
|
{ label = "plinth"; path = "ssh://backup@100.66.18.84/./plinth"; }
|
|
|
|
];
|
|
|
|
source_directories = [
|
|
|
|
"/srv/pds"
|
2024-11-26 20:02:15 +00:00
|
|
|
"/srv/pds-testing/data"
|
2024-11-19 05:15:20 +00:00
|
|
|
];
|
|
|
|
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"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|