infrastructure/nixos-configurations/lindberg/backup.nix
Fabian Hauser fef2377502
All checks were successful
CI / build (push) Successful in 13m53s
Commit files for public release
2024-10-02 16:57:36 +03:00

24 lines
464 B
Nix

{ config, pkgs, ... }:
{
qois.backup-client.includePaths = [ "/mnt/data" ];
services.borgbackup.jobs = {
data-local = {
repo = "/mnt/backup/disks/data";
doInit = true;
paths = [ "/mnt/data/" ];
prune.keep = {
within = "14d";
weekly = 4;
monthly = 6;
yearly = -1;
};
encryption = {
mode = "authenticated";
passphrase = "";
};
startAt = "07:15";
};
};
}