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"; }; };