Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Downloading DCS Instance Backup Files

Updated on 2024-10-17 GMT+08:00

Automatically backed up data can be retained for a maximum of 7 days. Manually backed up data is not free of charge and takes space in OBS. Due to these limitations, you are advised to download the RDB and AOF backup files and permanently save them on the local host.

This function is supported only by master/standby, read/write splitting, and cluster instances, and not by single-node instances. To export the data of a single-node instance to an RDB file, you can use redis-cli. For details, see How Do I Export DCS Redis Instance Data?

To export the data of a master/standby, read/write splitting, or cluster instance, do as follows:

  • Redis 3.0: Export the instance data to AOF files by using the DCS console, or to RDB files by running the redis-cli -h {redis_address} -p 6379 -a {password} --rdb {output.rdb} command by using redis-cli.
    NOTE:

    DCS for Redis 3.0 is no longer provided. You can use DCS for Redis 4.0 or later instead.

  • Redis 4.0 and later: Export the instance data to AOF or RDB files by using the DCS console.
  • For a cluster instance with multiple shards, the downloaded backup contains multiple files for each shard.

Prerequisites

The instance has been backed up and the backup is still valid.

Downloading DCS Instance Backup Files

  1. Log in to the DCS console.
  2. Click in the upper left corner of the management console and select the region where your instance is located.
  3. In the navigation pane, choose Cache Manager.

    Filter DCS instances to find the desired DCS instance.

  4. Click the name of the DCS instance to display more details about the DCS instance.
  5. On the instance details page, click Backups & Restorations.

    A list of historical backup tasks is then displayed.

  6. Click Download in the row containing the chosen backup task.
  7. Download the backup by URL or OBS.

    • By URL
      Figure 1 By URL
      1. Set the URL validity period and click Query. A temporary backup file URL will be generated. The URL has a validity period, and needs to be generated again after that.

        URL validity period: 5 minutes to 12 hours.

      2. In the URL list, click Download to download files.
        If your account has enabled critical operation protection, downloading the backup file requires authentication, as shown in Figure 3. If not, the backup file will be downloaded to the local.
        NOTE:
        • Click Copy all URLs or the copy icon after a URL to copy URLs.
        • If you choose to copy URLs, use quotation marks to quote the URLs when running the wget command in Linux. For example:

          wget 'https://obsEndpoint.com:443/redisdemo.rdb?parm01=value01&parm02=value02'

          This is because the URL contains the special character and (&), which will confuse the wget command. Quoting the URL facilitates URL identification.

        • Keep the backup files and URLs secure to prevent data leakage.
    • By OBS
      Figure 2 By OBS
      1. Click By OBS, click OBS Browser+ in the Prepare area.
      2. Install the OBS Browser+ client. Log in to OBS Browser+ using the Huawei Cloud account by referring to Logging In to OBS Browser+.
      3. Add an external bucket to the OBS Browser+ client. For details, see Adding an External Bucket.

        Use the bucket name in the Attach External Bucket area.

      4. Click the bucket name. Search for backup files in the bucket. For details, see Searching for a File or Folder.

        The backup file path in the Download Backup File area contains the name of the backup file and folder.

      5. Click the download icon on the right to download the backup file.

(Optional) Enabling Critical Operation Protection

Downloading backup files is a critical operation that can be protected. After operation protection is enabled, a verification code will be needed to download backup files, improving data security.

NOTE:
  • An administrator can configure critical operation protection, and IAM users can only view the configurations. If an IAM user needs to modify the configurations, the user can request the administrator to perform the modification or grant the required permissions.
  • For more information about critical operations, see Critical Operation Protection.
  1. On the management console, hover over the username in the upper right corner, and choose Security Settings from the drop-down list.
  2. On the Security Settings page, click the Critical Operations tab.
  3. Click Enable next to Operation Protection to enable operation protection.
  4. After operation protection is enabled, the Confirm dialog box is displayed when you download DCS backup files. You can download backup files only after identity authentication is complete.

    Figure 3 Confirm

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback