Re: What is better method to backup postgresql DB. - Mailing list pgsql-general

From Bill Moran
Subject Re: What is better method to backup postgresql DB.
Date
Msg-id 20101026143353.b46a73b9.wmoran@potentialtech.com
Whole thread Raw
In response to What is better method to backup postgresql DB.  (Steeles <steeles@gmail.com>)
Responses Re: What is better method to backup postgresql DB.  (Uwe Schroeder <uwe@bunspace.com>)
List pgsql-general
In response to Steeles <steeles@gmail.com>:

> new to postgresql. need to backup postgresql DB, which way is better to
> backup DB.
>
> from training, I learned that we can backup the whole PGdata and other
> directories to achieve backup goal, originally I was planned to schedule
> jobs to use pgdump to backup all DBs.
>
> so which way is better for backup or there is other way to backup PGDB.

Use pg_dump or pg_dumpall.  If you're at the level that you have to ask
this question, then you'll have nothing but trouble getting reliable
backups by backing up directories.

Also, since you're new to PostgreSQL, I _HIGHLY_ recommend that you don't
assume that you're getting backups until you can demonstrate that you can
restore them.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

pgsql-general by date:

Previous
From: Steeles
Date:
Subject: What is better method to backup postgresql DB.
Next
From: Tony Cebzanov
Date:
Subject: Re: Advice needed on application/database authentication/authorization/auditing model