pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-admin@postgresql.org
Subject: Re: easy way to copy all DBs and users on a server
Date: Wed, 12 Nov 2003 22:47:55 -0500
Message-ID: <m3u159oro4.fsf@wolfe.cbbrowne.com> (raw)
References: <3FB2E9A4.3080002@exciteworks.com>

In an attempt to throw the authorities off his trail, jtnews@exciteworks.com (exciteworks hosting) transmitted:
> Is there an easy way to copy all DBs and users on a server to another
> server?
>
> I need to get an exact duplicate.

How exact is "exact"?

One notion of "exact" would involve stopping the database, building a
tarball that contains all of the data, copying it over and extracting
it.

Another would involve using "pg_dumpall" to dump all of the databases
and users and generating the SQL required to recreate it all.

If you're not sure how those approaches' differences would affect your
system, then it's pretty likely that pg_dumpall is the preferable
answer...
-- 
output = reverse("gro.gultn" "@" "enworbbc")
http://www3.sympatico.ca/cbbrowne/rdbms.html
If you've done  six impossible things  this morning, why not  round it
off  with breakfast  at  Milliways, the  Restaurant at the  End of the
Universe?



view thread (4+ messages)  latest in thread

Message-ID: <m3u159oro4.fsf@wolfe.cbbrowne.com>
Permalink:  ../m3u159oro4.fsf@wolfe.cbbrowne.com/
Also on:    postgresql.org/message-id/m3u159oro4.fsf@wolfe.cbbrowne.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: easy way to copy all DBs and users on a server
  In-Reply-To: <m3u159oro4.fsf@wolfe.cbbrowne.com>
  References: <3FB2E9A4.3080002@exciteworks.com> <m3u159oro4.fsf@wolfe.cbbrowne.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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