Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWQtd-00014L-Da for pgsql-general@arkaria.postgresql.org; Thu, 30 May 2019 19:39:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hWQsd-0007HC-UP for pgsql-general@arkaria.postgresql.org; Thu, 30 May 2019 19:38:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWQsd-0007Gz-DD for pgsql-general@lists.postgresql.org; Thu, 30 May 2019 19:38:27 +0000 Received: from mail2.sig.com ([141.162.101.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWQsZ-0004Zi-St for pgsql-general@postgresql.org; Thu, 30 May 2019 19:38:25 +0000 X-SIG-Detect: None X-IronPort-AV: E=Sophos;i="5.60,532,1549947600"; d="scan'208,217";a="64833525" From: "Lu, Dan" To: "pgsql-general@postgresql.org" Subject: Postgresql backup via LVM snapshot? Thread-Topic: Postgresql backup via LVM snapshot? Thread-Index: AdUXHtUJuAS3llCBRlObVp7BU29Lqg== Date: Thu, 30 May 2019 19:38:21 +0000 Message-ID: <5d75bcc3e64f4b7b9a0e0cf2d66f0397@msx.bala.susq.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.25.121] Content-Type: multipart/alternative; boundary="_000_5d75bcc3e64f4b7b9a0e0cf2d66f0397msxbalasusqcom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_5d75bcc3e64f4b7b9a0e0cf2d66f0397msxbalasusqcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Would you be able to confirm for me that a host level LVM snapshot of the P= GDATA 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/back= up-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 i= s confidential. If you are not the intended recipient, please notify the se= nder immediately by reply and immediately delete this message and all its a= ttachments. Any review, use, reproduction, disclosure or dissemination of t= his message or any attachment by an unintended recipient is strictly prohib= ited. Neither this message nor any attachment is intended as or should be c= onstrued as an offer, solicitation or recommendation to buy or sell any sec= urity or other financial instrument. Neither the sender, his or her employe= r nor any of their respective affiliates makes any warranties as to the com= pleteness or accuracy of any of the information contained herein or that th= is message or any of its attachments is free of viruses. --_000_5d75bcc3e64f4b7b9a0e0cf2d66f0397msxbalasusqcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

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

 

I read about this here: https://dba.stackexchange.com/questions/145361/backup-standby-database-usin= g-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 i= s confidential. If you are not the intended recipient, please notify the se= nder immediately by reply and immediately delete this message and all its a= ttachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an uninte= nded recipient is strictly prohibited. Neither this message nor any attachm= ent is intended as or should be construed as an offer, solicitation or reco= mmendation 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 complete= ness or accuracy of any of the information contained herein or that this me= ssage or any of its attachments is free of viruses.
--_000_5d75bcc3e64f4b7b9a0e0cf2d66f0397msxbalasusqcom_--