Re: Question: migrate - Mailing list pgsql-general

From Jeff Trout
Subject Re: Question: migrate
Date
Msg-id FA99CE4F-0F3E-471E-A981-883DCCD823C7@torgo.978.org
Whole thread Raw
In response to Question: migrate  (Hrishikesh Deshmukh <hdeshmuk@gmail.com>)
Responses Re: Question: migrate
List pgsql-general
On May 27, 2005, at 12:10 PM, Hrishikesh Deshmukh wrote:

> Hi All,
>
> I have a huge database working on a debian linux machine, this machine
> is going to get a hard drive wipe and new OS. I have another debian
> linux machine (exact hardware + software). Is there a way to get
> database "migrated" from machine 1 to machine 2 without much work?
>

2 methods

1. since it is the same kind of hardware you can shut down PG on
machine1 and tar up $PGDATA move to machine2, untar and fire up PG.

2. pg_dump on machine 1, copy the dump, load up on machine2. (this
will take longer)

--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/



pgsql-general by date:

Previous
From: Hrishikesh Deshmukh
Date:
Subject: Question: migrate
Next
From: Tony Caduto
Date:
Subject: Re: solaris 10 vs Linux Debian on SUN Fire v40z