X-Original-To: pgadmin-support-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B0CBA9FB317 for ; Thu, 13 Jul 2006 19:39:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77070-03 for ; Thu, 13 Jul 2006 19:39:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.cresoltec.com.br (unknown [200.103.143.8]) by postgresql.org (Postfix) with SMTP id 477F49FA7BA for ; Thu, 13 Jul 2006 19:39:28 -0300 (ADT) Received: (qmail 802 invoked from network); 12 Jul 2006 20:05:29 -0000 Received: from unknown (HELO ?10.90.2.162?) (10.90.2.162) by mail.cresoltec.com.br with SMTP; 12 Jul 2006 20:05:29 -0000 Message-ID: <44B555D3.4080605@yahoo.com.br> Date: Wed, 12 Jul 2006 17:04:35 -0300 From: Alexander Burbello User-Agent: Mozilla Thunderbird 1.0.2 (X11/20060423) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: Aaron Bono CC: Lista Postgres , pgsql-admin@postgresql.org Subject: Re: [ADMIN] Restore Database References: <20060711171232.83182.qmail@web36205.mail.mud.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/34 X-Sequence-Number: 5607 Ok! Its a good tool, but for Production Database I think it is not recommended. Only using pg_dump for the second backup plain. Suppose that you backed up at 6:00am and at 9am happened a crash on the server. In this case, I would lost data between that time, 3 hours of information. For production databases, my plan is to do phisical backup including WAL. If a crash happen, I can restore the datafiles and recover applying the WAL logs until the last file was generated. As Oracle does in this type of crash. My doubt is that I am not getting apply the WAL files on recover stage. Any other suggestion? Thanks for your help Aaron Bono escreveu: > On 7/11/06, *Burbello* > wrote: > > I need to test and create a procedure to restore > databases. > > > Why not just use pg_dump? > > See http://manual.intl.indoglobal.com/ch06s07.html > - it's really easy. > This is how we copy from production to testing and development and how > we do nightly backups. > > > ================================================================== > Aaron Bono > Aranya Software Technologies, Inc. > http://www.aranya.com > ==================================================================