pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: flumbador@virgilio.it
To: pgsql-admin@lists.postgresql.org
Subject: Re: backup postgresql with snapshot AWS
Date: Fri, 19 Jan 2018 09:00:04 -0500
Message-ID: <58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net> (raw)
In-Reply-To: <166191299.1443519.1516368751643@mail.virgilio.it>
References: <166191299.1443519.1516368751643@mail.virgilio.it>

On 1/19/18 8:32 AM, flumbador@virgilio.it wrote:
> 
> I have a postgresql in Cloud AWS and I want to build the backup strategy
> described below.
> 
> The postgresql has PGDATA, Tablespace and XLOG on a Physical Volume,
> mapping a single EBS disk.
> The WAL archive filesystem is on a separate Physical Volume, mapping a
> separate EBS disk.
> OS is SLES 11sp4 and PG is 9.4
> 
> The Backup procedure is:
> 
> 1) Start Backup
> 2) "AWS EBS Snapshot" of the Physical Volume containing PGDATA,
> Tablespace and XLOG
> 3) Stop Backup
> 4) "AWS EBS Snapshot" of the Physical Volume containing WAL archived
> 
> To allow PITR the WAL archive are also archived with a filesystem backup
> 
> Is someone using a similar backup strategy?

A strategy like this is posted to the lists from time to time.

> Are there tips or warning that I should be aware of?

Rolling your own backup solution is generally not a good idea.  It's a
lot harder to get right than it seems and an incorrect solution is often
not discovered until it is too late.

Since you are on AWS you should consider using a backup solution like
pgBackRest or WAL-G that support backups to S3.

Regards,
-- 
-David
david@pgmasters.net




view thread (13+ messages)  latest in thread

Message-ID: <58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net>
Permalink:  ../58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net/
Also on:    postgresql.org/message-id/58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net

 · 

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: david@pgmasters.net, flumbador@virgilio.it, pgsql-admin@lists.postgresql.org
  Subject: Re: backup postgresql with snapshot AWS
  In-Reply-To: <58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net>

* 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