Advertisement
asanchez75

postgresql/backups

Jun 30th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. http://www.postgresql.org/docs/7.4/static/app-pgdump.html
  2.  
  3. To dump a database called mydb that contains large objects to a tar file:
  4.  
  5. $ pg_dump -Ft -b mydb > db.tar
  6.  
  7. To reload this database (with large objects) to an existing database called newdb:
  8.  
  9. $ pg_restore -d newdb db.tar
  10.  
  11. One table
  12.  
  13. pg_dump geogloria --attribute-inserts --column-inserts -t glo_temperaturas > temperaturas.sql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement