pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PropAAS DBA <dba@propaas.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: virtualized snapshots and PITR
Date: Thu, 14 Dec 2017 08:29:04 -0700
Message-ID: <cea78e48-194d-9443-ea1a-2dab60fe65e3@propaas.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>



On 12/14/2017 01:19 AM, Laurenz Albe wrote:
> 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

However restoring the snapshot with veeam will restore the db to a 
running/online state, which means we cannot force it to go back into 
recovery mode yes?





view thread (7+ messages)  latest in thread

Message-ID: <cea78e48-194d-9443-ea1a-2dab60fe65e3@propaas.com>
Permalink:  ../cea78e48-194d-9443-ea1a-2dab60fe65e3@propaas.com/
Also on:    postgresql.org/message-id/cea78e48-194d-9443-ea1a-2dab60fe65e3@propaas.com

 · 

reply

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: dba@propaas.com, laurenz.albe@cybertec.at
  Subject: Re: virtualized snapshots and PITR
  In-Reply-To: <cea78e48-194d-9443-ea1a-2dab60fe65e3@propaas.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