Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TfSGF-0008RN-Nr for pgsql-admin@arkaria.postgresql.org; Mon, 03 Dec 2012 09:24:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TfSGD-0008OS-WA for pgsql-admin@arkaria.postgresql.org; Mon, 03 Dec 2012 09:24:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TfSGD-0008OK-Ae for pgsql-admin@postgresql.org; Mon, 03 Dec 2012 09:24:21 +0000 Received: from delta01.pnet.xcon.it ([62.48.53.16]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TfSGA-0005ku-V7 for pgsql-admin@postgresql.org; Mon, 03 Dec 2012 09:24:21 +0000 Received: from localhost (localhost [127.0.0.1]) by delta01.pnet.xcon.it (Postfix) with ESMTP id E77E310336398; Mon, 3 Dec 2012 10:24:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at delta01.pnet.xcon.it Received: from delta01.pnet.xcon.it ([127.0.0.1]) by localhost (delta01.pnet.xcon.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ABSIQLS5vfeF; Mon, 3 Dec 2012 10:24:17 +0100 (CET) Received: from Gabriele.local (unknown [83.149.163.202]) (Authenticated sender: gabriele.bartolini@devise.it) by delta01.pnet.xcon.it (Postfix) with ESMTPSA id 7C11E1033708B; Mon, 3 Dec 2012 10:24:17 +0100 (CET) Message-ID: <50BC6FC1.20208@2ndQuadrant.it> Date: Mon, 03 Dec 2012 10:24:17 +0100 From: Gabriele Bartolini User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Albe Laurenz CC: "Andrew W. Gibbs" , pgsql-admin@postgresql.org Subject: Re: base backup requirements for PITR References: <20121129015217.GA9975@raptor.commandosoftware.com> <50B936E9.9090504@2ndQuadrant.it> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 Hi Laurenz, Il 01/12/12 12:18, Albe Laurenz ha scritto: > Gabriele, I understand that you want to spread the word, > but the OP's problem was a different one: You are right. I totally missed that. I skimmed the email (very quickly) and thought that in that particular context Andrew was referring to PITR in general. > He wants to create a base backup by just copying the > data directory of an 8.4 warm standby server. > There is no possibility to run pg_(start|stop)_backup, > but the documentation seems to suggest that it could work > anyway: > http://www.postgresql.org/docs/8.4/static/warm-standby.html#BACKUP-INCREMENTAL-UPDATED Yes, it is possible. I'd like to try and implement that in Barman, in order to automate this. I'd try and follow this path though: pg_start_backup() on the master, wait for the operation to be replayed on the standby (with pg_controldata if < 9.0 or through hot standby), rsync/tar from the standby, then pg_stop_backup() on the master. If you think of following this path yourself, please make sure you test it accurately (especially for production environment). Sorry Andrew about misunderstanding the original question. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartolini@2ndQuadrant.it | www.2ndQuadrant.it -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin