doc-exports/docs/dds/umn/dds_03_0043.html
Wang , Deng Ke ba65944bfd Added version 4.2.
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-07-11 13:21:20 +00:00

31 lines
7.2 KiB
HTML

<a name="dds_03_0043"></a><a name="dds_03_0043"></a>
<h1 class="topictitle1">Restoring a Replica Set Instance from a Backup</h1>
<div id="body1513852391079"><div class="section" id="dds_03_0043__section20967309195347"><h4 class="sectiontitle"><strong id="dds_03_0043__b84235270694112">Scenarios</strong></h4><p id="dds_03_0043__p12651122816811">This section describes how to restore a replica set instance from a backup.</p>
</div>
<div class="section" id="dds_03_0043__section7493181283611"><h4 class="sectiontitle">Restoration Precautions</h4><ul id="dds_03_0043__ul2065112317374"><li id="dds_03_0043__li465183183712">When you restore the DB instance from a backup file, a full backup file is downloaded from OBS and then restored to the DB instance at an average speed of 40 MB/s.</li></ul>
</div>
<div class="section" id="dds_03_0043__section730153355516"><h4 class="sectiontitle">Method 1</h4><ol id="dds_03_0043__ol13021633195518"><li id="dds_03_0043__li1887913494285"><span><a href="dds_02_0043.html">Log in to the DDS console.</a></span></li><li id="dds_03_0043__li1467205216550"><span>On the <strong id="dds_03_0043__b1318118314914">Instance Management</strong> page, click the target replica set instance.</span></li><li id="dds_03_0043__li4281651349"><span>In the navigation pane on the left, click <span class="uicontrol" id="dds_03_0043__uicontrol14552332095"><b>Backups &amp; Restorations</b></span>.</span></li><li id="dds_03_0043__li124692052105512"><span>On the <strong id="dds_03_0043__b18181135072113">Backups &amp; Restorations</strong> page, locate the target backup and click <strong id="dds_03_0043__b418345072110">Restore</strong> in the <strong id="dds_03_0043__b1018535019219">Operation</strong> column.</span></li><li id="dds_03_0043__li831613345514"><span>Select either of the following restoration methods and click <strong id="dds_03_0043__b14881172211">OK</strong>.</span><p><ul id="dds_03_0043__ul63176338558"><li id="dds_03_0043__li1231773385512">Create New Instance<p id="dds_03_0043__p231863355512"><a name="dds_03_0043__li1231773385512"></a><a name="li1231773385512"></a>The <strong id="dds_03_0043__b52001471224">Create New Instance</strong> page is displayed for you to create a DB instance using the backup data. The new DB instance is independent from the original one.</p>
<ul id="dds_03_0043__ul113192331551"><li id="dds_03_0043__li1782103723">The database type, DB instance type, compatible MongoDB version, storage engine, and storage type must be the same as those of the original and cannot be changed.</li><li id="dds_03_0043__li128303121">The storage space is the same as that of the original instance by default. You can only increase the storage space.</li><li id="dds_03_0043__li1032733365511">Other settings have default values and can be modified. For details, see section <a href="dds_02_0012.html">Creating a Replica Set Instance</a>.</li></ul>
</li><li id="dds_03_0043__li1333013314556">Restore to Original<div class="notice" id="dds_03_0043__note1433133317555"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="dds_03_0043__ul1788224124220"><li id="dds_03_0043__li287102418427">Restoring to the original DB instance will overwrite all existing data and the DB instance will be temporarily unavailable during the restoration.</li><li id="dds_03_0043__li187182420429">The administrator password of the database instance remains unchanged after the restoration.</li></ul>
</div></div>
</li></ul>
</p></li></ol>
</div>
<div class="section" id="dds_03_0043__section494701373510"><h4 class="sectiontitle">Method 2</h4><ol id="dds_03_0043__o294a3f1667454757ae89c4cc2cb2f68c"><li id="dds_03_0043__li1516185517285"><span><a href="dds_02_0043.html">Log in to the DDS console.</a></span></li><li id="dds_03_0043__li2013104458"><span>In the navigation pane on the left, click <span class="uicontrol" id="dds_03_0043__uicontrol21051227121317"><b>Backup Management</b></span>.</span></li><li id="dds_03_0043__li17813133313618"><span>On the <strong id="dds_03_0043__b1958113312265">Backup Management</strong> page, locate the target backup on the <strong id="dds_03_0043__b102691615122815">Replica Sets</strong> tab and click <strong id="dds_03_0043__b4584133111265">Restore</strong> in the <strong id="dds_03_0043__b558618312263">Operation</strong> column.</span><p><ul id="dds_03_0043__ul1627516161312"><li id="dds_03_0043__li1327536151310">If you use an automated backup, go to <a href="#dds_03_0043__l02b85d494b33478aa0354867be338dda">4</a>.</li><li id="dds_03_0043__li192759651317">If you use a manual backup, check whether the original instance of the manual backup exists:<ul id="dds_03_0043__ul12275865134"><li id="dds_03_0043__li18275126141315">If yes, go to <a href="#dds_03_0043__l02b85d494b33478aa0354867be338dda">4</a>.</li><li id="dds_03_0043__li20656104115161">If no, you can only restore the backup to a new DB instance. Go to <a href="#dds_03_0043__li969750316413">Create New Instance</a> step under Step 4.</li></ul>
</li></ul>
</p></li><li id="dds_03_0043__l02b85d494b33478aa0354867be338dda"><a name="dds_03_0043__l02b85d494b33478aa0354867be338dda"></a><a name="l02b85d494b33478aa0354867be338dda"></a><span>Select either of the following restoration methods and click <strong id="dds_03_0043__b1868063032911">OK</strong>.</span><p><ul id="dds_03_0043__ul5144714316413"><li id="dds_03_0043__li969750316413"><a name="dds_03_0043__li969750316413"></a><a name="li969750316413"></a>Create New Instance<p id="dds_03_0043__dds_03_0043_p231863355512"><a name="dds_03_0043__li969750316413"></a><a name="li969750316413"></a>The <strong id="dds_03_0043__dds_03_0043_b52001471224">Create New Instance</strong> page is displayed for you to create a DB instance using the backup data. The new DB instance is independent from the original one.</p>
<ul id="dds_03_0043__dds_03_0043_ul113192331551"><li id="dds_03_0043__dds_03_0043_li1782103723">The database type, DB instance type, compatible MongoDB version, storage engine, and storage type must be the same as those of the original and cannot be changed.</li><li id="dds_03_0043__dds_03_0043_li128303121">The storage space is the same as that of the original instance by default. You can only increase the storage space.</li><li id="dds_03_0043__dds_03_0043_li1032733365511">Other settings have default values and can be modified. For details, see section <a href="dds_02_0012.html">Creating a Replica Set Instance</a>.</li></ul>
</li><li id="dds_03_0043__li51284314164125">Restore to Original<div class="notice" id="dds_03_0043__dds_03_0043_note1433133317555"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="dds_03_0043__dds_03_0043_ul1788224124220"><li id="dds_03_0043__dds_03_0043_li287102418427">Restoring to the original DB instance will overwrite all existing data and the DB instance will be temporarily unavailable during the restoration.</li><li id="dds_03_0043__dds_03_0043_li187182420429">The administrator password of the database instance remains unchanged after the restoration.</li></ul>
</div></div>
</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_03_0006.html">Backup and Restore</a></div>
</div>
</div>