mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
24 lines
479 B
Nix
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";
|
|
};
|
|
}
|