From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Lucas Lain <lainl(at)aconectarse(dot)com> |
Cc: | PostgreSQL general list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: restoring database |
Date: | 2003-12-22 22:05:40 |
Message-ID: | 1072130740.18216.511.camel@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, 2003-12-22 at 14:51, Lucas Lain wrote:
> Hi everybody ... i need to restore only one database from a pg_dumpall backup
> file... how can i do it?
If it's a plain text dump, make a copy of the backup file. Edit the
copy and delete everything that doesn't relate to the database to be
restored.
If you dumped in tar or special format, I believe you can use
pg_restore -d dbname
but I haven't done that myself and am not sure if I'm interpreting the
manpage correctly.
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"And there were in the same country shepherds abiding
in the field, keeping watch over their flock by night.
And, lo, the angel of the Lord came upon them, and the
glory of the Lord shone around them; and they were
sore afraid. And the angel said unto them, " Fear not;
for behold I bring you good tidings of great joy which
shall be to all people. For unto you is born this day
in the city of David a Saviour, which is Christ the
Lord." Luke 2:8-11
From | Date | Subject | |
---|---|---|---|
Next Message | MT | 2003-12-22 23:12:39 | Normalization and regexp |
Previous Message | Melanie Bergeron | 2003-12-22 21:48:29 | Re: Add Primary/Foreign Key in 7.3.2 |