Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enqLg-0006Ml-QY for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 18:39:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enqLe-0001RO-Dx for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 18:39:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1enqLe-0001RE-6P for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 18:39:34 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enqLV-00055q-NG for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 18:39:33 +0000 Received: from Davids-iMac.local (unknown [173.169.74.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id E2CE05466C; Mon, 19 Feb 2018 18:39:22 +0000 (UTC) Subject: Re: pgBackRest backup from standby To: Simon Riggs , Don Seiler Cc: pgsql-general@lists.postgresql.org References: <3f5aa386-32df-4ea9-51a6-ae0c918fd04f@pgmasters.net> <4ae14a90-1f2d-09f6-5e56-1609acad51b0@pgmasters.net> <09b97a16-d7c4-e014-4e69-aa8b890cb6cc@pgmasters.net> From: David Steele Message-ID: <42d5f210-70e8-e7da-37ec-7903c69d008d@pgmasters.net> Date: Mon, 19 Feb 2018 13:39:21 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/19/18 11:29 AM, Simon Riggs wrote: > On 19 February 2018 at 16:17, David Steele wrote: >>> > I did come up with a sort of Rube Goldberg-esque workaround for now >>> > involving using a clone of the prod standby VM from Veeam backup to use >>> > as the backup source (after stopping recovery and opening it as a >>> > standalone DB). >>> >>> You don't get PITR that way, of course, but at least it's a backup. As >>> long as your clone is consistent. >>> >>> >>> Yes it's a crash-consistent snapshot-based backup. I've done quite a few >>> restores from it and it works great. It can do PITR as well since I >>> would have all the WAL files from prod needed to keep recovering. But >>> for these cases I just recover it to the first consistent point and open >>> it for testing (or backups in this case). >> >> I don't think it would be safe to do PITR on a backup taken in this way. > > If you have all the WAL files, then it would be safe. I read "open it for testing (or backups in this case)" as letting recovery complete and promoting the cluster to a master before taking the backup. Don, is that the case? If it is, I think there's a problem with or without a timeline switch. If you confirm the backup is being taken as above then I'll detail my concerns. -- -David david@pgmasters.net