[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Postgresql backup via LVM snapshot?
From:       "Lu, Dan" <Dan.Lu () sig ! com>
Date:       2019-05-30 19:38:21
Message-ID: 5d75bcc3e64f4b7b9a0e0cf2d66f0397 () msx ! bala ! susq ! com
[Download RAW message or body]

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.

[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Courier New";
	color:black;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:849610355;
	mso-list-type:hybrid;
	mso-list-template-ids:972425638 425480878 67698691 67698693 67698689 67698691 \
67698693 67698689 67698691 67698693;} @list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0E8;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;
	mso-fareast-font-family:Calibri;
	mso-bidi-font-family:"Courier New";}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l0:level5
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l0:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l0:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l0:level8
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l0:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l1
	{mso-list-id:1724593965;
	mso-list-type:hybrid;
	mso-list-template-ids:302278136 67698703 67698713 67698715 67698703 67698713 \
67698715 67698703 67698713 67698715;} @list l1:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l1:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l1:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l1:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l1:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l1:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l1:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black">Hello,<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black">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?<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black">I \
read about this here: <a \
href="https://dba.stackexchange.com/questions/145361/backup-standby-database-using-lvm-snapshot">
 https://dba.stackexchange.com/questions/145361/backup-standby-database-using-lvm-snapshot</a><o:p></o:p></span></p>
 <p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black"><br> Is it as simple as:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> <p class="MsoListParagraph" \
style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span \
style="font-family:Wingdings;color:black"><span style="mso-list:Ignore">&egrave;<span \
style="font:7.0pt &quot;Times New Roman&quot;"> </span></span></span><![endif]><span \
style="font-family:&quot;Courier New&quot;;color:black">SELECT pg_start_backup('Begin \
LVM Backup At xyz');<o:p></o:p></span></p> <p class="MsoListParagraph" \
style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span \
style="font-family:Wingdings;color:black"><span style="mso-list:Ignore">&egrave;<span \
style="font:7.0pt &quot;Times New Roman&quot;"> </span></span></span><![endif]><span \
style="font-family:&quot;Courier New&quot;;color:black">Do LVM backup from o/s end to \
backup PGDATA/PG_WAL<o:p></o:p></span></p> <p class="MsoListParagraph" \
style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span \
style="font-family:Wingdings;color:black"><span style="mso-list:Ignore">&egrave;<span \
style="font:7.0pt &quot;Times New Roman&quot;"> </span></span></span><![endif]><span \
style="font-family:&quot;Courier New&quot;;color:black">SELECT \
pg_stop_backup();<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black">Thanks.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black">Dan<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:black"><o:p>&nbsp;</o:p></span></p> </div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
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.<br>
</font>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic