From 29a0a805945d37bcd13ffe344cc6fe534a5ecee3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 7 Apr 2021 13:18:49 +0200 Subject: [PATCH] Enable daily backups for the PostgreSQL databases --- modules/periodic.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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"; + }; }