X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 95469528D9 for ; Wed, 22 Jun 2005 17:02:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03707-01 for ; Wed, 22 Jun 2005 20:02:24 +0000 (GMT) Received: from web33413.mail.mud.yahoo.com (web33413.mail.mud.yahoo.com [68.142.206.145]) by svr1.postgresql.org (Postfix) with SMTP id 26E3C528BB for ; Wed, 22 Jun 2005 17:02:23 -0300 (ADT) Received: (qmail 67914 invoked by uid 60001); 22 Jun 2005 20:02:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=q733Rr1zsmDmE42ZBuFj3zekdFrFn7Nw5sCimm0+XhrPh2/69jSCuY47gGVeKBm5s3E3hsd5Xj1mCkLvl5xeXuQ+Odl8GxJ7Fe9G/nLva4sbWZxY8mZxazEA4sM+uw3nNFg6qZuKzvmgyLORbp+COZ0beKWI7WdgIPB802hoKaI= ; Message-ID: <20050622200224.67912.qmail@web33413.mail.mud.yahoo.com> Received: from [129.173.68.207] by web33413.mail.mud.yahoo.com via HTTP; Wed, 22 Jun 2005 16:02:24 EDT Date: Wed, 22 Jun 2005 16:02:24 -0400 (EDT) From: Paul Keyes Subject: moving database to diff. server To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.374 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200506/247 X-Sequence-Number: 18002 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