infrastructure/nixos-configurations/lindberg/backup.nix

25 lines
464 B
Nix
Raw Normal View History

2024-10-02 15:52:04 +02:00
{ 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";
};
};
}