PostgreSQL Backup/Restore
Posted
by Ian
on Server Fault
See other posts from Server Fault
or by Ian
Published on 2010-04-24T18:41:51Z
Indexed on
2010/04/24
18:43 UTC
Read the original article
Hit count: 291
What's the best way to backup a postgresql database?
I've tried using the documentation at www.postgresql.org, but I always get integrity errors when restoring.
Right now I'm using this for backup:
pg_dump -U myuser -d mydatabase db.pg.dump
for restore:
pg_restore -c -r -U myuser -d mydatabase db.pg.dump
But I'm not getting the desired results..
© Server Fault or respective owner