Re: Postgresql Backups - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Postgresql Backups
Date
Msg-id 4A7AE772.6010406@iol.ie
Whole thread Raw
In response to Postgresql Backups  (sub_woofer <tqzelijah@yahoo.co.uk>)
List pgsql-general
On 06/08/2009 13:42, sub_woofer wrote:
> Hello all
>
> To backup my postgresql data I use the pg_dumpall command which dumps all my
> databases to a .sql file.
>
> If I would like to restore a single database from this file how would I do
> this? Is it possible using PgAdmin - as this only allows us to restore a
> database from a .backup file???

You'll have to edit the dump file and remove everything except the
database you want to restore.

Be aware that pg_dumpall also dumps cluster-wide objects, such as roles,
which pg_dump doesn't dump.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: sub_woofer
Date:
Subject: Postgresql Backups
Next
From: Nicolas
Date:
Subject: Re: Clients disconnect but query still runs