nix-config/modules/backup.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
261 B
Nix
Raw Normal View History

2022-10-31 20:30:25 +01:00
{ config, ... }:
{
config.services.postgresqlBackup = {
2022-12-04 08:53:28 +01:00
inherit (config.services.postgresql) enable;
2022-10-31 20:30:25 +01:00
backupAll = true;
2022-10-31 21:14:42 +01:00
compression = "zstd";
2022-12-04 22:05:16 +01:00
compressionLevel = 9;
2022-10-31 20:30:25 +01:00
pgdumpOptions = "--create --clean";
startAt = "*-*-* 06:00:00";
};
}