From b83c61d70e7c42fbca49078c450dec8ce60dea98 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 4 Apr 2021 10:23:40 +0200 Subject: [PATCH] ma owncloud: 20 -> 21, back up postgres --- 2configs/deployment/owncloud.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/2configs/deployment/owncloud.nix b/2configs/deployment/owncloud.nix index 571e562..86bd4b5 100644 --- a/2configs/deployment/owncloud.nix +++ b/2configs/deployment/owncloud.nix @@ -36,10 +36,20 @@ in { forceSSL = true; enableACME = true; }; - state = [ "${config.services.nextcloud.home}/config" ]; + services.postgresqlBackup = { + enable = true; + databases = [ config.services.nextcloud.config.dbname ]; + }; + + state = [ + # services.postgresql.dataDir + # "${config.services.nextcloud.home}/config" + config.services.postgresqlBackup.location + ]; + services.nextcloud = { enable = true; - package = pkgs.nextcloud20; + package = pkgs.nextcloud21; hostName = "o.euer.krebsco.de"; # Use HTTPS for links https = true;