pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedmoving database to diff. server
3+ messages / 3 participants
[nested] [flat]
* moving database to diff. server
@ 2005-06-22 20:02 Paul Keyes <paul_s_keyes@yahoo.ca>
2005-06-28 05:03 ` Re: moving database to diff. server Tom Arthurs <tarthurs@jobflash.com>
2005-06-28 06:09 ` Re: moving database to diff. server Michael Fuhr <mike@fuhr.org>
0 siblings, 2 replies; 3+ messages in thread
From: Paul Keyes @ 2005-06-22 20:02 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: moving database to diff. server
2005-06-22 20:02 moving database to diff. server Paul Keyes <paul_s_keyes@yahoo.ca>
@ 2005-06-28 05:03 ` Tom Arthurs <tarthurs@jobflash.com>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Arthurs @ 2005-06-28 05:03 UTC (permalink / raw)
To: Paul Keyes <paul_s_keyes@yahoo.ca>; +Cc: 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
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: moving database to diff. server
2005-06-22 20:02 moving database to diff. server Paul Keyes <paul_s_keyes@yahoo.ca>
@ 2005-06-28 06:09 ` Michael Fuhr <mike@fuhr.org>
1 sibling, 0 replies; 3+ messages in thread
From: Michael Fuhr @ 2005-06-28 06:09 UTC (permalink / raw)
To: Paul Keyes <paul_s_keyes@yahoo.ca>; +Cc: pgsql-admin
On Wed, Jun 22, 2005 at 04:02:24PM -0400, Paul Keyes wrote:
>
> 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?
template0 is created by initdb; you shouldn't have to create it
manually.
http://www.postgresql.org/docs/8.0/static/manage-ag-templatedbs.html
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-06-28 06:09 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-22 20:02 moving database to diff. server Paul Keyes <paul_s_keyes@yahoo.ca>
2005-06-28 05:03 ` Tom Arthurs <tarthurs@jobflash.com>
2005-06-28 06:09 ` Michael Fuhr <mike@fuhr.org>
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