infrastructure/services/restic.nix
2021-04-21 16:11:14 +01:00

24 lines
479 B
Nix

{ config, lib, pkgs, ... }:
{
services.restic.backups.tardis = {
passwordFile = "/etc/restic/system";
paths = [
"/home"
"/var/lib"
];
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"
];
repository = "";
s3CredentialsFile = "/etc/restic/system.repo";
};
services.postgresqlBackup = {
enable = config.services.postgresql.enable;
backupAll = true;
startAt = "*-*-* 23:45:00";
};
}