Restoring to the Original Instance Using PITR
In real-world service scenarios, databases may experience faults such as data damage, loss, or accidental deletion. GeminiDB Redis API offers Point-In-Time Recovery (PITR), which allows for quick data recovery by restoring the database to its previous state before any errors occurred.
Functions
Point-in-Time Recovery (PITR) is a database feature that enables restoration to a specific time, useful for recovering data lost or damaged due to misoperations or accidental deletion.
In gaming scenarios, some players may exploit vulnerabilities to duplicate equipment and currency, leading to unfairness. Traditional databases are backed up once a day, with a long restoration time, making it difficult to restore data to a specific point in time. With PITR of GeminiDB Redis API, you can choose a specific time point for data recovery, with a minimum granularity of 5 minutes, ensuring speedy data restoration.
Constraints
- Only GeminiDB Redis cluster instances are supported. DR instances are not supported.
- Data can only be restored to the original instance, and the database is unavailable during the restoration.
- This function is in the open beta test (OBT). To use it, choose Service Tickets > Create Service Ticket in the upper right corner of the console and contact technical support.
Setting Point-in-Time Restoration
- Log in to the GeminiDB console.
- In the service list, choose Databases > GeminiDB Redis API.
- On the Instances page, click the target instance.
- Choose Backups & Restorations in the navigation pane. On the Data Flashback tab page, click Point-in-Time Restoration. Configure parameters in the displayed dialog box. After the setting is complete, click OK.
Figure 1 Point-in-Time Restoration
- You can toggle on or off Enable to enable or disable the backup function.
- Backup Interval refers to the time interval, in minutes, for automated backups. The range of values is from 5 to 120 minutes. For example, if the initial backup is scheduled for 04:00, the subsequent backup will take place at 04:05.
- Retention Period determines how long automated backups are kept in days. The range of values is from 1 to 7 days. Backups are retained till the retention period expires.
To avoid rapid data bloat, it is important to set an appropriate backup interval in the test environment before your actual use.
Restoring Data to the Original Instance
- Log in to the GeminiDB console.
- In the service list, choose Databases > GeminiDB Redis API.
- On the Instances page, click the target instance.
- Choose Backups & Restorations in the navigation pane. On the Data Flashback tab page, click Restore to Point in Time.
Figure 2 Backup and restoration
- Select the date and time point to which the data is restored.
Figure 3 Restoring data to a point in time
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot