Re: Snapshot backups

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: James Sewell <james(dot)sewell(at)lisasoft(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Snapshot backups
Date: 2013-06-20 08:34:00
Message-ID: CABUevEzPFi4TnaA0QyaBxbPgKUio5+cjeFzARY05+AOOd+7-0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 20, 2013 at 8:45 AM, James Sewell <james(dot)sewell(at)lisasoft(dot)com>wrote:

> Hey All,
>
> This is a message to confirm my thoughts / validate a possible approach.
>
> In a situation where PGDATA and {XLOG, ARCHIVELOG} are on different
> SAN/NAS volumes and a backup is to be initiated do pg_start_backup and
> pg_stop_backup need to be used?
>
> I am using snapshots of each volume for backup.
>
> My thinking is that they are not needed (although I realise it is good
> practice).
>
> As far as I can tell all they are doing is something like:
>
> pg_start_backup:
> - create backup label
> - trigger checkpoint
>
> pg_stop_backup
> - remove backup label file
> - creates backup history file
> - trigger log switch
>
> There is nothing in here that is *required* from a backup point of view.
> Am I missing anything?
>

The backup functions also set internal state in the database, so you can't
just replace it with doing those operations manually. You do need to call
those functions.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sameer Thakur 2013-06-20 09:05:19 Re: Archiving and recovering pg_stat_tmp
Previous Message Magnus Hagander 2013-06-20 08:30:02 Re: LDAP authentication timing out