forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
19 lines
2.6 KiB
HTML
19 lines
2.6 KiB
HTML
<a name="dcs-faq-0730053"></a><a name="dcs-faq-0730053"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Export DCS Redis Instance Data?</h1>
|
|
<div id="body1596093777162"><ul id="dcs-faq-0730053__ul1249721455815"><li id="dcs-faq-0730053__li2291632195816">For master/standby or cluster instances:<div class="p" id="dcs-faq-0730053__p852600123620"><a name="dcs-faq-0730053__li2291632195816"></a><a name="li2291632195816"></a>Perform the following operations to export the data:<ol id="dcs-faq-0730053__ol374335743513"><li id="dcs-faq-0730053__li47432057173512">On the <strong id="dcs-faq-0730053__b111749420918">Backups & Restorations</strong> page, view the backup records.</li><li id="dcs-faq-0730053__li774395783514">If there are no backup records, create a backup manually and download the backup file as prompted.</li></ol>
|
|
</div>
|
|
<div class="note" id="dcs-faq-0730053__note16381317154011"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dcs-faq-0730053__p11207233113316">If your DCS instances were created a long time ago, the versions of these instances may not be advanced enough to support some new functions (such as backup and restoration). You can contact technical support to upgrade your DCS instances. After the upgrade, you can back up and restore your instances.</p>
|
|
</div></div>
|
|
</li><li id="dcs-faq-0730053__li3717203812310">For single-node instances:<p id="dcs-faq-0730053__p1483512383277"><a name="dcs-faq-0730053__li3717203812310"></a><a name="li3717203812310"></a>Single-node instances do not support the backup function. You can use redis-cli to export RDB files. This operation depends on <strong id="dcs-faq-0730053__b1633103315364">SYNC</strong> command.</p>
|
|
<ul id="dcs-faq-0730053__ul5358144153214"><li id="dcs-faq-0730053__li10301124213323">If the instance allows the <strong id="dcs-faq-0730053__b3451191011386">SYNC</strong> command (such as a Redis 3.0 single-node instance), run the following command to export the instance data:<p id="dcs-faq-0730053__p6257123652712"><strong id="dcs-faq-0730053__b12571336122715">redis-cli -h {source_redis_address} -p 6379 [-a password] --rdb {output.rdb}</strong></p>
|
|
</li><li id="dcs-faq-0730053__li104941949133213">If the instance does not allow the <strong id="dcs-faq-0730053__b773324217387">SYNC</strong> command (such as a Redis 4.0 or 5.0 single-node instance), migrate the instance data to a master/standby instance and export the data by using the backup function.</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-faq-0326024.html">Data Backup, Export, and Migration</a></div>
|
|
</div>
|
|
</div>
|
|
|