From 122549f077771330b5fc091bd2eeeffb525cebca Mon Sep 17 00:00:00 2001 From: julien Date: Sun, 19 Jan 2025 16:31:52 +0100 Subject: [PATCH] PGPASSWORD --- sbin/vol-compress | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/vol-compress b/sbin/vol-compress index c2078bb..e52e060 100644 --- a/sbin/vol-compress +++ b/sbin/vol-compress @@ -26,7 +26,7 @@ if [ -d "volumes/postgres" ]; then DB_PASSWORD=$(nerdctl exec $CONTAINER_NAME bash -c 'echo "$POSTGRES_PASSWORD"') DB_NAME=$(nerdctl exec $CONTAINER_NAME bash -c 'echo "$POSTGRES_DATABASE"') DUMP_NAME=$CONTAINER_NAME.sql - nerdctl exec -e $CONTAINER_NAME pg_dump -U $DB_USER $DB_NAME > volumes/$DUMP_NAME + nerdctl exec -e PGPASSWORD=$DB_PASSWORD $CONTAINER_NAME pg_dump -U $DB_USER $DB_NAME > volumes/$DUMP_NAME fi # Compress all volumes excerpt mysql and postgres