Operation scenarios
Batch rollback refers to the process of rolling back the database collection data of multiple instances at once, restoring the data of multiple instances to the source instance in a single batch operation. Database collections rollback or Key Flashback to the current instance supports batch operations, allowing multiple instance database collections to be rolled back at once. The newly rolled back collections are named with the suffix _bak. After the rollback is complete, the database name can be changed as needed to improve the efficiency and accuracy of data recovery and avoid the cumbersome process of manual individual recovery. Moreover, MongoDB supports peeking at all batch rollback historical tasks under the current account, helping you to quickly understand past operation records for convenient unified operation and management.
Starting batch rollback task
2. In the MongoDB dropdown menu on the left navigation bar, select Batch Rollback.
3. On the Rollback Task page, click Initiate Rollback to enter the Batch Rollback Database Table Data Configuration Wizard. Here, you can configure the batch rollback database table task and initiate a rollback task. For specific operations, please refer to Database Table Rollback. Peek Batch Rollback Tasks
2. In the MongoDB dropdown menu on the left navigation bar, select Batch Rollback.
3. On the Rollback Task page, you can find all batch rollback tasks under the current account, as shown below. You can filter the tasks you want to peek at by selecting a time range in the time box.
Batch Modify Rollback Collection Names
Database collection rollback does not directly roll back data to the original table, but instead creates a Backup file. For example, if the original database table is named test, a new table named test_bak will be created. As shown in the figure below, Rollback Collection Name is the name of the newly created table. After the rollback task is completed, you can batch modify the table names as needed.
2. In the MongoDB dropdown menu on the left navigation bar, select Batch Rollback.
3. On the Batch Modify Collection Names tab in Batch Collection Rollback, find the rolled-back tasks and select the instances whose table names you intend to modify. In their Operations column, click Batch Modify Collection Names to see the information of the collections to be modified on the right zone, including Original Collection Name, New Original Table Name, Rollback Collection Name, and New Rollback Collection Name. Confirm the modifications, click the Batch Modify Collection Names button at the bottom left to complete the modifications. As illustrated below.
Note:
Batch renaming collections can only modify all tables under a single instance of a single rollback task. If a user initiates a batch rollback task involving collections from multiple instances, the collection names must be modified one by one.
Bulk Modify Collection Names includes changing the Original Collection Name and Rollback Collection Name.
For Original Collection, the mark _ori is added to its Original Collection Name.
For Rollback Collection, change the Rollback Collection Name to the Original Collection Name.