pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
easy way to copy all DBs and users on a server
4+ messages / 4 participants
[nested] [flat]

* easy way to copy all DBs and users on a server
@ 2003-11-13 02:17 exciteworks hosting <jtnews@exciteworks.com>
  2003-11-13 03:47 ` Re: easy way to copy all DBs and users on a server Christopher Browne <cbbrowne@acm.org>
  2003-11-13 04:46 ` Re: easy way to copy all DBs and users on a server A.Bhuvaneswaran <bhuvan@symonds.net>
  2003-11-13 18:12 ` Re: easy way to copy all DBs and users on a server scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 3 replies; 4+ messages in thread

From: exciteworks hosting @ 2003-11-13 02:17 UTC (permalink / raw)
  To: pgsql-admin

Is there an easy way to copy all DBs and users on a server to another 
server?

I need to get an exact duplicate.

Thanks in avance!

---
Josh Trefethen
Exciteworks, Inc
http://exciteworks.com





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: easy way to copy all DBs and users on a server
  2003-11-13 02:17 easy way to copy all DBs and users on a server exciteworks hosting <jtnews@exciteworks.com>
@ 2003-11-13 03:47 ` Christopher Browne <cbbrowne@acm.org>
  2 siblings, 0 replies; 4+ messages in thread

From: Christopher Browne @ 2003-11-13 03:47 UTC (permalink / raw)
  To: 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?



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: easy way to copy all DBs and users on a server
  2003-11-13 02:17 easy way to copy all DBs and users on a server exciteworks hosting <jtnews@exciteworks.com>
@ 2003-11-13 04:46 ` A.Bhuvaneswaran <bhuvan@symonds.net>
  2 siblings, 0 replies; 4+ messages in thread

From: A.Bhuvaneswaran @ 2003-11-13 04:46 UTC (permalink / raw)
  To: exciteworks hosting <jtnews@exciteworks.com>; +Cc: pgsql-admin

On Thu, 2003-11-13 at 07:47, exciteworks hosting wrote:
> Is there an easy way to copy all DBs and users on a server to another 
> server?

pg_dumpall is a good partner. If i am correct, you can also copy the
entire data directory, provided if both versions are same.

regards,
bhuvaneswaran

Attachments:

  signature.asc (application/pgp-signature, 231B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: easy way to copy all DBs and users on a server
  2003-11-13 02:17 easy way to copy all DBs and users on a server exciteworks hosting <jtnews@exciteworks.com>
@ 2003-11-13 18:12 ` scott.marlowe <scott.marlowe@ihs.com>
  2 siblings, 0 replies; 4+ messages in thread

From: scott.marlowe @ 2003-11-13 18:12 UTC (permalink / raw)
  To: exciteworks hosting <jtnews@exciteworks.com>; +Cc: pgsql-admin

On Wed, 12 Nov 2003, exciteworks hosting wrote:

> Is there an easy way to copy all DBs and users on a server to another 
> server?
> 
> I need to get an exact duplicate.

pg_dump -h source_server|psql -h dest_server





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-11-13 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-13 02:17 easy way to copy all DBs and users on a server exciteworks hosting <jtnews@exciteworks.com>
2003-11-13 03:47 ` Christopher Browne <cbbrowne@acm.org>
2003-11-13 04:46 ` A.Bhuvaneswaran <bhuvan@symonds.net>
2003-11-13 18:12 ` scott.marlowe <scott.marlowe@ihs.com>

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