Advertisement
Guest User

Untitled

a guest
Apr 7th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. # -O ignore ownership restoration
  2. # -x ignore priviledge restoration
  3.  
  4. USER='your_username' \
  5. PGPASSWORD='your_pw' \
  6. DBNAME='db_to_copy' \
  7. pg_dump -Ox -U $USER $DBNAME > $DBNAME.sql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement