Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePPqO-0006o6-IQ for pgsql-admin@arkaria.postgresql.org; Thu, 14 Dec 2017 09:30:20 +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 1ePPqO-00010g-1p for pgsql-admin@arkaria.postgresql.org; Thu, 14 Dec 2017 09:30:20 +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 1ePPqN-00010F-Rf for pgsql-admin@lists.postgresql.org; Thu, 14 Dec 2017 09:30:19 +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 1ePPqM-0007ue-16 for pgsql-admin@lists.postgresql.org; Thu, 14 Dec 2017 09:30:19 +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 817924D046; Thu, 14 Dec 2017 10:30:14 +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 84_EzOH76X8N; Thu, 14 Dec 2017 10:30:12 +0100 (CET) Message-ID: <1513243810.5112.8.camel@cybertec.at> Subject: Re: virtualized snapshots and PITR From: Laurenz Albe To: Achilleas Mantzios , pgsql-admin@lists.postgresql.org Date: Thu, 14 Dec 2017 10:30:10 +0100 In-Reply-To: References: <38c84302-270e-a2b6-648f-26ba798d8787@propaas.com> <1513239540.2442.22.camel@cybertec.at> 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 Achilleas Mantzios wrote: > > > 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(); > > This will create the data/backup_label file necessary for a minimal consistent recover, > but wouldn't he also have a recovery.conf in place, so that the server will keep > reading wals till it reaches the recovery target? Yes, for point-in-time recovery you would need a recovery.conf file with at least a "restore_command" in it. > And if the system comes up live he won't have the chance to create this directory. That's an interesting point; I didn't think of it. One thing I can think of is to disable PostgreSQL autostart while you take the snapshot. > Basically what we do ourselves is exactly what you suggest. > I'll have to ask if state (mem/cpu/registers/etc) is restored as well. Such a kind of snapshot wouldn't be useful for a database backup. You only want the storage. Yours, Laurenz Albe