Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uzo7u-00031f-Lw for pgsql-admin@arkaria.postgresql.org; Thu, 18 Jul 2013 13:20:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uzo7t-00031w-WD for pgsql-admin@arkaria.postgresql.org; Thu, 18 Jul 2013 13:20:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uzo7s-00031f-Nk for pgsql-admin@postgresql.org; Thu, 18 Jul 2013 13:20:08 +0000 Received: from mail-ie0-f170.google.com ([209.85.223.170]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uzo7p-0002wL-2s for pgsql-admin@postgresql.org; Thu, 18 Jul 2013 13:20:07 +0000 Received: by mail-ie0-f170.google.com with SMTP id e11so7061434iej.29 for ; Thu, 18 Jul 2013 06:20:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=r4wSsUDZFtkLXDr7VGFMX/E+gx6zkwIEbvkRiJ+4xLM=; b=p3Gm8cqgx9sXkI2mW0dBBDI6gnvRrRLrGEj00Hrotxwowij+9oBUPFBGb42q1Wfjgt ev1VRTWUGu0qe+DJXns77d7XVMG8ZbucxEdQ2RaB0P7HkoXkbzXsJ33bYVzh2ljab28j yl7ZMYepT8yyAlv23z1kX287DMIBNkpQcqBtuHtS+FVWe8+CCkdS9oBMyUevl/WyB3P2 Y126ABzBGI6G0qQWtbr735nBPMgoiiWgWWP5EccUqsBo3Dtli+U6HFQAMWfAa8unJ8wM 43/I2t1M+6UpMzwZkItKXBIqSOjI4VprDujgdQlWeWahj49aiKi+EOqoWCwwi3c/S5TH sFfQ== X-Received: by 10.50.50.244 with SMTP id f20mr3168448igo.21.1374153604020; Thu, 18 Jul 2013 06:20:04 -0700 (PDT) Received: from Kevins-MacBook-Pro.local ([65.100.173.26]) by mx.google.com with ESMTPSA id ht10sm10099114igb.2.2013.07.18.06.20.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jul 2013 06:20:03 -0700 (PDT) Message-ID: <51E7EB83.4070508@consistentstate.com> Date: Thu, 18 Jul 2013 07:20:03 -0600 From: CS DBA User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Help with PITR in PostgreSQL 8.4 References: <51E4725C.3050609@tiendalinux.com> <51E6BBF6.2000000@tiendalinux.com> <37977.192.168.207.54.1374076491.squirrel@webmail.etecsa.cu> <51E6C8EB.60308@tiendalinux.com> In-Reply-To: <51E6C8EB.60308@tiendalinux.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlZ92Jm0PRq+0FQCqb+OpkwRXSgOVHyvcsf+FslGBinKW5x4l3uKZiBsPFoa4ulivToK6qQ X-Pg-Spam-Score: -0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 7/17/13 10:40 AM, Nestor A. Diaz wrote: >> Hello Nestor >> >> I use its: >> >> standby_mode = 'on' >> primary_conninfo = 'host=X.X.X.X port=5432 user=XXXX password=YYYYYTT' >> trigger_file = '/var/pgsql/data/pg_failover_trigger' >> restore_command = 'cp /wal/%f /var/lib/postgresql/8.4/main/"%p"' > Ok, but those instructions are for 9.1 not for 8.4, I would like to be > sure if there is any way to perform countinus archiving then recovery > then backup and loop over this every day whithout having to rsync every > time I recover the standby database (8.4) > > Slds > > AFAIK The only way to do this in 8.4 is to make a copy of the standby and bring the copy online. We do it to run backups off the standby like this: 1) take the standby down (pg_ctl -m fast stop) 2) rsync the standby to the standby-copy 3) restart the standby (it will return to recovery mode) 4) bring the standby copy online (remove it's recovery.conf and start it up) 5) run the backups on the copy 6) shutdown the copy (but leave it in place so the next rsync only has to copy changed data) 7) rinse and repeat -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin