X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 32E315E46C2 for ; Tue, 24 Aug 2004 13:26:49 -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 50649-08 for ; Tue, 24 Aug 2004 16:26:53 +0000 (GMT) Received: from silmaril.syscor.priv (h24-108-208-253.sbm.shawcable.net [24.108.208.253]) by svr1.postgresql.org (Postfix) with ESMTP id 0659E5E3631 for ; Tue, 24 Aug 2004 13:26:43 -0300 (ADT) Received: from syscor.com (strider.syscor.priv [192.168.1.3]) by silmaril.syscor.priv (8.12.8/8.12.8) with ESMTP id i7OGQqXR030694; Tue, 24 Aug 2004 09:26:52 -0700 Message-ID: <412B6C9F.8070301@syscor.com> Date: Tue, 24 Aug 2004 09:28:15 -0700 From: Ron St-Pierre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Eduardo S. Fontanetti" , pgsql-general Subject: Re: Dump and Restore References: <20040824134032.69606.qmail@web40709.mail.yahoo.com> In-Reply-To: <20040824134032.69606.qmail@web40709.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/1179 X-Sequence-Number: 64734 Eduardo S. Fontanetti wrote: >How can I do a test if my dumping is really working, I >can't apply the dump in my database, because it will >overwrite a lot of data. I was thinking about restore >in another database name, but I can't, it always >restore on the original database. > >Somebody have a cooking recipe about to test if my >backup is working fine, and will help if I need >sometime? > > OK here's a recipe: If you're using pg_dump as in: pg_dump dbName > fileName create your new database: createdb myNewDB (don't forget your encoding) and then restore from the dump: psql -d myNewDB -f fileName Ron