Backup Migration Between Regions or Redis Versions

Application Scenarios

Use the DCS console to migrate Redis data from Redis of another cloud or self-hosted Redis to DCS for Redis.

Simply download the source Redis data and then upload the data to an OBS bucket in the same region as the target DCS Redis instance. After you have created a migration task on the DCS console, DCS will read data from the OBS bucket and data will be migrated to the target instance.

.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.

Prerequisites

Step 1: Prepare the Target DCS Redis Instance

Step 2: Create an OBS Bucket and Upload Backup Files

  1. Create an OBS bucket.

    1. Log in to the OBS Console and click Create Bucket.
    2. Select a region.

      The OBS bucket must be in the same region as the target DCS Redis instance.

    3. Specify Bucket Name.

      The bucket name must meet the naming rules specified on the console.

    4. Set Storage Class to Standard, Warm or Cold.
    5. Set Bucket Policy to Private, Public Read, or Public Read and Write.
    6. Configure default encryption.
    7. Click Create Now.

  2. Upload the backup data files to the OBS bucket by using OBS Browser+.

    If the backup file to be uploaded does not exceed 5 GB, upload the file using the OBS console by referring to step 3.

    If the backup file to be uploaded is larger than 5 GB, perform the following steps to upload the file using OBS Browser+.

    1. Download OBS Browser+.

      For details, see section "Downloading OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).

    2. Install OBS Browser+.

      For details, see section "Installing OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).

    3. Log in to OBS Browser+.

      For details, see section "Logging In to OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).

    4. Create a bucket.
    5. Upload backup data.

  3. On the OBS console, upload the backup data files to the OBS bucket.

    Perform the following steps if the backup file size does not exceed 5 GB:
    1. In the bucket list, click the name of the created bucket.
    2. In the navigation pane, choose Objects.
    3. On the Objects tab page, click Upload Object.
    4. Upload the objects.

      To upload objects, drag files or folders to the Upload Object area or click add file. A maximum of 100 files can be uploaded at a time. The total size cannot exceed 5 GB.

      Figure 1 Uploading an object
    5. (Optional) Select KMS encryption to encrypt the file you want to upload.
    6. Click Upload.

Step 3: Create a Migration Task

  1. Log in to the DCS console.
  2. In the navigation pane, choose Data Migration.
  3. Click Create Backup Import Task.
  4. Enter the task name and description.
  5. In the Source Redis area, select OBS Bucket for Data Source and then select the OBS bucket to which you have uploaded backup files.
  6. Click Add Backup and select the backup files to be migrated.
  7. In the Target Redis area, select the Target Redis Instance prepared in Step 1: Prepare the Target DCS Redis Instance.
  8. If the target Redis instance has a password, enter the password and click Test Connection to check whether the password is correct. If the instance is not password-protected, click Test Connection directly.
  9. Click Next.
  10. Confirm the migration task details and click Submit.

    Go back to the data migration task list. After the migration is successful, the task status changes to Successful.