diff --git a/machines/okarin/configuration.nix b/machines/okarin/configuration.nix index e50bd0a..37e0acd 100644 --- a/machines/okarin/configuration.nix +++ b/machines/okarin/configuration.nix @@ -34,4 +34,14 @@ 80 443 ]; + + services.postgresqlBackup = { + enable = true; + startAt = [ ]; # triggered by restic system backup + location = "/var/lib/postgresql-backup"; + }; + systemd.services.restic-backups-system = { + after = [ "postgresqlBackup.service" ]; + wants = [ "postgresqlBackup.service" ]; + }; }