From 32f943ac34f8e927cd9f49b291fa05eee11dfbf2 Mon Sep 17 00:00:00 2001 From: Liam Pietralla Date: Wed, 15 Oct 2025 16:14:10 +1100 Subject: [PATCH] fix --- docs/postgres/dump-and-restore.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/postgres/dump-and-restore.md b/docs/postgres/dump-and-restore.md index 332c056..e28a1dd 100644 --- a/docs/postgres/dump-and-restore.md +++ b/docs/postgres/dump-and-restore.md @@ -11,11 +11,11 @@ If a different version of Postgres is needed, just change the version number in ## Dumping a Database ```bash -docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 pg_dump -h localhost -U myuser -d mydb > /tmp/dump.sql +docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 pg_dump -h localhost -U myuser -d mydb -f /tmp/dump.sql ``` ## Restoring a Database ```bash -docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 psql -h localhost -U myuser -d mydb < /tmp/dump.sql +docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 psql -h localhost -U myuser -d mydb -f /tmp/dump.sql ``` \ No newline at end of file