Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePOjY-0001E3-V3 for pgsql-admin@arkaria.postgresql.org; Thu, 14 Dec 2017 08:19:13 +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 1ePOjY-0002kY-2s for pgsql-admin@arkaria.postgresql.org; Thu, 14 Dec 2017 08:19:12 +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 1ePOjX-0002kN-Sc for pgsql-admin@lists.postgresql.org; Thu, 14 Dec 2017 08:19:11 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ePOjT-0006Jv-OR for pgsql-admin@postgresql.org; Thu, 14 Dec 2017 08:19:11 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 3B7EC4CD97; Thu, 14 Dec 2017 09:19:05 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id jFOW9PW3aMRQ; Thu, 14 Dec 2017 09:19:02 +0100 (CET) Message-ID: <1513239540.2442.22.camel@cybertec.at> Subject: Re: virtualized snapshots and PITR From: Laurenz Albe To: PropAAS DBA , pgsql-admin Date: Thu, 14 Dec 2017 09:19:00 +0100 In-Reply-To: <38c84302-270e-a2b6-648f-26ba798d8787@propaas.com> References: <38c84302-270e-a2b6-648f-26ba798d8787@propaas.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PropAAS DBA wrote: > we have a client using veeam to do vmware snapshots of the db servers, > unfortunately as far as I can tell any restore of a veeam snapshot also > restores the state, which means the db gets restored in an online state. > As far as I know, once the db is online we cannot force it back into > recovery mode to do a PITR recovery, correct? > > Anyone know of a way to do PITR recoveries with veeam? It is fairly simple. Before the snapshot, run SELECT pg_start_backup('label of your choice', TRUE); After the snapshot, run SELECT pg_stop_backup(); Yours, Laurenz Albe