Skip to main content

Restore Database

CloudBase provides comprehensive database backup and restore features, ensuring the security and reliability of your data, and supporting quick recovery in case of accidental data loss or erroneous operations.

Backup Mechanism

Automatic Backup Feature

FeatureDescriptionAdvantage
Automatic EnablementThe system enables the backup feature by defaultNo manual configuration required; ready to use out of the box
Daily BackupAutomatically performs backups daily in the early morningEnsures continuous data protection
Retention PeriodBackup data is retained for up to 14 daysProvides an adequate recovery time window
Zero DowntimeThe backup process does not affect business accessEnsures business continuity

Core Value

  • Data Security: Automatic backup mechanism prevents data loss.
  • Rapid Recovery: Supports point-in-time data restore
  • Business Continuity: The restore process does not affect normal data access
  • Flexible Operation: Supports selective restore for single or multiple collections

Backup Policy Details

Backup Schedule

Daily backup time: 2:00 AM - 4:00 AM
Backup frequency: daily
Retention policy: Rolling retention of the last 14 days

Backup Data Scope

  • Includes: all collection data, index structures, and document content
  • Data Integrity: Ensures the consistency and integrity of backup data

Recovery Point

Time RangeRecovery PrecisionDescription
Last 24 hoursMinute-level precisionSupports precise point-in-time recovery
2-7 days agoHour-level precisionBased on daily backup data
8-14 days agoDay-level precisionHistorical backup data recovery

Restore Data Operation

Operation Process

Step 1: Access the restore feature

  1. Log in to the console: Access the Tencent Cloud Development Platform
  2. Go to the database: Switch to Cloud Development Platform/Database Management
  3. Start the restore: Click the "Database Restore" button

Step 2: Configure restore parameters

Time point selection:

  • Select the specific time point for restore
  • Display available backup time range

Collection selection:

  • Supports restore for single or multiple collections

Step 3: Set restore collection name

Naming rules:

Configuration ItemDescriptionExample
Default NamingOriginal collection name + _bak suffixusersusers_bak
Custom NamingManually specify the restored collection nameusers_backup_20240115
Naming RestrictionsMust not duplicate existing collection namesThe system will automatically check for conflicts

Restore Configuration Page

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 the same time
  • New tasks must wait for the current task to complete
  • Avoid data conflicts and resource contention

Restore Progress Monitoring

Post-Restore Operations

Step 4: Execute the rollback task

  1. Check the collection list: Confirm that the restore collection has been created
  2. Verify Data Integrity: Spot-check whether key data is correct
  3. Test Application Features: Ensure the business logic operates normally
  4. Compare Data Differences: Analyze data changes before and after the restore

Follow-up Procedures

Data Switchover:

// If the restored data is correct, consider replacing the original collection
// 1. Back up the current collection (by renaming)
// 2. Rename the restore collection to the original name
// 3. Update the application configuration

Cleanup Tasks:

  • Delete unneeded temporary collections
  • Clean up test data
  • Update relevant documentation and configurations