| From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
|---|---|
| To: | Chris Henderson <henders254(at)gmail(dot)com> |
| Cc: | Jeff Frost <jeff(at)frostconsultingllc(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Restoring a database |
| Date: | 2008-10-16 01:50:03 |
| Message-ID: | 48F69DCB.70706@commandprompt.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Chris Henderson wrote:
>> pg_dumpall archive. If you look at the backup file, you'll find that
>> it's just straight SQL. If you want to restore a particular database
>> out of it and not all of them, then you will need to edit the sql file
>> to include only what you want to restore. Then you simply pass it
>> through psql like so:
>
> Thank you all for your help.
>
> Could anyone please share his or her backup and restore script? I want
> to backup all databases plus schemas in one server via crontab every
> night and restore one or all of the backed up databases to another
> server when I need to.
>
> Thanks again.
>
Here ya go.
| Attachment | Content-Type | Size |
|---|---|---|
| backup.ini | text/plain | 606 bytes |
| backup.py | text/plain | 9.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Craig Ringer | 2008-10-16 03:56:29 | Re: UPDATE and Indexes and Performance |
| Previous Message | Chris Henderson | 2008-10-16 01:45:42 | Re: Restoring a database |