From 3c6a9025152fe05d37c129d8a434e7a9a48d3c8a Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Sat, 14 Jun 2025 23:20:15 -0400 Subject: [PATCH] added a backup mechanism --- modules/nixos/common/otf.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/nixos/common/otf.nix b/modules/nixos/common/otf.nix index 887ad6c..7401d95 100644 --- a/modules/nixos/common/otf.nix +++ b/modules/nixos/common/otf.nix @@ -70,7 +70,15 @@ in } ]; }; + # With a database comes a dumping. + services.postgresqlBackup = { + enable = true; + compression = "zstd"; + compressionLevel = 11; + # Start at every 3 days starting from the first day of the month. + startAt = "*-*-1/3"; + }; systemd.services.otf = { description = "Open Terraform Framework"; after = [