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 +```