Database Restore
CloudBase provides comprehensive database backup and restore capabilities, ensuring your data remains secure and reliable, while supporting rapid recovery in case of accidental data loss or misoperations.
🛡️ Backup Mechanism
Automatic Backup Feature
Feature | Description | Advantage |
---|---|---|
Automatic Activation | The backup feature is enabled by default | No manual configuration required, out-of-the-box |
Daily Backup | Backups are automatically performed daily in the early morning. | Ensures continuous data protection |
Retention Period | Backup data is retained for up to 14 days | Provides a sufficient recovery time window |
Zero Downtime | Backup process does not affect business access | Ensures business continuity |
🎯 Core Value
- 🔒 Data Security: Automatic backup mechanism prevents data loss
- ⚡ Fast Recovery: Supports point-in-time data restore
- 🚀 Business Continuity: Rollback process does not affect normal data access
- 🎛️ Flexible Operation: Supports selective rollback for single or multiple collections
📋 Backup Strategy Detailed Explanation
Backup Schedule
Daily backup time: 2:00 AM - 4:00 AM
Backup frequency: Once daily
Retention policy: Rolling retention of the last 14 days
Backup Data Scope
- ✅ Included Content: all collection data, index structures, document content
- ✅ Data Integrity: Ensures the consistency and integrity of backup data
Restore Time Point
Time Range | Recovery Precision | Description |
---|---|---|
Last 24 hours | Minute-level precision | Supports point-in-time recovery |
2-7 days ago | Hour-level precision | Based on daily backup data |
8-14 days ago | Day-level precision | Historical backup data recovery |
🔄 Data Restore Operation
🚀 Operation Procedure
Step 1: Access the Restore Feature
- Log in to the console: Access the CloudBase console
- Enter database: Switch to Cloud Database Management Page
- Start Restore: Click the "Database Restore" button
Step 2: Configure Restore Parameters
Point-in-time Selection:
- Select the specific point in time for restore
- Display the available backup time range
Collection Selection:
- Supports rollback for single or multiple collections
Step 3: Set Restore Collection Name
Naming Rules:
Item | Description | Example |
---|---|---|
Default Naming | Original collection name + _bak suffix | users → users_bak |
Custom Naming | Manually specify the name of the restored collection | users_backup_20240115 |
Naming Restrictions | Cannot duplicate existing collection names | The system automatically checks for conflicts |
Step 4: Execute the restore task
Task Management:
- Click "OK" to start the restore task
- The system displays the restore progress and status
Concurrency Limit:
- Only one restore task can be executed at a time
- New tasks must wait for the current task to complete
- Avoid data conflicts and resource contention
🎯 Operations After Restore Completion
Data Validation
- Check Collection List: Confirm that the restore collection has been created.
- Verify Data Integrity: Spot-check key data for correctness
- Test Application Functionality: Ensure that the business logic operates normally.
- Compare Data Differences: Analyze data changes before and after the restore
Subsequent Processing
Data Switching:
// If the restored data is correct, you can consider replacing the original collection
// 1. Backup the current collection (by renaming)
// 2. Rename the restore collection to the original name
// 3. Update the application configuration
Cleanup Tasks:
- Delete unnecessary temporary collections.
- Clean up test data
- Update relevant documents and configurations
🎯 Summary
CloudBase database backup and restore capabilities provide you with:
- 🛡️ Automatic Protection: Daily automatic backups with 14-day data protection
- ⚡ Fast Recovery: Point-in-time data restore
- 🎛️ Flexible Operation: Supports rollback for single or batch collections.
- 🚀 Zero Downtime: Rollback process does not affect business operations
- 📊 Visual Management: Intuitive operational interface and progress monitoring
Recommended Workflow: Regularly check backup status → Develop a rollback plan → Execute rollback operations → Verify data integrity
By properly using the backup and restore capabilities, you can ensure data security and quickly respond to various data anomalies.