X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 36637D1B4FE for ; Thu, 13 Nov 2003 04:19:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 40991-06 for ; Thu, 13 Nov 2003 00:18:40 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A86F3D1B4F9 for ; Thu, 13 Nov 2003 00:18:40 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hAD4IeNu059360 for ; Thu, 13 Nov 2003 04:18:40 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hAD3qLar054440 for pgsql-admin@postgresql.org; Thu, 13 Nov 2003 03:52:21 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: easy way to copy all DBs and users on a server Date: Wed, 12 Nov 2003 22:47:55 -0500 Organization: cbbrowne Computing Inc Lines: 24 Message-ID: References: <3FB2E9A4.3080002@exciteworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:Hn/DJPR78e+kSJsYNt2lRignaqk= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/238 X-Sequence-Number: 11225 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?