Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 85CC063417D for ; Mon, 22 Mar 2010 07:38:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45952-05 for ; Mon, 22 Mar 2010 10:38:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id E37896321C4 for ; Mon, 22 Mar 2010 07:38:22 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ntf1Y-0005dv-RG for pgsql-admin@postgresql.org; Mon, 22 Mar 2010 03:38:20 -0700 Message-ID: <27984540.post@talk.nabble.com> Date: Mon, 22 Mar 2010 03:38:20 -0700 (PDT) From: blast To: pgsql-admin@postgresql.org Subject: Backup&Restore Postgres DB MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: carlosd2002@hotmail.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.097 tagged_above=-10 required=5 tests=BAYES_00=-2.599, FORGED_HOTMAIL_RCVD2=1.502 X-Spam-Level: X-Archive-Number: 201003/152 X-Sequence-Number: 33951 Hi all, I need to backup and restore a DB. In this particular case the data in the database is not important (strange hum...) but only the schema to put new data... I m thinking use the pg_dump: pg_dump -c -C -s schema > file.out With this i have in file.out the schema, correct? So, to restore the db from scratch, for example to a new system, what should i do? it automatically creates all users, rolls, permissions etc?How? What is the best way of doing it? Many thanks -- View this message in context: http://old.nabble.com/Backup-Restore-Postgres-DB-tp27984540p27984540.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.