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
On this page
Help Center/ TaurusDB/ User Guide/ Data Restorations/ Restoring a DB Instance to a Point in Time

Restoring a DB Instance to a Point in Time

Updated on 2025-02-12 GMT+08:00

Scenarios

You can restore a DB instance to a specified point in time.

The most recent full backup will be downloaded from OBS for restoration. After the restoration is complete, incremental backups will be replayed to the specified point in time. The time required depends on the amount of data to be restored.

Precautions

  • Data can be restored to a new, the original, or an existing DB instance.
  • Keep your account balance above zero so that backups can be restored to a new DB instance. You will be billed for the new DB instance.
  • Do not run the reset master command on DB instances within their lifecycle. Otherwise, an exception may occur when restoring a DB instance to a specified point in time.
  • Data on the original DB instance will be overwritten and the original DB instance will be unavailable during the restoration.
  • Restoring to an existing DB instance will overwrite data and reset the root password. The existing DB instance is unavailable during the restoration. DB instances will not be displayed unless they have the same DB engine type, version, and table name case sensitivity as the original DB instance.
  • If the original password of the existing DB instance cannot be used to connect to the database after the restoration, you can reset the password.
  • Once encrypted backup is enabled for your DB instance, data cannot be restored to an existing DB instance, even if encrypted backup is disabled later.
  • Ensure that the storage space of the selected DB instance is at least that of the original DB instance. Otherwise, data will not be restored.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > TaurusDB.
  4. On the Instances page, click the instance name.
  5. In the navigation pane, choose Backups. On the displayed page, click Restore to Point in Time.

    Figure 1 Restoring to a point in time

  6. Select the restoration date and time range, enter a time point within the selected time range, and select a restoration method. Then, click OK.

    NOTE:

    If you have enabled operation protection, click Start Verification in the Restore DB Instance dialog box. On the displayed page, click Send Code, enter the obtained verification code, and click Verify. The page is closed automatically.

    For details about how to enable operation protection, see Identity and Access Management User Guide.

    • Restoring the backup to a new DB instance
      1. Set Restoration Method to Create New Instance and click OK.
        Figure 2 Restoring to a new DB instance
      2. On the displayed page, set required parameters and click Next.
        • The region, DB engine, and DB engine version are the same as those of the original DB instance and cannot be changed.
        • The default database port is 3306.
        • To synchronize database parameters of the original DB instance, select Original DB instance parameter template.
          NOTE:
          • If the original DB instance is deleted, the database parameters of the original DB instance cannot be synchronized using backups.
          • When you synchronize the database parameters of the original DB instance, the following parameters cannot be synchronized and you need to manually modify them after the DB instance is restored.

            innodb_write_io_threads

            innodb_read_io_threads

            max_connections

            innodb_log_buffer_size

            innodb_parallel_read_threads

            temptable_max_ram

            threadpool_size

            innodb_buffer_pool_size

            innodb_page_cleaners

      • Other settings are the same as those of the original DB instance by default but can be modified. For details, see Buying a DB Instance.
    • Restoring the backup to the original DB instance
      Figure 3 Restoring to the original DB instance
      1. Set Restoration Method to Restore to Original, select the confirmation check box, and click Next.
      2. Confirm the task details and click OK.

        Data on the original DB instance will be overwritten and the original DB instance will be unavailable during the restoration.

    • Restoring the backup to an existing DB instance
      Figure 4 Restoring to an existing DB instance
      1. Set Restoration Method to Restore to Existing, select the confirmation check box, and click Next.
      2. Confirm the task details and click OK.
        • Restoring to an existing DB instance will overwrite data and reset the root password. The existing DB instance is unavailable during the restoration. DB instances will not be displayed unless they have the same DB engine type, version, and table name case sensitivity as the original DB instance.
        • The restored DB instance contains the data and account information of the original DB instance, but does not contain the parameter settings of the original DB instance.
        • If the original password of the existing DB instance cannot be used to connect to the database after the restoration, you can reset the password.

  7. View the restoration results.

    • Restoring the backup to a new DB instance: A new DB instance is created, where data is restored based on the point in time when the backup was created. When the instance status changes from Creating to Available, the restoration is complete. The new DB instance is independent from the original one. If you want to offload read pressure from the primary node, create one or more read replicas for the new DB instance.

      After the restoration, a full backup will be automatically triggered.

    • Restoring the backup to the original DB instance: When the instance status changes from Restoring to Available, the restoration is complete.
    • Restoring the backup to an existing DB instance: When the instance status changes from Restoring to Available, the restoration is complete.

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