From 9f222f589e56476481cb7c411ea5927fc4dd9798 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Fri, 22 Dec 2023 10:15:21 +0100 Subject: [PATCH] Fix backup commands --- nixos-configurations/server/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 812b2a1..cebdf04 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -196,7 +196,7 @@ paths = [ "/var/lib/todos.dump" ]; backupPrepareCommand = '' - ${config.services.postgresql.package}/bin/pg_dump -U todos -Fc > /var/lib/todos.dump + ${config.services.postgresql.package}/bin/pg_dump -U postgres -Fc todos > /var/lib/todos.dump ''; pruneOpts = [ @@ -215,7 +215,7 @@ paths = [ "/var/lib/dcbot.dump" ]; backupPrepareCommand = '' - ${config.services.postgresql.package}/bin/pg_dump -U dcbot -Fc > /var/lib/dcbot.dump + ${config.services.postgresql.package}/bin/pg_dump -U postgres -Fc dcbot > /var/lib/dcbot.dump ''; pruneOpts = [