Advertisement
nodejsdeveloperskh

psql-pg_dump

Apr 20th, 2022
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. # Connect to postgres
  2. PGPASSWORD="pass" psql -h localhost -p 5432 -U user -d db-name
  3. # Dump from postgres
  4. PGPASSWORD="pass" pg_dump -h localhost -p 5432 -U user -F c -b -v -f filename-it-can-be-db-name.dump db-name
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement