Method and device for recovering data snapshot
A data and snapshot technology, applied in the database field, can solve problems such as unrecoverable database snapshots
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0073] In this optional embodiment, taking the MariaDB distributed system as an example, the steps of the method for obtaining a consistent snapshot of database data include: the initial basic data generation process includes steps S201 to S203, and the database snapshot at a specified time t7 is restored based on the initial basic data The steps include step S204 to step S211.
[0074] Step S201, start the distributed database and management program (ClusterManager, GTM). The time point is t0. From time t0, ClusterManager periodically obtains snapshots of the active transaction list from GTM, writes them into files, and persists them.
[0075] Step S202, at time t1, the Cluster Manager initiates a backup request to the database nodes respectively according to the backup strategy and the result file of the last backup. The backup end time of node 1 is t3, the backup end time of node 2 is t4, and the backup end time of node 3 is The end time is t5. After the backup ends, each ...
Embodiment 2
[0087] The application scenario of this optional embodiment is: disaster recovery of online payment system based on MySQL distributed cluster database;
[0088] In this optional embodiment, a physical hot backup tool is used to back up single-node data, ClusterManager regularly obtains snapshots of active transaction list data from GTM, and archives binlog logs on a daily basis. When recovering, obtain single-node backup data, binlog logs and active transaction list snapshots, perform recovery, rollback and redo operations, so as to obtain database snapshots with global transaction consistency at the specified time or backup time without affecting the online operation of large amounts of data The payment system operates normally, and the steps in this optional embodiment include:
[0089] Step S301, start the distributed database and management program (ClusterManager, GTM). The time point is t0. From time t0, ClusterManager periodically obtains snapshots of the active transac...
Embodiment 3
[0104] Single data table recovery based on MariaDB distributed cluster database user savings system
[0105]In an optional embodiment, a physical hot backup tool is used to back up single-node data, ClusterManager regularly obtains snapshots of active transaction list data from GTM, and archives binlog logs on a daily basis. When recovering, obtain single-node backup data, binlog logs, and active transaction list snapshots, and perform recovery, rollback, and redo operations, so as to obtain a database snapshot of global transaction consistency at the moment before the operation and maintenance personnel accidentally delete the data table. Using this snapshot, the accidentally deleted data table can be exported and imported into the online system manually. The specific steps are as follows.
[0106] Step S401, start the distributed database and management program (ClusterManager, GTM). The time point is t0. From time t0, ClusterManager periodically obtains snapshots of the ac...
PUM

Abstract
Description
Claims
Application Information

- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com