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 265A39FB1D8 for ; Tue, 11 Jul 2006 14:19:20 -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 90017-05-2 for ; Tue, 11 Jul 2006 14:19:15 -0300 (ADT) X-Greylist: delayed 00:06:38.951993 by SQLgrey- Received: from web36205.mail.mud.yahoo.com (web36205.mail.mud.yahoo.com [209.191.68.231]) by postgresql.org (Postfix) with SMTP id E02BB9FB221 for ; Tue, 11 Jul 2006 14:19:13 -0300 (ADT) Received: (qmail 83184 invoked by uid 60001); 11 Jul 2006 17:12:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TG8uQrGUnueroqtK3X5OMBsB/RCpcInltQnpgF7VcnEpxOPG9LFXN9WFbgpgPPMis6PqQV9nUIYoodWP4gOvZm7OS2NCPo4FHxtW0JMVVKxJWq9RMHjyvAbX4VH4syrCnyFhIaQo8f8oBCCeNKdy4oLQiYHW/w2Nc2IVt5FPisg= ; Message-ID: <20060711171232.83182.qmail@web36205.mail.mud.yahoo.com> Received: from [200.103.143.8] by web36205.mail.mud.yahoo.com via HTTP; Tue, 11 Jul 2006 17:12:32 GMT Date: Tue, 11 Jul 2006 17:12:32 +0000 (GMT) From: Burbello Subject: Restore Database To: Lista Postgres Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/29 X-Sequence-Number: 5602 I need to test and create a procedure to restore databases. I followed the steps based on the site, but I couldn't finish succesfully. I did: 1. Put the database on Backup Mode and copy datafiles. /pg/bin/psql cresoldev -c "SELECT pg_start_backup('/pg/backup/');" tar -cvf /pg/backup/bk_base.tar /pg/data/base/* /pg/bin/psql cresoldev -c "SELECT pg_stop_backup();" File .conf: archive_command = 'cp -i %p /pg/backup/xlog/%f