Skip to main content

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

FeatureDescriptionAdvantage
Automatic ActivationThe backup feature is enabled by defaultNo manual configuration required, out-of-the-box
Daily BackupBackups are automatically performed daily in the early morning.Ensures continuous data protection
Retention PeriodBackup data is retained for up to 14 daysProvides a sufficient recovery time window
Zero DowntimeBackup process does not affect business accessEnsures 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 RangeRecovery PrecisionDescription
Last 24 hoursMinute-level precisionSupports point-in-time recovery
2-7 days agoHour-level precisionBased on daily backup data
8-14 days agoDay-level precisionHistorical backup data recovery

🔄 Data Restore Operation

🚀 Operation Procedure

Step 1: Access the Restore Feature

  1. Log in to the console: Access the CloudBase console
  2. Enter database: Switch to Cloud Database Management Page
  3. 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:

ItemDescriptionExample
Default NamingOriginal collection name + _bak suffixusersusers_bak
Custom NamingManually specify the name of the restored collectionusers_backup_20240115
Naming RestrictionsCannot duplicate existing collection namesThe system automatically checks for conflicts

Restore Configuration Interface

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

Restore Progress Monitoring

🎯 Operations After Restore Completion

Data Validation

  1. Check Collection List: Confirm that the restore collection has been created.
  2. Verify Data Integrity: Spot-check key data for correctness
  3. Test Application Functionality: Ensure that the business logic operates normally.
  4. 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.