Re: Advise on restoring from VM Snapshot backup - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: Advise on restoring from VM Snapshot backup
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50FA2170@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: Advise on restoring from VM Snapshot backup  ("Porwal, Utkarsh" <utkarsh.porwal@emc.com>)
List pgsql-admin
Utkarsh Porwal wrote:
> Any advise or experience with restoring the db server using VM snapshots with a caveat that snapshots
> have been taken with DB running and nt stopped.

This is explained in the documentation:
http://www.postgresql.org/docs/current/static/backup-file.html

The key word is "consistent snapshot": if it is a truly atomic file system
snapshot, crash recovery will get your database up an running.
All you have to do is start the database.

If the snapshot is not truly atomic, you will very likely end up with
a corrupted database.

Yours,
Laurenz Albe

pgsql-admin by date:

Previous
From: "Porwal, Utkarsh"
Date:
Subject: Re: Advise on restoring from VM Snapshot backup
Next
From: Albe Laurenz
Date:
Subject: Re: PostgresDB - Advise on possible data corruption