Re: database transfer

From: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
To: "Ronnie Esguerra" <resguerra(at)solidservice(dot)com(dot)ph>, "PGSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: database transfer
Date: 2001-01-25 09:49:56
Message-ID: 0101250449560I.08820@comptechnews
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 25 January 2001 03:46, Ronnie Esguerra wrote:
> Hi,
>
> I will be moving my postgres database from one server to a new server. What
> files do I need to move or how is it done?
>
> Ronnie

pg_dumpall the whole database to a file (pg_dumpall > dumpfile). Assuming you
use the PostgreSQL source code, configure and make postgres on the new
machine and do the regress tests (src/test/regress). If it's good, make
install, make postgres superuser unix account, then initdb as user postgres.
Finally, restore your dumpfile with psql -e template1 < dumpfile (the way man
pg_dumpall says to do it). I wouldn't try just copying files from one box to
another (except your dumpfile).

--
-------- Robert B. Easter reaster(at)comptechnews(dot)com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-25 11:07:11 Re: UNION on views in 7.1
Previous Message Dr R.Adscheid 2001-01-25 09:38:24 vacuum