Skip site navigation (1) Skip section navigation (2)

Re: moving database to diff. server

From: Tom Arthurs <tarthurs(at)jobflash(dot)com>
To: Paul Keyes <paul_s_keyes(at)yahoo(dot)ca>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: moving database to diff. server
Date: 2005-06-28 05:03:36
Message-ID: 42C0DA28.30201@jobflash.com (view raw or flat)
Thread:
Lists: pgsql-admin
use initdb to create the cluster (including the template db's), if you 
haven't already done so.

Paul Keyes wrote:
> Hi All,
> 
> I'm confused about one aspect of backing up and moving
> a database to a different server.
> I've used pg_dump to dump the database and moved he
> resulting file to the new server, where Postgresql is
> istalled and configured (as far as I know).
> But I know that before I run psql on the backup I have
> to create the database with something like (createdb
> -T template0 dbname).  How do I make that template0?
> I assume I've got to make it from the old
> server/existing database but am unclear about how.
> Any advice is greatly appreciated.
> Thanks,
> Paul
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faq
> 
> 
> 

In response to

pgsql-admin by date

Next:From: Michael FuhrDate: 2005-06-28 06:09:59
Subject: Re: moving database to diff. server
Previous:From: Matthew T. O'ConnorDate: 2005-06-28 04:55:17
Subject: Re: vacuum taking longer over time

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group