pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
harddisk crash
2+ messages / 2 participants
[nested] [flat]

* harddisk crash
@ 1999-08-25 14:42 Heiko Wilms <wilms@stud.fh-hannover.de>
  1999-08-25 17:42 ` Re: [SQL] harddisk crash tjk@tksoft.com <tjk@tksoft.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Heiko Wilms @ 1999-08-25 14:42 UTC (permalink / raw)
  To: pgsql-sql

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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [SQL] harddisk crash
  1999-08-25 14:42 harddisk crash Heiko Wilms <wilms@stud.fh-hannover.de>
@ 1999-08-25 17:42 ` tjk@tksoft.com <tjk@tksoft.com>
  0 siblings, 0 replies; 2+ messages in thread

From: tjk@tksoft.com @ 1999-08-25 17:42 UTC (permalink / raw)
  To: wilms@stud.fh-hannover.de; +Cc: pgsql-sql

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-08-25 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-08-25 14:42 harddisk crash Heiko Wilms <wilms@stud.fh-hannover.de>
1999-08-25 17:42 ` tjk@tksoft.com <tjk@tksoft.com>

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