Skip to content

Commit

Permalink
Add password in conn string for backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryHue committed Apr 12, 2022
1 parent fe13acd commit 811fd00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/supabase/backup/cron-tasks/create-backup
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ TIMESTAMP="$(date +%Y-%m-%d-%H%M%S)"
pg_dump --format=custom \
--host=$PG_HOST_NAME \
--port=$PG_HOST_PORT \
--dbname=$PG_DB_NAME \
--username=$PG_USER_NAME \
--password=$PG_USER_PASSWORD > "/var/opt/pg_dumps/$TIMESTAMP.dump"
--dbname="dbname=$PG_DB_NAME password=$PG_USER_PASSWORD" \
--username=$PG_USER_NAME > "/var/opt/pg_dumps/$TIMESTAMP.dump"

0 comments on commit 811fd00

Please sign in to comment.