From 397b115a981e2249ecd5bb4c5ea133fc7f6cdcaa Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 13 Sep 2024 22:14:55 +0200 Subject: [PATCH] db dump in a path that restics backsup --- nextcloud.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextcloud.nix b/nextcloud.nix index b6b874f..3c509d3 100644 --- a/nextcloud.nix +++ b/nextcloud.nix @@ -34,11 +34,11 @@ in { script = with pkgs; '' set -eu date=$(date --iso-8601) - ${postgresql}/bin/pg_dump "nextcloud" | ${openssh}/bin/ssh -i /etc/nixos/.secrets/tulpan Glenn@nas "cat - > back/nextcloud/sqldump/$date.sql" + ${postgresql}/bin/pg_dump "nextcloud" > /pool/var/lib/nextcloud/pgdump/latest.sql ''; serviceConfig = { Type = "oneshot"; - User = "postgres"; + User = "nextcloud"; }; };