CN110908833A - Data backup method, device and equipment and computer readable storage medium - Google Patents
Data backup method, device and equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110908833A CN110908833A CN201911082386.4A CN201911082386A CN110908833A CN 110908833 A CN110908833 A CN 110908833A CN 201911082386 A CN201911082386 A CN 201911082386A CN 110908833 A CN110908833 A CN 110908833A
- Authority
- CN
- China
- Prior art keywords
- data
- backup
- backed
- data backup
- backing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a data backup method, which comprises the following steps: receiving a data backup request, and analyzing the data backup request to obtain data attribute information of data to be backed up; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server; the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end. By applying the technical scheme provided by the embodiment of the invention, the data backup efficiency is improved, and the data backup safety is improved. The invention also discloses a data backup device, equipment and a storage medium, and has corresponding technical effects.
Description
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a data backup method, apparatus, device, and computer-readable storage medium.
Background
With the popularization of computer applications, data has become an important asset for data owners, and once data loss occurs, a huge loss is caused to computer users. Problems such as software platform faults, design bugs of an operating system, hardware faults of the system and the like can bring immeasurable loss to data of the system, influence normal operation of enterprise servers, and further cause serious loss to scientific research and production. Therefore, in the process of maintaining the server management software, a system administrator must back up data such as configuration information and database information in the current system at a certain node to prevent immeasurable loss caused by subsequent misoperation.
The existing data backup method is to perform indifferent backup on all data to local or cloud. However, due to the limitation of the local storage space, when the data volume is large, some data backup may fail, so that the hidden danger of backup failure exists, and although the cloud backup solves the problem of the data volume, the cloud backup has the problems of low speed and low efficiency compared with the local backup transmission due to the fact that the cloud backup relates to the cloud transmission.
In summary, how to effectively solve the problems of indiscriminate data backup, limited local backup storage space, failure of some data backup, low cloud backup speed, low efficiency and the like is a problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a data backup method, which realizes the differential backup of data, improves the efficiency of data backup and improves the safety of data backup; another object of the present invention is to provide a data backup apparatus, device and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a method of data backup, comprising:
receiving a data backup request, and analyzing the data backup request to obtain data attribute information of data to be backed up;
when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be a local server, backing up the data to be backed up to the local server;
when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be a cloud server, backing up the data to be backed up to the cloud server;
and the data backup scheme list is pre-stored with the corresponding relation between each data attribute information and each data backup end.
In a specific embodiment of the present invention, analyzing the data backup request to obtain data attribute information of the data to be backed up includes:
analyzing the data backup request to obtain data importance degree information and data volume size information of the data to be backed up;
when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be a local server, backing up the data to be backed up to the local server, including:
when the corresponding data backup end is found to be the local server from the data backup scheme list by combining the data importance degree information and the data size information, backing up the data to be backed up to the local server;
when the corresponding data backup end is found to be the cloud server from the data backup scheme list in combination with the data importance degree information and the data size information, backing up the data to be backed up to the cloud server;
the data backup scheme list is pre-stored with the importance information of each data, the size range of each data volume and the corresponding relationship between each data backup end.
In a specific embodiment of the present invention, when the data importance information and the data size information are combined and the corresponding data backup end is found from the data backup scheme list as the local server, backing up the data to be backed up to the local server includes:
when the data backup end corresponding to the condition that the data importance degree information is common and the data volume size information is smaller than the preset data volume threshold value is found from the data backup scheme list as the local server, backing up the data to be backed up to the local server;
when the corresponding data backup end is found to be the cloud server from the data backup scheme list in combination with the data importance information and the data size information, backing up the data to be backed up to the cloud server, including:
and when the data backup end corresponding to the data importance degree information which is important and/or the data volume size information which is greater than or equal to the preset data volume threshold value is found from the data backup scheme list as the cloud server, backing up the data to be backed up to the cloud server.
In an embodiment of the present invention, before backing up the data to be backed up to the local server and before backing up the data to be backed up to the cloud server, the method further includes:
compressing and encrypting the data to be backed up to obtain ciphertext compressed data;
backing up the data to be backed up to the local server, comprising:
backing up the ciphertext compression data to the local server;
backing up the data to be backed up to the cloud server, including:
and backing up the ciphertext compressed data to the cloud server.
A data backup apparatus comprising:
the attribute information acquisition module is used for receiving a data backup request, analyzing the data backup request and acquiring data attribute information of data to be backed up;
the local backup module is used for backing up the data to be backed up to the local server when the data backup end corresponding to the data attribute information is found from the data backup scheme list and is the local server;
the cloud backup module is used for backing up the data to be backed up to a cloud server when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server;
and the data backup scheme list is pre-stored with the corresponding relation between each data attribute information and each data backup end.
In a specific embodiment of the present invention, the attribute information obtaining module is a module that analyzes the data backup request to obtain data importance information and data size information of the data to be backed up;
the local backup module is specifically a module for backing up the data to be backed up to the local server when the corresponding data backup end is found to be the local server from the data backup scheme list in combination with the data importance information and the data size information;
the cloud backup module is specifically a module for backing up the data to be backed up to the cloud server when the corresponding data backup terminal is found to be the cloud server from the data backup scheme list in combination with the data importance information and the data size information;
the data backup scheme list is pre-stored with the importance information of each data, the size range of each data volume and the corresponding relationship between each data backup end.
In a specific embodiment of the present invention, the local backup module is specifically a module for backing up the data to be backed up to the local server when the data backup end corresponding to the data importance information that is found from the data backup scheme list is common and the data size information is smaller than a preset data size threshold is the local server;
the cloud backup module is specifically a module for backing up the data to be backed up to the cloud server when the data backup end corresponding to the data importance degree information which is important and/or the data size information which is greater than or equal to the preset data size threshold is found from the data backup scheme list as the cloud server.
In one embodiment of the present invention, the method further comprises:
the compression encryption module is used for compressing and encrypting the data to be backed up to obtain ciphertext compression data before backing up the data to be backed up to the local server and before backing up the data to be backed up to the cloud server;
the local backup module is specifically a module for backing up the ciphertext compressed data to the local server;
the cloud backup module is specifically a module for backing up the ciphertext compressed data to the cloud server.
A data backup device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the data backup method as described above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the data backup method as described above.
By applying the method provided by the embodiment of the invention, the data backup request is received and analyzed to obtain the data attribute information of the data to be backed up; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server; the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end. By setting the data backup scheme list in which the corresponding relation between each data attribute information and each data backup end is stored, after the data attribute information of the data to be backed up is obtained, the data backup end of the data to be backed up can be directly searched from the data backup scheme list according to the data attribute information, so that the data can be differentially backed up, the backup advantages of the local server and the cloud server can be more effectively utilized to backup the data, the defects of the local server and the cloud server can be avoided, the data backup efficiency can be improved, and the data backup safety can be improved.
Accordingly, embodiments of the present invention further provide a data backup apparatus, a device and a computer-readable storage medium corresponding to the data backup method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of an implementation of a data backup method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another implementation of a data backup method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another implementation of a data backup method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a data backup device according to an embodiment of the present invention;
fig. 5 is a block diagram of a data backup device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of a data backup method according to an embodiment of the present invention, where the method may include the following steps:
s101: and receiving a data backup request, and analyzing the data backup request to obtain data attribute information of the data to be backed up.
When data such as configuration data and database data need to be backed up, a data backup request can be sent to the data backup management center, and the data backup request contains data attribute information of the data to be backed up. The data attribute information may include data volume size, data importance, data security level, data type (e.g., temporary file type data, permanent type data), and the like. And the data backup management center receives the data backup request and analyzes the data backup request to obtain the data attribute information of the data to be backed up.
S102: and when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server.
The data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end.
The data backup scheme list storing the corresponding relationship between each data attribute information and each data backup end can be preset, if the data backup scheme list is provided with one of the conditions that the data to be backed up meets the condition that the data size is larger than or equal to a preset threshold value, the data importance degree is important, the data security level is higher than a preset level, the data type is permanent type data, and the like, the corresponding data backup end is a cloud server, and if the conditions are not met, the corresponding data backup end is a local server. When the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, it is indicated that the data volume of the current data to be backed up is generally not very large, and the requirement on the efficiency of data backup may be high.
S103: and when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server.
When the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, it is indicated that the data volume of the current data to be backed up is generally large, and the efficiency of data backup is not much required, such as data stored in a database and asset statistical data, under the condition, the data to be backed up is backed up to the cloud server. Specifically, the data to be backed up can be backed up to the ftp cloud server through the Java code through the ftp protocol.
By applying the method provided by the embodiment of the invention, the data backup request is received and analyzed to obtain the data attribute information of the data to be backed up; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server; the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end. By setting the data backup scheme list in which the corresponding relation between each data attribute information and each data backup end is stored, after the data attribute information of the data to be backed up is obtained, the data backup end of the data to be backed up can be directly searched from the data backup scheme list according to the data attribute information, so that the data can be differentially backed up, the backup advantages of the local server and the cloud server can be more effectively utilized to backup the data, the defects of the local server and the cloud server can be avoided, the data backup efficiency can be improved, and the data backup safety can be improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of a data backup method in an embodiment of the present invention, where the method may include the following steps:
s201: and receiving a data backup request, and analyzing the data backup request to obtain data importance information and data volume information of the data to be backed up.
The data attribute information included in the data backup request may specifically include data importance information and data size information. After receiving the data backup request, the data backup request may be analyzed to obtain data importance information and data size information of the data to be backed up.
S202: and when the corresponding data backup end is found to be the local server from the data backup scheme list by combining the data importance information and the data volume information, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the local server.
The data backup scheme list is pre-stored with the importance information of each data, the size range of each data volume and the corresponding relationship between each data backup end.
The data backup scheme list may specifically store, in advance, importance information of each data, a size range of each data amount, and a correspondence between data backup terminals. If the importance degree of the data is important and the size of the data is larger than or equal to a preset threshold value, the corresponding data backup end is a cloud server, and the data backup ends corresponding to other conditions are local servers; the data backup terminals corresponding to the data backup terminals can be cloud servers only when the data importance degree is important or the data volume is larger than or equal to the preset threshold value, and the data backup terminals corresponding to the data backup terminals are local servers only when the data importance degree is common and the data volume is smaller than the preset threshold value. The data size range is a data size range which is divided by taking a preset threshold of the data size as a boundary and is smaller than the preset threshold, and a data size range which is larger than or equal to the preset threshold.
When the corresponding data backup end is found to be the local server from the data backup scheme list by combining the data importance information and the data volume size information, the data to be backed up may be compressed and encrypted first, for example, the data to be backed up is encrypted through tar and OpenSSL, so as to obtain ciphertext compressed data, and the ciphertext compressed data is backed up to the local server. The data importance degree information and the data volume size information are used as judgment bases for judging the data backup end of the data to be backed up, so that the problem that the storage space is limited when the local server backs up the data to be backed up with large data volume can be avoided, the storage advantage of the cloud server on the large data is effectively utilized, the loss of the backup data is avoided, and the safety of the backup data is improved. And the storage space of the local memory is saved by compressing the data to be backed up, and the safety of the data to be backed up stored in the local server after being backed up is further enhanced by encrypting the data. Taking advantage of the above example, when data is restored, the ciphertext compression data is decrypted through tar and OpenSSL, and the data restoration process is completed.
S203: and when the corresponding data backup end is found to be the cloud server from the data backup scheme list by combining the data importance information and the data volume information, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the cloud server.
And when the corresponding data backup end is found to be the cloud server from the data backup scheme list by combining the data importance information and the data volume information, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the cloud server. By compressing the data to be backed up, the bandwidth required by uploading the data to be backed up to the cloud server is greatly saved, and the security of the data to be backed up in the process of transmitting the data to be backed up to the cloud server is further enhanced by encrypting the data.
Example three:
referring to fig. 3, fig. 3 is a flowchart of another implementation of a data backup method in an embodiment of the present invention, where the method may include the following steps:
s301: and receiving a data backup request, and analyzing the data backup request to obtain data importance information and data volume information of the data to be backed up.
S302: and when the data backup end corresponding to the data importance degree information which is common and the data volume size information which is smaller than the preset data volume threshold value is found from the data backup scheme list as the local server, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the local server.
A data volume threshold may be preset, and when any one of the conditions that the data importance degree is important or the data volume size is greater than or equal to the preset threshold is satisfied, the data backup end corresponding to the data backup scheme list is the cloud server, and only the data backup end corresponding to the data importance degree which is common and the data volume size which is smaller than the preset threshold is the local server. After the data importance information and the data volume size information of the data to be backed up are obtained, when the data backup end corresponding to the condition that the data importance information is common and the data volume size information is smaller than the preset data volume threshold value is found from the data backup scheme list to be the local server, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the local server.
It should be noted that the preset threshold may be set and adjusted according to actual situations, which is not limited in the embodiment of the present invention, and for example, the preset threshold may be set to 1G.
S303: and when the data backup end corresponding to the data importance degree information which is important and/or the data volume size information which is greater than or equal to the preset data volume threshold value is found from the data backup scheme list as the cloud server, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the cloud server.
After the data importance information and the data volume size information of the data to be backed up are obtained, when the data importance information is found from the data backup scheme list to be important and/or the data volume size information is greater than or equal to a preset data volume threshold (namely the data importance information is important and the data volume size information is greater than or equal to the preset data volume threshold, or the data importance information is important, the data volume size information is less than the preset data volume threshold, or the data importance information is common, and the data volume size information is greater than or equal to the preset data volume threshold), the corresponding data backup end is a cloud server, compressing and encrypting the data to be backed up to obtain ciphertext compressed data, and backing up the ciphertext compressed data to the cloud server. As long as the data importance degree is important or the data volume is larger than or equal to any one of the preset threshold values, the corresponding data backup end is the cloud server, the advantages of large storage space of the cloud server, convenience in storage of backup data and the like are fully utilized, the probability of loss of the data to be backed up is reduced, and the safety of the data after the backup is finished is improved.
Corresponding to the above method embodiments, embodiments of the present invention further provide a data backup apparatus, and the data backup apparatus described below and the data backup method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a block diagram of a data backup apparatus according to an embodiment of the present invention, where the data backup apparatus may include:
the attribute information obtaining module 41 is configured to receive a data backup request, and analyze the data backup request to obtain data attribute information of data to be backed up;
the local backup module 42 is configured to backup the data to be backed up to the local server when the data backup end corresponding to the data attribute information is found from the data backup scheme list as the local server;
the cloud backup module 43 is configured to backup the data to be backed up to the cloud server when the data backup end corresponding to the data attribute information is found from the data backup scheme list as the cloud server;
the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end.
The device provided by the embodiment of the invention is applied to receive the data backup request, and analyze the data backup request to obtain the data attribute information of the data to be backed up; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server; the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end. By setting the data backup scheme list in which the corresponding relation between each data attribute information and each data backup end is stored, after the data attribute information of the data to be backed up is obtained, the data backup end of the data to be backed up can be directly searched from the data backup scheme list according to the data attribute information, so that the data can be differentially backed up, the backup advantages of the local server and the cloud server can be more effectively utilized to backup the data, the defects of the local server and the cloud server can be avoided, the data backup efficiency can be improved, and the data backup safety can be improved.
In a specific embodiment of the present invention, the attribute information obtaining module 41 is specifically a module that analyzes the data backup request to obtain data importance information and data size information of the data to be backed up;
the local backup module 42 is specifically a module that backs up the data to be backed up to the local server when the corresponding data backup end is found as the local server from the data backup scheme list in combination with the data importance information and the data size information;
the cloud backup module 43 is specifically a module that backs up data to be backed up to the cloud server when the corresponding data backup end is found from the data backup scheme list as the cloud server by combining the data importance information and the data size information;
the data backup scheme list is pre-stored with the importance information of each data, the size range of each data volume and the corresponding relationship between each data backup end.
In a specific embodiment of the present invention, the local backup module 42 is specifically a module for backing up the data to be backed up to the local server when the data backup end corresponding to the data importance information that is found from the data backup scheme list is the local server and the data size information is smaller than the preset data size threshold is the normal data;
the cloud backup module 43 is specifically a module that backs up data to be backed up to the cloud server when the data backup end corresponding to the data importance information found from the data backup scheme list is important and/or the data size information is greater than or equal to the preset data size threshold is the cloud server.
In one embodiment of the present invention, the apparatus may further include:
the compression encryption module is used for compressing and encrypting the data to be backed up to obtain ciphertext compression data before backing up the data to be backed up to the local server and before backing up the data to be backed up to the cloud server;
the local backup module 42 is specifically a module for backing up the ciphertext compression data to a local server;
the cloud backup module 43 is specifically a module that backs up the ciphertext compression data to the cloud server.
Corresponding to the above method embodiment, referring to fig. 5, fig. 5 is a schematic diagram of a data backup device provided in the present invention, where the device may include:
a memory 51 for storing a computer program;
the processor 52, when executing the computer program stored in the memory 51, may implement the following steps:
receiving a data backup request, and analyzing the data backup request to obtain data attribute information of data to be backed up; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server; the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
receiving a data backup request, and analyzing the data backup request to obtain data attribute information of data to be backed up; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the local server, backing up the data to be backed up to the local server; when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server, backing up the data to be backed up to the cloud server; the data backup scheme list is pre-stored with the corresponding relationship between each data attribute information and each data backup end.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A method for data backup, comprising:
receiving a data backup request, and analyzing the data backup request to obtain data attribute information of data to be backed up;
when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be a local server, backing up the data to be backed up to the local server;
when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be a cloud server, backing up the data to be backed up to the cloud server;
and the data backup scheme list is pre-stored with the corresponding relation between each data attribute information and each data backup end.
2. The data backup method according to claim 1, wherein analyzing the data backup request to obtain data attribute information of the data to be backed up comprises:
analyzing the data backup request to obtain data importance degree information and data volume size information of the data to be backed up;
when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be a local server, backing up the data to be backed up to the local server, including:
when the corresponding data backup end is found to be the local server from the data backup scheme list by combining the data importance degree information and the data size information, backing up the data to be backed up to the local server;
when the corresponding data backup end is found to be the cloud server from the data backup scheme list in combination with the data importance degree information and the data size information, backing up the data to be backed up to the cloud server;
the data backup scheme list is pre-stored with the importance information of each data, the size range of each data volume and the corresponding relationship between each data backup end.
3. The data backup method according to claim 2, wherein when the corresponding data backup end is found from the data backup scheme list as the local server in combination with the data importance information and the data size information, backing up the data to be backed up to the local server includes:
when the data backup end corresponding to the condition that the data importance degree information is common and the data volume size information is smaller than the preset data volume threshold value is found from the data backup scheme list as the local server, backing up the data to be backed up to the local server;
when the corresponding data backup end is found to be the cloud server from the data backup scheme list in combination with the data importance information and the data size information, backing up the data to be backed up to the cloud server, including:
and when the data backup end corresponding to the data importance degree information which is important and/or the data volume size information which is greater than or equal to the preset data volume threshold value is found from the data backup scheme list as the cloud server, backing up the data to be backed up to the cloud server.
4. The data backup method according to any one of claims 1 to 3, further comprising, before backing up the data to be backed up to the local server and before backing up the data to be backed up to the cloud server:
compressing and encrypting the data to be backed up to obtain ciphertext compressed data;
backing up the data to be backed up to the local server, comprising:
backing up the ciphertext compression data to the local server;
backing up the data to be backed up to the cloud server, including:
and backing up the ciphertext compressed data to the cloud server.
5. A data backup apparatus, comprising:
the attribute information acquisition module is used for receiving a data backup request, analyzing the data backup request and acquiring data attribute information of data to be backed up;
the local backup module is used for backing up the data to be backed up to the local server when the data backup end corresponding to the data attribute information is found from the data backup scheme list and is the local server;
the cloud backup module is used for backing up the data to be backed up to a cloud server when the data backup end corresponding to the data attribute information is found from the data backup scheme list to be the cloud server;
and the data backup scheme list is pre-stored with the corresponding relation between each data attribute information and each data backup end.
6. The data backup device according to claim 5, wherein the attribute information obtaining module is specifically a module that analyzes the data backup request to obtain data importance information and data size information of the data to be backed up;
the local backup module is specifically a module for backing up the data to be backed up to the local server when the corresponding data backup end is found to be the local server from the data backup scheme list in combination with the data importance information and the data size information;
the cloud backup module is specifically a module for backing up the data to be backed up to the cloud server when the corresponding data backup terminal is found to be the cloud server from the data backup scheme list in combination with the data importance information and the data size information;
the data backup scheme list is pre-stored with the importance information of each data, the size range of each data volume and the corresponding relationship between each data backup end.
7. The data backup device according to claim 6, wherein the local backup module is specifically a module that backs up the data to be backed up to the local server when the data backup end corresponding to the data importance level information that is found from the data backup scheme list as being common and the data size information that is smaller than a preset data size threshold is the local server;
the cloud backup module is specifically a module for backing up the data to be backed up to the cloud server when the data backup end corresponding to the data importance degree information which is important and/or the data size information which is greater than or equal to the preset data size threshold is found from the data backup scheme list as the cloud server.
8. The data backup apparatus according to any one of claims 5 to 7, further comprising:
the compression encryption module is used for compressing and encrypting the data to be backed up to obtain ciphertext compression data before backing up the data to be backed up to the local server and before backing up the data to be backed up to the cloud server;
the local backup module is specifically a module for backing up the ciphertext compressed data to the local server;
the cloud backup module is specifically a module for backing up the ciphertext compressed data to the cloud server.
9. A data backup device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the data backup method according to any of claims 1 to 4 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the data backup method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911082386.4A CN110908833A (en) | 2019-11-07 | 2019-11-07 | Data backup method, device and equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911082386.4A CN110908833A (en) | 2019-11-07 | 2019-11-07 | Data backup method, device and equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110908833A true CN110908833A (en) | 2020-03-24 |
Family
ID=69816335
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911082386.4A Withdrawn CN110908833A (en) | 2019-11-07 | 2019-11-07 | Data backup method, device and equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110908833A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112650093A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | Digital reset circuit applied to MCU chip |
CN112650091A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip interface circuit |
CN112649649A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip power supply voltage detection circuit |
CN112650092A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | Comparator, RC oscillator circuit and MCU chip |
CN112649725A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip failure detection warning circuit |
CN112650090A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip start mode selection circuit |
CN112653205A (en) * | 2020-10-09 | 2021-04-13 | 合肥恒烁半导体有限公司 | Vehicle-mounted mobile phone charger output protection circuit controlled by MCU chip |
CN113297006A (en) * | 2020-08-31 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data backup method and device, electronic equipment and computer readable storage medium |
CN113391954A (en) * | 2021-06-15 | 2021-09-14 | 上海英方软件股份有限公司 | High-availability data backup method and system based on distributed architecture |
CN117056133A (en) * | 2023-10-12 | 2023-11-14 | 杭州浩联智能科技有限公司 | Data backup method, device and medium based on distributed Internet of things architecture |
-
2019
- 2019-11-07 CN CN201911082386.4A patent/CN110908833A/en not_active Withdrawn
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113297006A (en) * | 2020-08-31 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data backup method and device, electronic equipment and computer readable storage medium |
CN112650093B (en) * | 2020-09-25 | 2022-03-01 | 恒烁半导体(合肥)股份有限公司 | Digital reset circuit applied to MCU chip |
CN112650090B (en) * | 2020-09-25 | 2022-08-09 | 恒烁半导体(合肥)股份有限公司 | MCU chip start mode selection circuit |
CN112650092A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | Comparator, RC oscillator circuit and MCU chip |
CN112649725A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip failure detection warning circuit |
CN112650090A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip start mode selection circuit |
CN112649725B (en) * | 2020-09-25 | 2023-09-26 | 恒烁半导体(合肥)股份有限公司 | MCU chip failure detection alarm circuit |
CN112650091A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip interface circuit |
CN112649649A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | MCU chip power supply voltage detection circuit |
CN112650093A (en) * | 2020-09-25 | 2021-04-13 | 合肥恒烁半导体有限公司 | Digital reset circuit applied to MCU chip |
CN112650091B (en) * | 2020-09-25 | 2022-03-04 | 恒烁半导体(合肥)股份有限公司 | MCU chip interface circuit |
CN112653205A (en) * | 2020-10-09 | 2021-04-13 | 合肥恒烁半导体有限公司 | Vehicle-mounted mobile phone charger output protection circuit controlled by MCU chip |
CN113391954A (en) * | 2021-06-15 | 2021-09-14 | 上海英方软件股份有限公司 | High-availability data backup method and system based on distributed architecture |
CN117056133A (en) * | 2023-10-12 | 2023-11-14 | 杭州浩联智能科技有限公司 | Data backup method, device and medium based on distributed Internet of things architecture |
CN117056133B (en) * | 2023-10-12 | 2024-02-06 | 杭州浩联智能科技有限公司 | Data backup method, device and medium based on distributed Internet of things architecture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110908833A (en) | Data backup method, device and equipment and computer readable storage medium | |
CN111917897B (en) | Identification generation method, device, equipment and storage medium | |
CN109918261B (en) | Fault monitoring method, device, equipment and computer readable storage medium | |
CN110661829B (en) | File downloading method and device, client and computer readable storage medium | |
US20190227710A1 (en) | Incremental data restoration method and apparatus | |
CN109495874B (en) | Profile downloading method and device | |
CN110618974A (en) | Data storage method, device, equipment and storage medium | |
CN109450869B (en) | Service safety protection method based on user feedback | |
CN111262822A (en) | File storage method, device, block link point and system | |
CN114268957A (en) | Abnormal business data processing method, device, server and storage medium | |
CN108418679B (en) | Method and device for processing secret key under multiple data centers and electronic equipment | |
CN103065096B (en) | A kind of data guard method, Apparatus and system | |
CN113312669B (en) | Password synchronization method, device and storage medium | |
CN108133026B (en) | Multi-data processing method, system and storage medium | |
CN115499487B (en) | Updating method and device of server configuration file, storage medium and equipment | |
CN108897497B (en) | Centerless data management method and device | |
CN111010706A (en) | Exception recovery method and device | |
CN111078645A (en) | Method and device for remote backup of computer data | |
CN105187407A (en) | VPN (Virtual Private Network) connection method and system based on blacklist mechanism | |
CN113779056B (en) | Batch audit log processing method and device and computer equipment | |
CN105871982A (en) | Content pushing method, device and system | |
CN113992345B (en) | Webpage sensitive data encryption and decryption method and device, electronic equipment and storage medium | |
CN115086428B (en) | Network request sending method and device and electronic equipment | |
US9374474B1 (en) | System, method, and computer program for detecting duplicated telecommunications events in a consumer telecommunications network | |
CN110119337B (en) | Data analysis method and device and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200324 |