Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -O ignore ownership restoration
- # -x ignore priviledge restoration
- USER='your_username' \
- PGPASSWORD='your_pw' \
- DBNAME='db_to_copy' \
- pg_dump -Ox -U $USER $DBNAME > $DBNAME.sql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement