forked from docs/doc-exports
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: chenjunjie <chenjunjie@huawei.com> Co-committed-by: chenjunjie <chenjunjie@huawei.com>
39 lines
18 KiB
HTML
39 lines
18 KiB
HTML
<a name="dcs-migration-0312004"></a><a name="dcs-migration-0312004"></a>
|
|
|
|
<h1 class="topictitle1">Backup Import Between DCS Redis Instances</h1>
|
|
<div id="body8662426"><p id="dcs-migration-0312004__en-us_topic_0000001893744560_p9488889217">You can migrate data between DCS instances by importing backup files.</p>
|
|
<ul id="dcs-migration-0312004__en-us_topic_0000001893744560_ul82381214112412"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li3238714152411">If the source Redis and target Redis are in the same region under the same DCS account, and the source Redis is not a single-node instance, see <a href="#dcs-migration-0312004__en-us_topic_0000001893744560_section168361859027">Importing Backup Data from a Redis Instance</a>.</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li132386143242">If the source Redis and target Redis are in different regions or under different DCS accounts, or the source Redis is a single-node instance, see <a href="#dcs-migration-0312004__en-us_topic_0000001893744560_section12790115912358">Importing Backup Data from an OBS Bucket</a>.</li></ul>
|
|
<div class="section" id="dcs-migration-0312004__en-us_topic_0000001893744560_section01321811133220"><h4 class="sectiontitle">Notes and Constraints</h4><p id="dcs-migration-0312004__en-us_topic_0000001893744560_p1469113513465">To migrate to an instance with SSL enabled, disable the SSL setting first. For details, see <a href="dcs-ug-023129.html">Transmitting DCS Redis Data with Encryption Using SSL</a>.</p>
|
|
</div>
|
|
<div class="section" id="dcs-migration-0312004__en-us_topic_0000001893744560_section7611653155815"><a name="dcs-migration-0312004__en-us_topic_0000001893744560_section7611653155815"></a><a name="en-us_topic_0000001893744560_section7611653155815"></a><h4 class="sectiontitle">Prerequisites</h4><ul id="dcs-migration-0312004__en-us_topic_0000001893744560_ul17431141717136"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li984724094">You have successfully backed up the source Redis instance.<ul id="dcs-migration-0312004__en-us_topic_0000001893744560_ul32651722396"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li16326201099">For <a href="#dcs-migration-0312004__en-us_topic_0000001893744560_section168361859027">Importing Backup Data from a Redis Instance</a>, you do not need to download the backup file to the local PC. For details about how to back up data, see <a href="dcs-ug-0312032.html">Manually Backing Up a DCS Instance</a>.</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li193934251896">For <a href="#dcs-migration-0312004__en-us_topic_0000001893744560_section12790115912358">Importing Backup Data from an OBS Bucket</a>, download the backup file to the local PC by referring to <a href="dcs-ug-0312034.html">Downloading a Backup File</a>.</li></ul>
|
|
</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li543141716137">You have prepared the target Redis instance. If a target DCS Redis instance is not available, create one first. For details, see <a href="dcs-ug-0312003.html">Creating a DCS Redis Instance</a>.<p id="dcs-migration-0312004__en-us_topic_0000001893744560_p11513147445">Redis is backward compatible. The target instance version must be the same as or later than the source instance version.</p>
|
|
</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li184311817111318">Ensure that the target Redis instance has sufficient storage space. You can clear the instance data before the migration. For details, see <a href="dcs-ug-0312018.html">Clearing DCS Instance Data</a>. If any data exists on the target instance, duplicate data between the source and target is overwritten. If the data exists only on the target instance, the data will be retained.</li></ul>
|
|
</div>
|
|
<div class="section" id="dcs-migration-0312004__en-us_topic_0000001893744560_section168361859027"><a name="dcs-migration-0312004__en-us_topic_0000001893744560_section168361859027"></a><a name="en-us_topic_0000001893744560_section168361859027"></a><h4 class="sectiontitle">Importing Backup Data from a Redis Instance</h4><ol id="dcs-migration-0312004__en-us_topic_0000001893744560_ol1694114110143"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li109411816148"><span>Log in to the DCS console.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li5415759599"><span>Click <span><img id="dcs-migration-0312004__en-us_topic_0000001893744560_i0d8b8411c49244f694e4f9ebeef4b3c5" src="en-us_image_0000001999635737.png"></span> in the upper left corner of the console and select the region where your source and target instances are located.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li1094120141419"><span>In the navigation pane, choose <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b1424285011577">Data Migration</strong>. The migration task list is displayed.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li39411114149"><span>Click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b7180145855711">Create Backup Import Task</strong>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li49416181414"><span>Enter the task name and description.</span><p><p id="dcs-migration-0312004__en-us_topic_0000001893744560_p1422038133115">The task name must start with a letter, contain 4 to 64 characters, and contain only letters, digits, hyphens (-), and underscores (_).</p>
|
|
</p></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li1294114141413"><span>For source Redis, set <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b53391211165812">Data Source</strong> to <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b2033941195812">Redis</strong>.</span><p><div class="fignone" id="dcs-migration-0312004__en-us_topic_0000001893744560_fig38031824194312"><span class="figcap"><b>Figure 1 </b>Selecting a data source (Redis)</span><br><span><img id="dcs-migration-0312004__en-us_topic_0000001893744560_image3803132434312" src="en-us_image_0000001955154978.png"></span></div>
|
|
</p></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li1594112116144"><span>For <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b25981239185918">Source Redis Instance</strong>, select the source instance to be migrated.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li294112114146"><span>Select the backup task whose data is to be migrated.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li394112191415"><span>For <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b7542142819110">Target Redis Instance</strong>, select the DCS Redis instance prepared in <a href="#dcs-migration-0312004__en-us_topic_0000001893744560_section7611653155815">Prerequisites</a>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li9942101151410"><span>If the target Redis instance has a password, enter the password and click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b26391638134910">Test Connection</strong> to check whether the password is correct. If the instance is not password-protected, click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b177974334911">Test Connection</strong> directly.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li119421618149"><span>Click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b423713107215">Next</strong>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li15942121171414"><span>Confirm the migration task details and click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b17364942162218">Submit</strong>.</span><p><p id="dcs-migration-0312004__en-us_topic_0000001893744560_p5942141171410">Go back to the data migration task list. After the migration is successful, the task status changes to <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b3492173611113">Successful</strong>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="dcs-migration-0312004__en-us_topic_0000001893744560_section12790115912358"><a name="dcs-migration-0312004__en-us_topic_0000001893744560_section12790115912358"></a><a name="en-us_topic_0000001893744560_section12790115912358"></a><h4 class="sectiontitle">Importing Backup Data from an OBS Bucket</h4><p id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_p542904425717">Simply download the source Redis data and then upload the data to an OBS bucket in the same account and region as the target DCS Redis instance. After you have created a backup import task, data in the OBS bucket will be read and migrated to the target Redis.</p>
|
|
<div class="note" id="dcs-migration-0312004__en-us_topic_0000001893744560_note1024063013419"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dcs-migration-0312004__en-us_topic_0000001893744560_ul119151459102810"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li89154599284">.aof, .rdb, .zip, and .tar.gz files can be uploaded to OBS buckets. You can directly upload .aof and .rdb files or compress them into .zip or .tar.gz files before uploading.</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li159151759132820">To migrate data from a cluster Redis instance, download all backup files and upload all of them to the OBS bucket. Each backup file contains data for a shard of the instance. During the migration, you need to select backup files of all shards.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<ol id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_ol14268144310394"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li9758112393116"><span><strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b25243103616">Create an OBS bucket in the account and region where the target Redis instance is located.</strong> If a qualified OBS bucket is available, you do not need to create one.</span><p><div class="p" id="dcs-migration-0312004__en-us_topic_0000001893744560_p1381182583111">When creating an OBS bucket, pay attention to the configuration of the following parameters. For details on how to set other parameters, see "Creating a Bucket" in <em id="dcs-migration-0312004__en-us_topic_0000001893744560_i104378420812">Object Storage Service User Guide</em>.<ul id="dcs-migration-0312004__en-us_topic_0000001893744560_ul1676254012574"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li18762740185715"><strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b322512612920">Region</strong>:<p id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_p1348814534465">The OBS bucket must be in the same region as the target DCS Redis instance.</p>
|
|
</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li276217409575"><strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b15127014688">Default Storage Class</strong>: Select <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b151276143820">Standard</strong> or <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b19127714085">Infrequent Access</strong>.<p id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_p65128619477">Do not select <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b103601829135710">Archive</strong>. Otherwise, the migration will fail.</p>
|
|
</li></ul>
|
|
</div>
|
|
</p></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li18291101435517"><span>Upload the backup file to the OBS bucket. </span><p><ol type="a" id="dcs-migration-0312004__en-us_topic_0000001893744560_ol16799172411561"><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li1713414272578">In the bucket list, click the name of the created bucket.</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li17134202715717">In the navigation pane, choose <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b7335667220">Objects</strong>.</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li61348275576">On the <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b132501351112019">Objects</strong> tab page, click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b11250651142011">Upload Object</strong>.</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li17134142735713">Specify <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b166741139152">Storage Class</strong>.<p id="dcs-migration-0312004__en-us_topic_0000001893744560_p819410917232">Do not select <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b15813617181611">Archive</strong>. Otherwise, the migration will fail.</p>
|
|
</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li513562715716">Upload the objects.<p id="dcs-migration-0312004__en-us_topic_0000001893744560_p19534101014172"><a name="dcs-migration-0312004__en-us_topic_0000001893744560_li513562715716"></a><a name="en-us_topic_0000001893744560_li513562715716"></a>Drag files or folders to the <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b1466016717292">Upload Object</strong> area or click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b13375203619291">add file</strong>.</p>
|
|
<p id="dcs-migration-0312004__en-us_topic_0000001893744560_p1534181091717">A maximum of 100 files can be uploaded at a time. The total size cannot exceed 5 GB. If the total size of files to be uploaded exceeds 5 GB, click "How to Upload a File Larger than 5 GB" in the upper part of the <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b1831256132219">Upload Object</strong> dialog box and perform operations as instructed.</p>
|
|
</li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li2013511276574">Click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b4446102218714">Upload</strong>.</li></ol>
|
|
</p></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li390016374490"><span>Click <span><img id="dcs-migration-0312004__en-us_topic_0000001893744560_image1225093910911" src="en-us_image_0000001963155450.png"></span> in the upper left corner and choose <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b1829716568220">Distributed Cache Service for Redis</strong> under <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b11297155672219">Databases</strong> to open the DCS console.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li16119587498"><span>In the navigation pane, choose <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b3976141122312">Data Migration</strong>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li67372014165120"><span>Click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b826716383275">Create Backup Import Task</strong>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li14133134613500"><span>Enter the task name and description.</span><p><p id="dcs-migration-0312004__en-us_topic_0000001893744560_p1280408183113">The task name must start with a letter, contain 4 to 64 characters, and contain only letters, digits, hyphens (-), and underscores (_).</p>
|
|
</p></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li7814624195313"><span>In the <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b5520013112315">Source Redis</strong> area, select <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b85201113132311">OBS Bucket</strong> for <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b752051314230">Data Source</strong> and then select the OBS bucket to which you have uploaded backup files.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li144211117547"><span>Click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b32581745481">Add Backup</strong> and select the backup files to be migrated.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_li1264738143811"><span>In the <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b109978308239">Target Redis</strong> area, select the <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b1499713302236">Target Redis Instance</strong> prepared in <a href="#dcs-migration-0312004__en-us_topic_0000001893744560_section7611653155815">Prerequisites</a>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li101346111301"><span>If the target Redis instance has a password, enter the password and click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b678586674">Test Connection</strong> to check whether the password is correct. If the instance is not password-protected, click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b1464484671">Test Connection</strong> directly.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li949595110140"><span>Click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b390188571">Next</strong>.</span></li><li id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_li139913717619"><span>Confirm the migration task details and click <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_b1746812449">Submit</strong>.</span><p><p id="dcs-migration-0312004__en-us_topic_0000001893744560_dcs-migration-190703002_p104923381679">Go back to the data migration task list. After the migration is successful, the task status changes to <strong id="dcs-migration-0312004__en-us_topic_0000001893744560_en-us_topic_0292910791_dcs-migration-190703002_b38116245234">Successful</strong>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-migration-0312008.html">Migrating Data Between DCS Instances</a></div>
|
|
</div>
|
|
</div>
|
|
|