forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
35 lines
8.8 KiB
HTML
35 lines
8.8 KiB
HTML
<a name="EN-US_TOPIC_0000002088517758"></a><a name="EN-US_TOPIC_0000002088517758"></a>
|
|
|
|
<h1 class="topictitle1">Restoring a DB Instance to a Specific Point in Time</h1>
|
|
<div id="body1588227561221"><div class="section" id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_section3037032812838"><h4 class="sectiontitle">Scenarios</h4><p id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_p2898859142259">You can use an instance-level automated backup to restore a <span id="EN-US_TOPIC_0000002088517758__text1880017111411">GaussDB</span> instance to a specified point in time.</p>
|
|
<p id="EN-US_TOPIC_0000002088517758__p085611161915">You can restore data to a new instance.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_section18971149163412"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_ul662316293510"><li id="EN-US_TOPIC_0000002088517758__li022725214542">Only instances of version 2.1 or later can be restored to any point in time.</li><li id="EN-US_TOPIC_0000002088517758__li4145245175811">Data from the time period of the following operations cannot be restored: nodes are being added to an instance, the instance version is being upgraded, or the instance data is being restored.</li><li id="EN-US_TOPIC_0000002088517758__li55365131558">If a DB instance is faulty or a CN is removed, archive logs cannot be generated, and data from the affected time period cannot be restored.</li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_li626555016383">If you restore backup data to a new DB instance:<ul id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_ul11797219395"><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_li67971817398">The DB engine and major version are the same as those of the original DB instance and cannot be changed.</li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_en-us_topic_0192953929_li77971716394">The administrator password needs to be reset.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000002088517758__li1748314401128">If you restore backup data to the original DB instance, data on the original instance will be overwritten and the original DB instance will be unavailable during the restoration. Additionally, log archiving stops. After the restoration is complete, the <strong id="EN-US_TOPIC_0000002088517758__b459812861512">Confirm Data Integrity</strong> button is displayed. Before clicking <strong id="EN-US_TOPIC_0000002088517758__b1272617473152">Confirm Data Integrity</strong>, you can restore data for multiple times. Once data integrity has been confirmed, any logs archived after the point in time data was restored from will be lost, but normal log archiving will be restored.</li><li id="EN-US_TOPIC_0000002088517758__li3204175942419">When a DB instance is deleted, all archive logs are deleted by default and cannot be retained. Data cannot be restored to a specific point in time after the DB instance is rebuilt.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_section92821456184113"><h4 class="sectiontitle"><strong id="EN-US_TOPIC_0000002088517758__b11872043111311">Procedure</strong></h4><ol id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_oacb9a8ec019b4a69a57bc49bd0c88922"><li id="EN-US_TOPIC_0000002088517758__li1717453954820"><span>Log in to the management console.</span></li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0207350132_en-us_topic_0204832111_l541898ae0beb476b8d4ba4e68723bbe9"><span>Click <span><img id="EN-US_TOPIC_0000002088517758__image1890894455240" src="figure/en-us_image_0000002088517922.png"></span> in the upper left corner and select a region and project.</span><p><p id="EN-US_TOPIC_0000002088517758__en-us_topic_0000001617547598_p1947616374"></p>
|
|
<p id="EN-US_TOPIC_0000002088517758__en-us_topic_0000001617547598_p1621481128"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0192953815_li181542917431"><span>Click <span><img id="EN-US_TOPIC_0000002088517758__image12551337612416" src="figure/en-us_image_0000002124197217.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002088517758__b16976251732416">Databases</strong> > <strong id="EN-US_TOPIC_0000002088517758__b21403010452416">GaussDB</strong>. The <span class="keyword" id="EN-US_TOPIC_0000002088517758__keyword17555906792433">GaussDB</span> console is displayed.</span><p><p id="EN-US_TOPIC_0000002088517758__en-us_topic_0000001617547598_p280316511613"></p>
|
|
<p id="EN-US_TOPIC_0000002088517758__en-us_topic_0000001617547598_p34997218514"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_l279b757d27d84555bd4fb9326770b2ac"><span>On the <strong id="EN-US_TOPIC_0000002088517758__b111674099632657">Instances</strong> page, click the name of the target instance to go to the <strong id="EN-US_TOPIC_0000002088517758__b48308892032657">Basic Information</strong> page.</span></li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_li2328182423818"><span>In the navigation pane on the left, choose <strong id="EN-US_TOPIC_0000002088517758__b17959248131314">Backups</strong>. On the displayed page, click <strong id="EN-US_TOPIC_0000002088517758__b396411480136">Restore to Point in Time</strong>.</span><p><p id="EN-US_TOPIC_0000002088517758__p863092210550"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204853999_en-us_topic_0192953743_l02b85d494b33478aa0354867be338dda"><span>Click <strong id="EN-US_TOPIC_0000002088517758__b1199916034016">OK</strong>.</span><p><p id="EN-US_TOPIC_0000002088517758__p141163252213"></p>
|
|
<p id="EN-US_TOPIC_0000002088517758__p855317395229"></p>
|
|
<p id="EN-US_TOPIC_0000002088517758__p395019287553"></p>
|
|
<div class="note" id="EN-US_TOPIC_0000002088517758__note191131781310"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000002088517758__ul1974175511176"><li id="EN-US_TOPIC_0000002088517758__li1445115971711">Parallel restoration cannot be enabled if the DB engine version is earlier than 1.4.</li></ul>
|
|
</div></div>
|
|
<ul id="EN-US_TOPIC_0000002088517758__ul16845122811557"><li id="EN-US_TOPIC_0000002088517758__li1784532810555">Restoring data to a new DB instance:<ul id="EN-US_TOPIC_0000002088517758__ul18845132865510"><li id="EN-US_TOPIC_0000002088517758__li19845728125514">The original and new DB instances must have the same major version. For example, backup data can only be restored from version 1.4.<em id="EN-US_TOPIC_0000002088517758__i387315167404">x</em> to version 1.4.<em id="EN-US_TOPIC_0000002088517758__i13874131617407">y</em>.</li><li id="EN-US_TOPIC_0000002088517758__li38457282558">The storage space of the new instance is the same as that of the original DB instance by default and the new instance must be at least as large as the original DB instance.</li><li id="EN-US_TOPIC_0000002088517758__li884562805518">The administrator password needs to be reset.</li><li id="EN-US_TOPIC_0000002088517758__li14845142825514">By default, the instance specifications of the new DB instance are the same as those of the original DB instance. To change the instance specifications, ensure that the instance specifications of the new DB instance are at least those of the original DB instance.</li><li id="EN-US_TOPIC_0000002088517758__li58457288552">The new DB instance has the same node configurations as the original DB instance.</li></ul>
|
|
<p id="EN-US_TOPIC_0000002088517758__p152071234115415">Configure the basic information about the new instance and click <strong id="EN-US_TOPIC_0000002088517758__b1622520814916">Next</strong>.</p>
|
|
</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_le13e00e4c6d94dd69b1898a628dcccfc"><span>View the restoration results.</span><p><ul id="EN-US_TOPIC_0000002088517758__ul379717589523"><li id="EN-US_TOPIC_0000002088517758__li2797558185216">Restoring data to a new DB instance<p id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_a27adc9bf13b34621a94ee73709a279d1"><a name="EN-US_TOPIC_0000002088517758__li2797558185216"></a><a name="li2797558185216"></a>A new DB instance is created using the backup data. The status of the DB instance changes from <span class="uicontrol" id="EN-US_TOPIC_0000002088517758__uicontrol38278431170"><b>Creating</b></span> to <span class="uicontrol" id="EN-US_TOPIC_0000002088517758__uicontrol483219434173"><b>Available</b></span>.</p>
|
|
<p id="EN-US_TOPIC_0000002088517758__en-us_topic_0204854000_ac06180177db94bdca41ee398d07bf9f5">The new DB instance is independent from the original one.</p>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="opengauss_recover.html">Data Restoration</a></div>
|
|
</div>
|
|
</div>
|
|
|