Windows DatabaseebooksStatistical Information

LLE10061 : Howto backup and restore a postgresql database

Symptom:

You need to backup a postgresql database

Cause:

Postgres databases need a backup just like anything else

Solution:

You can use the pg_dump utility to make a consistent backup of your database. e.g.

pg_dump  lubby > BU-LubbyDB

and for a restore you use:

psql lubby < BU-LubbyDB

Sometimes it is better to drop the database first and create it again!


Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics