Re: easy way to copy all DBs and users on a server - Mailing list pgsql-admin

From Christopher Browne
Subject Re: easy way to copy all DBs and users on a server
Date
Msg-id m3u159oro4.fsf@wolfe.cbbrowne.com
Whole thread Raw
In response to easy way to copy all DBs and users on a server  (exciteworks hosting <jtnews@exciteworks.com>)
List pgsql-admin
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?

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Taking database offline
Next
From: Murthy Kambhampaty
Date:
Subject: [SOLVED] RE: 7.4RC2: pg_crypto not working?