Browse Source

updated format

Toastie 1 year ago
parent
commit
9c1c9cb520
1 changed files with 9 additions and 4 deletions
  1. 9 4
      postgres/dump-restore.md

+ 9 - 4
postgres/dump-restore.md

@@ -1,6 +1,11 @@
-`pg_dump -U <user> <database_name> > dump.sql`
-https://www.postgresql.org/docs/current/app-pgdump.html
+### Dump
+[pg_dump manual](https://www.postgresql.org/docs/current/app-pgdump.html)
 
+Run within the database container `pg_dump -U <user> <database_name> > dump.sql`
 
-`psql <database_name> < dump.sql`
-https://www.postgresql.org/docs/current/app-psql.html
+
+
+### Restore
+[psql manual](https://www.postgresql.org/docs/current/app-psql.html)
+
+Create database and run `psql -U <user> <database_name> < dump.sql`