tencent cloud

TencentDB for MongoDB

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Strengths
Use Cases
Cluster Architecture
Product Specifications
Features
Regions and AZs
Terms
Service Regions and Service Providers
Purchase Guide
Billing Overview
MongoDB Pricing
Billing Formula
Payment Overdue
Backup Space Billing
Configuration Adjustment Billing
Getting Started
Quickly Creating an Instance
Connecting to a TencentDB for MongoDB Instance
Reading/Writing Database
Operation Guide
Access Management
Instance Management
Node Management
Version Upgrade
Network Configuration
Monitoring
Backup and Rollback
Database Audit
Data Security
SSL Authentication
Log Management
Database Management
Multi-AZ Deployment
Disaster Recovery/Read-Only Instances
Parameter Configuration
Recycle Bin
Task Management
Performance Optimization
Data Migration Guide
Practical Tutorial
Optimizing Indexes to Break Through Read/Write Performance Bottlenecks
Troubleshooting Mongos Load Imbalance in Sharded Cluster
Considerations for Using Shard Clusters
Sample of Reading and Writing Data in MongoDB Instance
Methods for Importing and Exporting Data Based on CVM Connected with MongoDB
What to Do for Errors of Repeated Instance Creation and Deletion of Databases with the Same Names?
Troubleshooting MongoDB Connection Failures
Shard Removal Task: Guide for Confirming the Progress and Troubleshooting Issues
Performance Fine-Tuning
Ops and Development Guide
Development Specifications
Command Support in Sharded Cluster v3.2
Command Support in v3.6
Development Ops
Troubleshooting
Increased Slow Queries
Number of Connections Exceeding Limit
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Backup APIs
Account APIs
Other APIs
Task APIs
Introduction
Data Types
Error Codes
Instance Connection
Shell Connection Sample
PHP Connection Sample
Node.js Connection Sample
Java Connection Sample
Python Connection Sample
Python Read/Write Sample
Go Connection Sample
PHP Reconnection Sample
Product Performance
Test Environment
Test Method
Test Result
FAQs
Cost
Features
Sharded Cluster
Instance
Rollback and Backup
Connection
Data Migration
Others
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

Solution Introduction

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-11-24 17:13:41

Rollback Solution Introduction

TencentDB for MongoDB has comprehensive data recovery capabilities and offers on-demand recovery solutions for instances (cloning), databases and tables (database and table rollback), and documents (key-based flashback), meeting data recovery requirements at different granularities.
Granularity
Instance (Instance Cloning)
Database and Collection (Collection Rollback)
Document (Key-based Flashback)
Recovery Level
Recovery of an entire instance
Recovery of a specified database or collection
Recovery of a specified document or some documents
Core Principles
Creating a new instance based on the backup files
Extracting specific database and colleciton data based on the backup files
Locating specific documents using indexes and restoring them based on the flashback storage
Operation Speed
Slow (involving data migration of the entire instance)
Fast (processing only partial of data)
Extremely fast (only recovering a small amount of target data)
Typical Scenario
Instance-level disaster recovery, data migration, and test environment building
Accidental deletion/modification of a small number of databases or collections
Quickly fixing minor data corruption caused by program issues or misoperations

Implementation Technology

Instance Cloning (Entire Instance Recovery)

Implementation mechanism: The instance data is cloned to a new and independent database instance based on existing backup files.
Operation method: In the console, select any historical backup point to directly clone a new instance that is completely independent of the current instance. For specific operations, see Cloning an Instance.
Note:
The cloning operation creates an independent TencentDB for MongoDB instance, which is billed separately at standard rates based on the selected configuration.
The core advantage of instance cloning lies in the isolation because a complete data replica isolated from the production environment is provided. This allows you to conduct comprehensive verification and fixing safely and completely eliminates the risk of secondary damage to the production environment.


Database and Table Rollback (Fine-Grained Recovery)

Implementation mechanism: Based on existing backup files, database collections are restored to either the original instance (creating new collections suffixed with _bak) or a completely new database instance.
Operation method: In the console, specify the database and table to be rolled back, select a historical backup point, and perform database and table rollback on the page. For specific operations, see Rolling Back Databases and Tables.
Note:
For an instance, the number of databases/tables that can be selected for a single rollback operation is limited (such as 2000).


Key-based Flashback (Document-Level Recovery)

Implementation mechanism: Based on flashback storage, the document corresponding to a specified key is restored to either the original instance or a completely new database instance.
Operation method: In the console, enable key-based flashback. The system organizes and stores historical data generated by collections with the flashback feature enabled, facilitating quick rollback when flashback is initiated. For specific operations, see Key-based Flashback.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백