Database backup method, database restoration method and related devices

A database and backup technology, which is applied in the computer field, can solve problems such as slow export speed, increase in database backup file size, and large differences in database processing, so as to avoid manual restoration errors, shorten backup time, and reduce artificial configuration.

Active Publication Date: 2021-12-07
BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF11 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although binlog can meet the needs of most database backups, it still has the following deficiencies: database configuration is required to enable related functions, there are database version restrictions, the processing of different types of databases is quite different, the versatility is not strong, backup logs The file itself is a binary file and cannot be viewed directly in the form of SQL (Structured Query Language). The backup log file is located locally on the database server, which will occupy server space. If the database server is damaged, the backup file cannot be accessed. This method usually records all The data modification cannot be customized. Usually, the database modification in the test environment is more about changes in the database table structure and new records, and the real-time performance of the database backup frequency is not high, and it has a certain periodicity, such as once a week. , all types of database change monitoring will increase the size of the database backup file
[0005] The full export speed is slow and will take up a lot of storage space; using the configuration method of database tables and fields, the corresponding data needs to be manually configured, and when the structure of the database table changes, the corresponding configuration needs to be performed again, and the increment based on the configuration The backup lacks a database restoration mechanism, which requires manual restoration and is prone to errors; database backup based on binlog has database version restrictions, poor versatility, and inconvenient viewing. When the database server is damaged, the backup data cannot be accessed, and data modification cannot be customized.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database backup method, database restoration method and related devices
  • Database backup method, database restoration method and related devices
  • Database backup method, database restoration method and related devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0049] figure 1 It is a schematic diagram of main steps of a database backup method according to an embodiment of the present invention.

[0050] like figure 1 As shown, the database backup method in one embodiment of the present invention mainly includes the following steps S101 to S103.

[0051] Step S101: According to the table name of the data table of the database,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a database backup method, a database restoration method and related devices and relates to the technical field of computers. A specific embodiment of the method comprises steps of calculating a first table structure check code of a data table of a database, and generating a backup data table of the data table under the condition that the first table structure check code is not found in a data table tuple structure of a stored data table tuple structure set. According to the method, automatic identification of database increment and modification, rapid data export, shortening of backup time, reduction of backup disk space occupation and reduction of artificial configuration of incremental backup can be achieved, database version limitation is avoided, universality is good, checking can be directly conducted in an SQL mode, backup data can still be accessed under the condition that a database server is damaged, and data modification can be customized.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a database backup method, a database restoration method and related devices. Background technique [0002] Relational database backup generally uses a database export tool to export the full amount of each database and table, and then transmits it to the backup server through the network. Another solution is to use database table and field configuration to filter out new data and then export it, and then transmit it to the backup server through the network. [0003] Binlog is a function provided by the database itself that can realize incremental and full backup of the database. Although binlog can meet the needs of most database backups, it still has the following deficiencies: database configuration is required to enable related functions, there are database version restrictions, the processing of different types of databases is quite different, the versatility is not strong...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/14G06F16/22G06F16/23G06F16/242G06F16/2455G06F16/27
CPCG06F11/1448G06F11/1469G06F16/2282G06F16/23G06F16/2433G06F16/2455G06F16/27
Inventor 樊宇王晓琦曾丹邱鹏
Owner BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products