Re: Restoring a database

From: "Chris Henderson" <henders254(at)gmail(dot)com>
To: "Jeff Frost" <jeff(at)frostconsultingllc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restoring a database
Date: 2008-10-16 01:45:42
Message-ID: d4ee74cf0810151845j23d72cdbs96a313e3fd3da412@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2008-10-16 01:50:03 Re: Restoring a database
Previous Message Pavel Stehule 2008-10-15 23:36:07 Re: Re: multi recordset and data type check was: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?