Database Rollback
Document Database provides comprehensive data backup and rollback functionality to help you ensure data security and support rapid data recovery in case of data loss or misoperations.
The data rollback feature allows you to restore the database to a specified point in time based on existing backups.
Backup Mechanism
The system automatically backs up the database every day as the data source for the rollback feature. The entire process is handled by the system; you do not need to configure or trigger it manually.
- Backup time: A backup task runs automatically every day between 02:00 and 06:00 (Beijing time)
- Backup retention: Backup files are retained for 7 days by default. Only backups within the retention period can be used for rollback; backups past their retention period are automatically cleared and can no longer be used
- Recoverable range: The time points available for rollback are determined by existing backups — the earliest you can recover to is the oldest backup within the retention period, and the latest is the time after the most recent backup completes. The exact selectable time points are subject to the list shown in the console's rollback interface
Rollback Features
- New Collection Generation: A new collection will be generated after rollback
- Custom Naming: Supports custom renaming of collections after rollback
- Flexible Selection: Supports selecting single or multiple collections for rollback
Operation Steps
-
Click the "New Rollback" button
-
Select the rollback time point and target collections
-
Set the collection name after rollback
-
Confirm and execute the rollback task

Configuration Instructions
Time Point Selection
- Select specific time points based on backup time range
- System displays available backup time list
Collection Selection
- Supports selecting single or multiple collections for rollback
Naming Rules
| Configuration | Description | Example |
|---|---|---|
| Default Naming | Original collection name + _bak suffix | users → users_bak |
| Custom Naming | Manually specify the collection name after rollback | users_backup_20240115 |
⚠️ Note: The collection name after rollback cannot duplicate existing collection names