From: Olivier Leprêtre <o.lepretre@gmail.com>
To: 'pgsql-admin' <pgsql-admin@postgresql.org>
Subject: RE: virtualized snapshots and PITR
Date: Thu, 14 Dec 2017 09:44:42 +0100
Message-ID: <5a3239ff.449f1c0a.996bb.4359@mx.google.com> (raw)
In-Reply-To: <1513239540.2442.22.camel@cybertec.at>
References: <38c84302-270e-a2b6-648f-26ba798d8787@propaas.com>
<1513239540.2442.22.camel@cybertec.at>
As I was not aware of this command I searched for it and found this interesting blog.
https://blog.2ndquadrant.com/what-does-pg_start_backup-do/
Olivier
-----Message d'origine-----
De : Laurenz Albe [mailto:laurenz.albe@cybertec.at]
Envoyé : jeudi 14 décembre 2017 09:19
À : PropAAS DBA; pgsql-admin
Objet : Re: virtualized snapshots and PITR
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
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: o.lepretre@gmail.com
Subject: RE: virtualized snapshots and PITR
In-Reply-To: <5a3239ff.449f1c0a.996bb.4359@mx.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox