Postgresql backup via LVM snapshot?

From: "Lu, Dan" <Dan(dot)Lu(at)sig(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Postgresql backup via LVM snapshot?
Date: 2019-05-30 19:38:21
Message-ID: 5d75bcc3e64f4b7b9a0e0cf2d66f0397@msx.bala.susq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Would you be able to confirm for me that a host level LVM snapshot of the PGDATA directory along with PG_WAL directly via LVM backup is supported way of backup and restore?

I read about this here: https://dba.stackexchange.com/questions/145361/backup-standby-database-using-lvm-snapshot

Is it as simple as:

? SELECT pg_start_backup('Begin LVM Backup At xyz');

? Do LVM backup from o/s end to backup PGDATA/PG_WAL

? SELECT pg_stop_backup();

Thanks.

Dan

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-05-30 21:46:28 Re: compiling PL/pgSQL plugin with C++
Previous Message Peter J. Holzer 2019-05-30 19:00:57 Re: Questions about btree_gin vs btree_gist for low cardinality columns