pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tjk@tksoft.com <tjk@tksoft.com>
To: wilms@stud.fh-hannover.de
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] harddisk crash
Date: Wed, 25 Aug 1999 10:42:12 -0700 (PDT)
Message-ID: <199908251742.KAA02793@uno.tksoft.com> (raw)
In-Reply-To: <37C400EA.41F9A26A@stud.fh-hannover.de>

H.W.,
The easiest way is to install a new system with the same 
version of Postgres which you were running, and after you've
got the system installed, kill postres, rename it's base directory to
base.old, and move your old base directory from the crashed system
to it's place. Then restart Postgres.

If you are concerned about the integrity of the old files,
which you probably should be, dump the old tables and then
rename the base.old directory back to base and load the
data from the dump files to the new system.

You dump the old databases with "pg_dump dbname > dumpfile.txt"
I understand that pg_dumpall now works properly, so
you might be able to use that, if you have tons of databases.
You restore with "psql dbname -e < dumpfile.txt"


Troy


> 
> Hi,
> 
> after a harddisk crash I was only able to restore the data from the
> 
> base directory. What are the steps to restore the database with these
> 
> files? You all know how much work it is to build a database so I would
> 
> be very thankful to any reply.
> 
> --
> H. Wilms
> 
> Homepage schering.si.uni-hannover.de/hugo
> email    wilms@stud.fh-hannover.de
> 
> 
> 
> 
> ************
> 
> 




view thread (2+ messages)

Message-ID: <199908251742.KAA02793@uno.tksoft.com>
Permalink:  ../199908251742.KAA02793@uno.tksoft.com/
Also on:    postgresql.org/message-id/199908251742.KAA02793@uno.tksoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tjk@tksoft.com, wilms@stud.fh-hannover.de
  Subject: Re: [SQL] harddisk crash
  In-Reply-To: <199908251742.KAA02793@uno.tksoft.com>
  References: <37C400EA.41F9A26A@stud.fh-hannover.de> <199908251742.KAA02793@uno.tksoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox