Re: [GENERAL] VM-Ware Backup of VM safe? - Mailing list pgsql-general

From David Steele
Subject Re: [GENERAL] VM-Ware Backup of VM safe?
Date
Msg-id 55e09857-ead8-d72f-68bf-ba8deef48156@pgmasters.net
Whole thread Raw
In response to Re: [GENERAL] VM-Ware Backup of VM safe?  (PT <wmoran@potentialtech.com>)
List pgsql-general
On 9/20/17 7:36 AM, PT wrote:
> On Wed, 20 Sep 2017 10:03:15 +0200
> Thomas Güttler <guettliml@thomas-guettler.de> wrote:
> 
>> We run a PostgreSQL 9.6 server in a virtual machine.
>>
>> The virtual machine is managed by the customer.
>>
>> He does backup the VM.
>>
>> Is this enough, is this safe?
> 
> There are so many variables involved with doing that ... I don't think
> anyone can reliably answer that question.
> 
> I recommend you put together a periodic test schedule where you restore
> a machine from the backup and ensure everything works. To be honest, you
> should be doing that anyway.

Restore testing is as must, but a bad backup scheme can result in subtle
errors that are very hard to detect.

If you can't find specific documentation that your VM backup solution is
safe to use with a DBMS then it is almost certainly not safe.  Even if
it says it is there are potential gotchas.  For example, the backup may
not be consistent if you are using multiple volumes.

In addition, data loss on restore will be greater if there is no WAL
archive to play forward from.

-- 
-David
david@pgmasters.net


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: Re: [GENERAL] Selecting a daily puzzle record - which type of columnto add?
Next
From: Stephen Frost
Date:
Subject: Re: [GENERAL] [HACKERS] USER Profiles for PostgreSQL