From 9cf2ae4326e93d77a14412e73578dbe22de11d32 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Sun, 17 Mar 2024 11:14:36 +0000 Subject: [PATCH] Update backup and restore commands in Postgres.md --- HelmChart/Docs/Postgres.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/HelmChart/Docs/Postgres.md b/HelmChart/Docs/Postgres.md index 4080303fc0..c5fd7e6e80 100644 --- a/HelmChart/Docs/Postgres.md +++ b/HelmChart/Docs/Postgres.md @@ -37,6 +37,14 @@ Please make sure you have `pg_dump` and `pg_restore` installed on your local mac To take a backup of the database, use the following command: ``` -# Source Database -pg_dump -h localhost -p 5432 -U -d oneuptimedb -f oneuptime.sql -``` \ No newline at end of file +# Source Database. This will prompt for the password +pg_dump --host= --port= --username= --password --dbname=oneuptimedb --file=oneuptime.sql +``` + + +To restore the database, use the following command: + +``` +# Target Database. This will prompt for the password +pg_restore --host=localhost --port=5432 --username= --dbname=oneuptimedb --password --file=oneuptime.sql +```