diff --git a/modules/periodic.nix b/modules/periodic.nix index 4d9a037..6b683f4 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -22,4 +22,12 @@ Unit = "git-pull.service"; }; }; + + # PostgreSQL daily backups + services.postgresqlBackup = { + enable = true; + backupAll = true; + location = "/vault/backups/databases/nextcloud"; + startAt = "*-*-* 05:15:00"; + }; }