From 93bb408b53f2a6dea4c1bbb1414ddf2573c3a361 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 4 Apr 2021 10:23:40 +0200 Subject: ma owncloud: 20 -> 21, back up postgres --- makefu/2configs/deployment/owncloud.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/makefu/2configs/deployment/owncloud.nix b/makefu/2configs/deployment/owncloud.nix index 571e56277..86bd4b524 100644 --- a/makefu/2configs/deployment/owncloud.nix +++ b/makefu/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; -- cgit v1.2.3