Toastie 1 year ago
parent
commit
3a291919d2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      postgres/dump-restore.md

+ 6 - 0
postgres/dump-restore.md

@@ -0,0 +1,6 @@
+`pg_dump -U <user> <database_name> > dump.sql`
+https://www.postgresql.org/docs/current/app-pgdump.html
+
+
+`psql <database_name> < dump.sql`
+https://www.postgresql.org/docs/current/app-psql.html