Re: Restoring the database - Mailing list pgsql-novice

From Tomka Gergely
Subject Re: Restoring the database
Date
Msg-id Pine.LNX.4.33.0309020826190.31338-100000@zeus.gau.hu
Whole thread Raw
In response to Restoring the database  ("Cody Phanekham" <Cody.Phanekham@salmat.com.au>)
List pgsql-novice
2003-09-02 ragyogó napján Cody Phanekham ezt üzente:

> Hi,
>
> Im trying to restore a postgresql database from a backup that was done
> a few days ago. The backup is on CD and was a straight copy of
> everything in the /$postgresql_install_path/
>
> The problem is i want to restore a certain database and not every
> database. How would i know what files correspond to which database ?
>
> eg. I've got 3 databases called 'books', 'dvds' and 'videos'. I only
> want to restore 'dvds' from the CD.

I think for this you need to know the OID of the database. This is not
easy without running db. So restore the full db, and next time use pg_dump
<databasename> > dbsave.sql for backup.



--
Tomka Gergely
"S most - vajon barbárok nélkül mi lesz velünk?
Ők mégiscsak megoldás voltak valahogy..."


pgsql-novice by date:

Previous
From: "Cody Phanekham"
Date:
Subject: Restoring the database
Next
From: Kevin Waterson
Date:
Subject: SELECT woes