From 257c2dc432a8918722472cf2766ff3140606a958 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 7 Jul 2023 17:29:24 +0800 Subject: [PATCH] nixbld: fix mysql backup auth --- nixbld-etc-nixos/backup-module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/backup-module.nix b/nixbld-etc-nixos/backup-module.nix index dbc837f..e95c7d5 100644 --- a/nixbld-etc-nixos/backup-module.nix +++ b/nixbld-etc-nixos/backup-module.nix @@ -12,7 +12,7 @@ let DBDUMPDIR=`mktemp -d` pushd $DBDUMPDIR - ${config.services.mysql.package}/bin/mysqldump --single-transaction flarum > flarum.sql + ${config.services.mysql.package}/bin/mysqldump --user=root --single-transaction flarum > flarum.sql ${pkgs.sudo}/bin/sudo -u mattermost ${config.services.postgresql.package}/bin/pg_dump mattermost > mattermost.sql ${pkgs.sudo}/bin/sudo -u rt ${config.services.postgresql.package}/bin/pg_dump rt5 > rt.sql