CN108628706B - Data backup method, device, system and storage medium - Google Patents

Data backup method, device, system and storage medium Download PDF

Info

Publication number
CN108628706B
CN108628706B CN201810408641.9A CN201810408641A CN108628706B CN 108628706 B CN108628706 B CN 108628706B CN 201810408641 A CN201810408641 A CN 201810408641A CN 108628706 B CN108628706 B CN 108628706B
Authority
CN
China
Prior art keywords
server
backed
backup
data
file transmission
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.)
Active
Application number
CN201810408641.9A
Other languages
Chinese (zh)
Other versions
CN108628706A (en
Inventor
俞辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Synqnc Technology Co ltd
Original Assignee
Beijing Synqnc Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Synqnc Technology Co ltd filed Critical Beijing Synqnc Technology Co ltd
Priority to CN201810408641.9A priority Critical patent/CN108628706B/en
Publication of CN108628706A publication Critical patent/CN108628706A/en
Application granted granted Critical
Publication of CN108628706B publication Critical patent/CN108628706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

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 method, a device and a system for data backup and a storage medium, and belongs to the technical field of databases. The method comprises the following steps: acquiring file transfer protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, and generating backup instruction information; sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up; and according to the backup instruction information and the carried transmission log information, backing up the data in the server to be backed up through the file transmission link. Therefore, the host of the backup server does not need to install any backup software, and the stability of data backup can be improved.

Description

Data backup method, device, system and storage medium
Technical Field
The present invention relates to the field of database technologies, and in particular, to a method, an apparatus, a system, and a storage medium for data backup.
Background
Enterprise servers have critical data stored therein for businesses, and the amount of data collected by businesses has increased at an alarming rate, and once these servers have failed, many databases are able to recover and rebuild after a corruption or some system failure, and some cannot. The loss of data causes immeasurable loss to the whole system. Therefore, it is very important to make an effective server system data backup, quickly recover the business system when the data is lost, and ensure the safety of the enterprise data.
Currently, data backup can be based on proxy backup, which requires deployment of proxy software on a host of a backup server, and occasionally needs to upgrade and maintain the software, and meanwhile, the proxy software may have compatibility problems with the host.
Disclosure of Invention
The embodiment of the invention provides a data backup method, a data backup device, a data backup system device and a storage medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to a first aspect of the embodiments of the present invention, there is provided a method for backing up data, including:
acquiring file transfer protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, and generating backup instruction information;
sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up;
and according to the backup instruction information and the carried transmission log information, backing up the data in the server to be backed up through the file transmission link.
In an embodiment of the present invention, the backing up the data in the server to be backed up by using the file transmission link includes:
when it is determined that the data to be backed up corresponding to the backup instruction information and the transmission log information is stored in the cache region of the server to be backed up, reading the data to be backed up from the cache region for backup;
and when the cache region is determined not to store the data to be backed up, controlling the server to be backed up to store the data to be backed up in the cache region.
In an embodiment of the present invention, the method further includes:
and when the file transmission link is determined not to meet the set conditions, stopping backing up the data in the server to be backed up through the file transmission link.
In an embodiment of the present invention, after the backing up the data in the server to be backed up by using the file transmission link, the method further includes:
and updating the transmission log information and sending the updated transmission log information to the database server.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for backing up data, including:
the generating unit is used for acquiring file transmission protocol configuration information and transmission log information corresponding to a server to be backed up from a database server and generating backup instruction information;
the configuration unit is used for sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up;
and the backup unit is used for backing up the data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information.
In an embodiment of the present invention, the backup unit is specifically configured to, when it is determined that data to be backed up corresponding to the backup instruction information and the transmission log information is stored in a cache area of the server to be backed up, read the data to be backed up from the cache area for backup; and when the cache region is determined not to store the data to be backed up, controlling the server to be backed up to store the data to be backed up in the cache region.
In an embodiment of the present invention, the method further includes:
and the stopping unit is used for stopping backing up the data in the server to be backed up through the file transmission link when the file transmission link is determined not to meet the set condition.
In an embodiment of the present invention, the method further includes:
and the updating and uploading unit is used for updating the transmission log information and sending the updated transmission log information to the database server.
According to a third aspect of the embodiments of the present invention, there is provided a system for data backup, including: the system comprises a backup server, a database server and at least one server to be backed up; wherein the content of the first and second substances,
the backup server is used for acquiring file transmission protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, generating backup instruction information, sending the backup instruction information to the server to be backed up, performing file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, establishing a file transmission link with the server to be backed up, and backing up data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information.
In an embodiment of the present invention, the backup server is specifically configured to, when it is determined that data to be backed up corresponding to the backup instruction information and the transmission log information is stored in a cache area of the server to be backed up, read the data to be backed up from the cache area for backup; and when the cache region is determined not to store the data to be backed up, controlling the server to be backed up to store the data to be backed up in the cache region.
In an embodiment of the present invention, the backup server is further configured to stop backing up the data in the server to be backed up through the file transmission link when it is determined that the file transmission link does not satisfy the set condition.
In an embodiment of the present invention, the backup server is further configured to update the transmission log information, and send the updated transmission log information to the database server.
According to a fourth aspect of the embodiments of the present invention, there is provided an apparatus for data backup, configured to backup a server, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring file transfer protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, and generating backup instruction information;
sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up;
and according to the backup instruction information and the carried transmission log information, backing up the data in the server to be backed up through the file transmission link.
According to a fifth aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the above-described method.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the backup server can establish a direct file transmission link with the server to be backed up, so that the data in the server to be backed up is backed up through the file transmission link, and thus, any backup software does not need to be installed in a host of the backup server, the problem caused by the installation of the software is avoided, and the backup stability is provided. And the file transmission link is based on a file transmission protocol and can be compatible with the existing large application platforms. In addition, when the file transmission link does not satisfy the setting conditions, for example: network congestion, early warning of storage space, etc., can stop backup, and thus can monitor the backup process. Furthermore, a cache mechanism can be adopted to perform data backup, so that the reliability of data backup is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a block diagram illustrating a data backup system in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a data backup method in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a data backup system in accordance with an exemplary embodiment;
FIG. 4 is a signaling diagram illustrating a data backup in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating a data backup apparatus according to an example embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the structures, products and the like disclosed by the embodiments, the description is relatively simple because the structures, the products and the like correspond to the parts disclosed by the embodiments, and the relevant parts can be just described by referring to the method part.
In the embodiment of the invention, according to a standard file access protocol, a direct file transmission link can be established between a backup server and a server to be backed up, so that data in the server to be backed up on the server to be backed up is backed up through the file transmission link.
FIG. 1 is a block diagram illustrating a data backup system in accordance with an exemplary embodiment. As shown in fig. 1, the system for data backup includes: a first server 100, a backup server 200, a database server 300, and at least one server to be backed up 400.
Of course, each server 400 to be backed up has corresponding data to be backed up. The database server 300 may be connected to each server 400 to be backed up to manage the server 400 to be backed up, and generally, the database server 300 may store file transfer protocol configuration information corresponding to each server to be backed up, that is, a file access protocol corresponding to file transfer in each server to be backed up. The transmission log information corresponding to each server to be backed up may also be stored, that is, data in one server to be backed up has been transmitted and backed up, and those data have not been transmitted and backed up, so that the transmission log information records the specific information of the transmission and backup. Of course, the database server 300 may also store some other information related to the servers to be backed up, so as to facilitate the database server to manage the servers to be backed up in the servers to be backed up 400, for example: attribute information of the server to be backed up, device information of the server to be backed up, and the like.
In the database server 300, a user may configure the information through the first server 100, that is, the first server 100 may interact with the database server 300, the information in the database server 300 may be presented to the user through the first server 100, and the user may write information such as file transfer protocol configuration information, backup policy information, and the like, into the database server 300 through the first server 100.
The database server 300 stores the file transfer protocol configuration information and the transmission log information corresponding to the server to be backed up, so that, in the process of data backup, the backup server 200 acquires the file transfer protocol configuration information and the transmission log information corresponding to the server to be backed up from the database server, generates backup instruction information, and sends the backup instruction information to the server to be backed up, thereby performing file transfer configuration according to the file transfer protocol configuration information carried in the backup instruction information, establishing a file transmission link with the server 400 to be backed up, and backing up data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information.
Since the file transfer protocol configuration information carried in the backup instruction information may be based on a standard file access protocol, the backup server 200 may configure the file transfer link according to the standard file access protocol, thereby establishing the file transfer link with the server 400 to be backed up, determining the initial position of the file transfer backup through the established file transfer link and according to the transfer log information, and then performing data backup.
Therefore, a direct file transmission link can be established between the backup server and the server to be backed up, so that the data in the server to be backed up is backed up through the file transmission link, and thus, any backup software does not need to be installed in a host of the backup server, the problem caused by the installation of the software is avoided, and the backup stability is provided.
Based on the data backup system, a specific data backup process can be performed.
FIG. 2 is a flow chart illustrating a method of data backup in accordance with an exemplary embodiment. As shown in fig. 2, the process of data backup includes:
step 201: and acquiring file transmission protocol configuration information and transmission log information corresponding to the server to be backed up from the database server, and generating backup instruction information.
The first server may be a client server, a web server, or the like, that is, a user may configure the database server through the first server, so that the database server may store the file transfer protocol configuration information corresponding to the server to be backed up and other related information, and the database server also stores the transmission log information of the file backup, so that the backup server may obtain the file transfer protocol configuration information and the transmission log information corresponding to the server to be backed up from the database server, and generate the backup instruction information. Generally, the backup task may be executed periodically, that is, the set time is reached, and the backup server may obtain the file transfer protocol configuration information and the transfer log information corresponding to the server to be backed up from the database server, and generate the backup instruction information. Or when other set conditions are met, the backup server acquires the file transfer protocol configuration information and the transfer log information corresponding to the server to be backed up from the database server and generates backup instruction information.
Step 202: and sending backup instruction information to the server to be backed up, carrying out file transmission configuration according to file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up.
The database server manages the relevant information of each server to be backed up. In the embodiment of the present invention, file transmission and file backup may be based on a standard file access protocol, and therefore, the corresponding file transmission protocol configuration information may include: TELNET application layer Protocol, security Protocol (SSH) established on the basis of application layer and transport layer, File Transfer Protocol (FTP) for bidirectional Transfer of control files on the Internet, and a multi-Transfer Protocol (FTP-SSL or FTP-over-SSL, FTPs). The TELNET application layer protocol is a standard protocol and a main form of the Intenet TELNET service. And the password of the logged account number is transmitted with the data plaintext without encryption. SSH works as above. Because of the advantages of transmission encryption, data compression and the like, the method is widely used. SSH was initially a program on UNIX systems and was subsequently rapidly expanding to other operating platforms. And FTPS corresponds to an encrypted version of FTP with a default port number of 21. An enhanced FTP protocol of standard FTP protocol and instructions is used in the secure socket layer, and SSL security function is added for the FTP protocol and the data channel. SSL is a protocol that encrypts and decrypts data in a secure connection between a client and a server with SSL capabilities.
The backup instruction information carries the file transfer protocol configuration information, so that after the backup instruction information is sent to the backup server, the backup server and the server to be backed up can both perform file transfer configuration according to the file transfer protocol configuration information, and a file transfer link between the backup server and the server to be backed up is established. For example: the transport protocol is FTPS, the transport port is 21, and so on.
Certainly, if a communication link already exists between the backup server and the server to be backed up, then can determine whether the configuration information corresponding to the communication link matches the file transfer protocol configuration information carried in the backup instruction information? If the data is matched with the data, the existing communication link can be determined to be the file transmission link established between the established communication link and the server to be backed up. Otherwise, file transmission configuration can be carried out according to the file transmission protocol configuration information, and a file transmission link with the server to be backed up is established.
Step 203: and according to the backup instruction information and the carried transmission log information, backing up the data in the server to be backed up through the file transmission link.
The database server also stores transmission log information corresponding to the server to be backed up, that is, specific transmission backup information, for example: how many files are transmitted, the initial position of transmission and the like, so that the data in the server to be backed up is backed up through the file transmission link according to the backup instruction information and the carried transmission log information.
In the embodiment of the present invention, a cache mechanism may be used for a specific backup process. The caching mechanism may include: the data in the cache is a copy of the data in the physical data source, the application program reads the data from the cache when running, and the data of the cache and the physical data source can be synchronized at a specific time or event. Therefore, backing up the data in the server to be backed up through the file transmission link may include: when determining that the data to be backed up corresponding to the backup instruction information and the transmission log information is stored in the cache region of the server to be backed up, reading the data to be backed up from the cache region for backup; and when the cache region is determined not to store the data to be backed up, controlling the server to be backed up to store the data to be backed up in the cache region. When a process needs to use the buffer area, an application is made, the buffer area is distributed to the process by a management program, and the buffer area is released after the process is used up. The use of buffering can improve performance by reducing repetitive operations.
Therefore, the data backup is carried out through the cache mechanism, and the safety and the stability of the data backup can be improved. During the backup process, certain requirements are also needed for the storage hardware in the backup server, for example, a hard disk, the working environment of the hard disk needs to be clean, and particularly, the hard disk does not need to be used in the environment with frequent power failure and much dust. The machines of hard disks are most afraid of shock and high temperatures. Therefore, the environment is good, and particularly, the chassis is firm so as to avoid too large resonance. Hard disk fragments are often sorted out, and sudden power failure, cold start and other things which increase the load of a CPU are avoided as much as possible when the hard disk is read and written.
Of course, the consistency of the file in the server to be backed up may also be checked, and preferably, a corresponding value may be generated for the file through an encryption algorithm, so that the generated value of the backup file obtained by transmitting the backup is compared with the value provided by the publisher, and if the two are consistent, it may be determined that the obtained backup file is consistent with the file in the server to be backed up, so that the backup storage may be performed. For example, the value of the obtained backup file may be generated by an encryption algorithm such as MD5, SHA1, or the like. In another embodiment, the consistency check can be performed by the file size, and the details are not described again. Therefore, backing up the data in the server to be backed up through the file transmission link may further include: and acquiring the backup file in the server to be backed up through the file transmission link, and saving and backing up the acquired backup file when the acquired backup file is determined to be consistent with the backup file in the server to be backed up. The process of determining that the acquired backup file is consistent with the backup file in the server to be backed up may include: encryption algorithm checking or file size checking, etc.
The backup server may adopt a backup copy management method when saving and backing up the acquired backup file, and the method may include: one or more of a shared storage-based mode, a data replication-based mode, a distributed storage mode and the like.
When a user configures a database server through a first server, a specific backup policy may be configured, for example: the method comprises the steps of hierarchical backup, wherein the hierarchical backup can comprise 0, 1 and 2 backup levels, corresponding full backup, incremental backup and differential backup respectively. Alternatively, accumulating backups may include: C. 2C, 3C. In this way, the generated backup instruction information not only carries the file transmission protocol configuration information and the transmission log information, but also can comprise a backup strategy, so that when the data in the server to be backed up is backed up through the file transmission link, the backup strategy and the transmission log information carried in the backup instruction information can be determined, and then the data in the server to be backed up is backed up through the file transmission link according to the backup strategy and the transmission log information. Therefore, the backup process is flexible, and the flexibility of data backup is improved.
Therefore, a direct file transmission link can be established between the backup server and the server to be backed up, so that the data in the server to be backed up is backed up through the file transmission link, and thus, any backup software does not need to be installed in a host of the backup server, the problem caused by the installation of the software is avoided, and the backup stability is provided. And the file transmission link is based on a file transmission protocol and can be compatible with the existing large application platforms. Furthermore, a cache mechanism can be adopted to perform data backup, so that the reliability of data backup is ensured. And the flexibility and the applicability of data backup can be improved by a flexible and changeable backup strategy.
In another embodiment of the present invention, the transmission link may be monitored during the data backup process, and when it is determined that the file transmission link does not satisfy the setting condition, the backup of the data in the server to be backed up by the file transmission link may be stopped. For example: when the current network speed is slow or the network is blocked, determining that the file transmission link does not meet the set condition; or, when the disk space reserved in the backup server and the CPU reach the early warning, the file transmission link can be determined not to meet the set condition. Therefore, once the file transmission link is determined not to meet the set conditions, the data in the server to be backed up can be stopped from being backed up through the file transmission link, and the probability of network congestion or other faults caused continuously is reduced.
Preferably, in the embodiment of the present invention, after the data in the server to be backed up is backed up by the file transmission link, the method further includes: and updating the transmission log information and sending the updated transmission log information to the database server. In this way, the latest transmission log information corresponding to the server to be backed up is stored in the database server. Therefore, no matter the data backup is carried out for the first time or the data backup is carried out again after interruption, the starting point of the data transmission backup can be determined from the transmission log information, so that the data backup is not repeated, the burden of network transmission is increased, and the speed of the data backup is reduced.
The following describes a data backup process in conjunction with specific embodiments.
FIG. 3 is a block diagram illustrating a data backup system in accordance with an exemplary embodiment. As shown in fig. 3, in this embodiment, the data backup system includes: web server 310, backup server 320, database server 330, and server to be backed up 340.
Database server 330 manages information about the servers to be backed up. The user may configure the information in database server 330 through web server 310, i.e., the first server, and backup server 320 may perform data backup on the data in backup server 340.
Fig. 4 is a signaling diagram illustrating a data backup according to an example embodiment. As shown in fig. 4, the process of data backup includes:
step 401: and the backup server acquires the file transfer protocol configuration information and the transfer log information corresponding to the server to be backed up from the database server.
The database server stores the configuration information of the file transfer protocol and the transmission log information corresponding to the server to be backed up. And the relevant information of the server to be backed up stored in the database server can be configured by the web server. Namely, the web server has configured the relevant information of the server to be backed up stored in the database server.
The user may configure, through the web server, information stored in the database server and corresponding to the server to be backed up, for example: file transfer protocol configuration information, backup policy information, and the like. Of course, the user also queries the information stored in the database server through the web server. Therefore, the backup server can regularly acquire the file transfer protocol configuration information and the transmission log information corresponding to the server to be backed up from the database server, and execute the backup task.
Step 402: the backup server generates backup instruction information and sends the backup instruction information to the server to be backed up.
The backup server can generate backup instruction information according to the acquired file transfer protocol configuration information and the transmission log information corresponding to the server to be backed up. And establishing a security protocol session between the backup server and the server to be backed up, namely sending backup instruction information to the backup server.
Step 403: and carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up.
And the backup instruction information carries file transmission protocol configuration information, so that the backup server and the server to be backed up can perform file transmission configuration and establish a file transmission link between the backup server and the server to be backed up.
Here, the default port 21 may be configured based on a standard file access protocol, employing the FTPS transport protocol, and so on.
Step 404: and the backup server backs up the data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information.
Specifically, a caching mechanism may be used for backup, which may include: when determining that the data to be backed up corresponding to the backup instruction information and the transmission log information is stored in the cache region of the server to be backed up, reading the data to be backed up from the cache region for backup; and when the cache region is determined not to store the data to be backed up, controlling the server to be backed up to store the data to be backed up in the cache region.
Step 405: is the backup server determined whether the file transmission link satisfies the set condition? If yes, go to step 406, otherwise, go to step 407.
The link may be monitored, and if the file transmission speed is less than the first set value, it may be determined that the file transmission link does not satisfy the set condition, and step 407 is performed. Or, if it is detected that the remaining space of the reserved disk is smaller than the second set value, it is determined that the file transmission link does not satisfy the set condition, and step 407 is executed.
Step 406: is the backup server determined whether the data backup is complete? If yes, go to step 408, otherwise, go back to step 404.
Can the backup strategy be carried in the backup instruction information, determine whether the data backup is completed according to the backup strategy?
Step 407: and stopping backing up the data in the server to be backed up through the file transmission link. And proceeds to step 408.
Step 408: and updating the transmission log information and sending the updated transmission log information to the database server.
Therefore, in the embodiment, a direct file transmission link can be established between the backup server and the server to be backed up, so that the data in the server to be backed up is backed up through the file transmission link, and thus, any backup software does not need to be installed in the host of the backup server, the problem caused by the installation of the software is avoided, and the backup stability is provided. And the file transmission link is based on a file transmission protocol and can be compatible with the existing large application platforms. In addition, when the file transmission link does not satisfy the setting conditions, for example: network congestion, early warning of storage space, etc., can stop backup, and thus can monitor the backup process. Furthermore, a cache mechanism can be adopted to perform data backup, so that the reliability of data backup is ensured.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
According to the data backup process, a data backup device can be constructed.
Fig. 5 is a block diagram illustrating a data backup apparatus according to an example embodiment. As shown in fig. 5, the apparatus includes: a generation unit 510, a configuration unit 520, and a backup unit 530, wherein,
the generating unit 510 is configured to obtain the file transfer protocol configuration information and the transfer log information corresponding to the server to be backed up from the database server, and generate the backup instruction information.
The configuration unit 520 is configured to send the backup instruction information to the server to be backed up, perform file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establish a file transmission link with the server to be backed up.
And the backup unit 530 is configured to backup the data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information.
In an embodiment of the present invention, the backup unit 530 is specifically configured to, when it is determined that data to be backed up corresponding to the backup instruction information and the transmission log information is stored in the cache area of the server to be backed up, read the data to be backed up from the cache area to perform backup; and when the cache region is determined not to store the data to be backed up, controlling the server to be backed up to store the data to be backed up in the cache region.
In an embodiment of the present invention, the method further includes: and the stopping unit is used for stopping backing up the data in the server to be backed up through the file transmission link when the file transmission link is determined not to meet the set condition.
In an embodiment of the present invention, the method further includes: and the updating and uploading unit is used for updating the transmission log information and sending the updated transmission log information to the database server.
An embodiment of the present invention provides a data backup system, which may be as shown in fig. 1, where the data backup system includes: a first server 100, a backup server 200, a database server 300, and at least one server to be backed up 400; wherein the content of the first and second substances,
the backup server 200 is configured to obtain the file transfer protocol configuration information and the transfer log information corresponding to the server to be backed up from the database server 300, generate backup instruction information, send the backup instruction information to the server to be backed up 400, perform file transfer configuration according to the file transfer protocol configuration information carried in the backup instruction information, establish a file transfer link with the server to be backed up 400, and backup data in the server to be backed up through the file transfer link according to the backup instruction information and the carried transfer log information.
In an embodiment of the present invention, the first server 100 is configured to configure file transfer protocol configuration information stored in the database server 300 and corresponding to a server to be backed up.
Of course, the first server 100 is configured to configure the backup side path corresponding to the server to be backed up and stored in the database server 300.
In an embodiment of the present invention, the backup server 200 is specifically configured to, when it is determined that data to be backed up corresponding to the backup instruction information and the transmission log information is stored in the cache area of the server 400 to be backed up, read the data to be backed up from the cache area for backup; and when determining that the data to be backed up is not stored in the cache region, controlling the server 400 to be backed up to store the data to be backed up in the cache region.
In an embodiment of the present invention, the backup server 200 is further configured to stop backing up data in the server to be backed up through the file transmission link when it is determined that the file transmission link does not satisfy the setting condition.
In an embodiment of the present invention, the backup server 200 is further configured to update the transmission log information and send the updated transmission log information to the database server 300.
In an embodiment of the present invention, an apparatus for data backup is provided, where the apparatus is used for a backup server, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring file transfer protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, and generating backup instruction information;
sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up where the server to be backed up is located;
and according to the backup instruction information and the carried transmission log information, backing up the data in the server to be backed up through the file transmission link.
In one embodiment of the present invention, a computer-readable storage medium is provided having stored thereon computer instructions which, when executed by a processor, implement the steps of the above-described method.
Therefore, in the embodiment of the invention, the direct file transmission link can be established between the backup server and the server to be backed up, so that the data in the server to be backed up is backed up through the file transmission link, and thus, any backup software does not need to be installed in a host of the backup server, the problem caused by the installation of the software is avoided, and the backup stability is provided. And the file transmission link is based on a file transmission protocol and can be compatible with the existing large application platforms. In addition, when the file transmission link does not satisfy the setting conditions, for example: network congestion, early warning of storage space, etc., can stop backup, and thus can monitor the backup process. Furthermore, a cache mechanism can be adopted to perform data backup, so that the reliability of data backup is ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is to be understood that the present invention is not limited to the procedures and structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. A method of data backup, comprising:
acquiring file transfer protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, and generating backup instruction information;
sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up;
according to the backup instruction information and the carried transmission log information, data in the server to be backed up is backed up through the file transmission link;
the backing up the data in the server to be backed up through the file transmission link comprises:
when it is determined that the data to be backed up corresponding to the backup instruction information and the transmission log information is stored in the cache region of the server to be backed up, reading the data to be backed up from the cache region for backup;
when it is determined that the data to be backed up is not stored in the cache region, controlling the server to be backed up to store the data to be backed up in the cache region;
and when the file transmission link is determined not to meet the set conditions, stopping backing up the data in the server to be backed up through the file transmission link.
2. The method of claim 1, wherein after the backup of the data in the server to be backed up is performed through the file transmission link, the method further comprises:
and updating the transmission log information and sending the updated transmission log information to the database server.
3. An apparatus for data backup, comprising:
the generating unit is used for acquiring file transmission protocol configuration information and transmission log information corresponding to a server to be backed up from a database server and generating backup instruction information;
the configuration unit is used for sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up;
the backup unit is used for backing up the data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information;
and the stopping unit is used for stopping backing up the data in the server to be backed up through the file transmission link when the file transmission link is determined not to meet the set condition.
4. The apparatus of claim 3, further comprising:
and the updating and uploading unit is used for updating the transmission log information and sending the updated transmission log information to the database server.
5. A system for data backup, comprising: the system comprises a backup server, a database server and at least one server to be backed up; wherein the content of the first and second substances,
the backup server is used for acquiring file transmission protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, generating backup instruction information, sending the backup instruction information to the server to be backed up, performing file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, establishing a file transmission link with the server to be backed up, and backing up data in the server to be backed up through the file transmission link according to the backup instruction information and the carried transmission log information;
and the backup server is also used for stopping backing up the data in the server to be backed up through the file transmission link when the file transmission link is determined not to meet the set condition.
6. The system of claim 5,
the backup server is further configured to update the transmission log information and send the updated transmission log information to the database server.
7. An apparatus for data backup, which is used for a backup server, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring file transfer protocol configuration information and transmission log information corresponding to a server to be backed up from a database server, and generating backup instruction information;
sending the backup instruction information to the server to be backed up, carrying out file transmission configuration according to the file transmission protocol configuration information carried in the backup instruction information, and establishing a file transmission link with the server to be backed up;
and according to the backup instruction information and the carried transmission log information, backing up the data in the server to be backed up through the file transmission link.
8. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1-2.
CN201810408641.9A 2018-05-02 2018-05-02 Data backup method, device, system and storage medium Active CN108628706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810408641.9A CN108628706B (en) 2018-05-02 2018-05-02 Data backup method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810408641.9A CN108628706B (en) 2018-05-02 2018-05-02 Data backup method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN108628706A CN108628706A (en) 2018-10-09
CN108628706B true CN108628706B (en) 2021-08-17

Family

ID=63695198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810408641.9A Active CN108628706B (en) 2018-05-02 2018-05-02 Data backup method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN108628706B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977167A (en) * 2019-02-22 2019-07-05 视联动力信息技术股份有限公司 Database backup method and device based on view networking
CN109976945A (en) * 2019-02-26 2019-07-05 深圳市买买提信息科技有限公司 A kind of method and device of Log backup
CN110597778B (en) * 2019-09-11 2022-04-22 北京宝兰德软件股份有限公司 Distributed file backup and monitoring method and device
CN111400105A (en) * 2020-03-27 2020-07-10 北京拓世寰宇网络技术有限公司 Database backup method and device
CN111831483A (en) * 2020-07-20 2020-10-27 北京百度网讯科技有限公司 Backup management method, system, electronic device, and medium
CN111984465A (en) * 2020-07-28 2020-11-24 北京人大金仓信息技术股份有限公司 Database remote backup method, device, medium and electronic equipment
CN112214352B (en) * 2020-10-16 2023-02-17 天津七所高科技有限公司 Automatic welding machine equipment data backup method and device based on Ethernet/IP
CN113342575B (en) * 2021-06-21 2022-11-01 深圳互联先锋科技有限公司 Database data remote backup method and device based on real-time encryption

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083606B (en) * 2006-05-29 2011-03-02 中兴通讯股份有限公司 Disaster recovery backup method and apparatus for mobile switching centre simulation
JP4540720B2 (en) * 2008-04-02 2010-09-08 株式会社エヌ・ティ・ティ・ドコモ Data communication terminal, proxy device, data communication system, and data communication method
CN101873457B (en) * 2009-09-02 2013-05-15 杭州海康威视数字技术股份有限公司 DVR (Digital Video Recorder) as well as data backup method and system thereof
US8515915B2 (en) * 2010-09-24 2013-08-20 Hitachi Data Systems Corporation System and method for enhancing availability of a distributed object storage system during a partial database outage
CN103425548A (en) * 2012-05-21 2013-12-04 深圳市祈飞科技有限公司 Method and system for operating system cloud backup and restore
CN103731801A (en) * 2012-10-16 2014-04-16 联想(北京)有限公司 Network connection method and device and electronic device
CN103067282B (en) * 2012-12-28 2017-07-07 华为技术有限公司 Data back up method, apparatus and system
CN104142871B (en) * 2013-05-10 2017-05-24 中国电信股份有限公司 Data backup method and device and distributed file system
CN103870363A (en) * 2014-03-28 2014-06-18 国家电网公司 Database data remote backup method
CN105323183B (en) * 2014-08-01 2019-05-10 中国电信股份有限公司 Data transmission processing method and system between network server
CN104899116B (en) * 2015-06-11 2019-06-04 北京京东尚科信息技术有限公司 Method, source server, destination server and the system of data backup
CN105516364A (en) * 2016-01-21 2016-04-20 浪潮(北京)电子信息产业有限公司 Heterogeneous message processing method and device for cloud storage
CN105930228B (en) * 2016-04-06 2019-02-12 广州品唯软件有限公司 Data back up method and system
WO2018010766A1 (en) * 2016-07-12 2018-01-18 Huawei Technologies Co., Ltd. Apparatus and method for backing up data of computing devices in a computer network
CN106201789A (en) * 2016-07-27 2016-12-07 北京金山安全软件有限公司 Data backup method and device and terminal
CN106294015A (en) * 2016-08-10 2017-01-04 乐视控股(北京)有限公司 A kind of data back up method and device
CN106648984A (en) * 2016-12-20 2017-05-10 上海银禾油信息技术有限公司 Data backup method and device

Also Published As

Publication number Publication date
CN108628706A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN108628706B (en) Data backup method, device, system and storage medium
US9654417B2 (en) Methods and systems for managing bandwidth usage among a plurality of client devices
US8549327B2 (en) Background service process for local collection of data in an electronic discovery system
EP2847694B1 (en) Systems and methods for distributed storage
US9058298B2 (en) Integrated approach for deduplicating data in a distributed environment that involves a source and a target
US9336092B1 (en) Secure data deduplication
US7337331B2 (en) Distributive storage controller and method
US8352430B1 (en) File storage system to support high data rates
US8321860B2 (en) Local collector
US8386430B1 (en) File storage method to support data recovery in the event of a memory failure
US9824131B2 (en) Regulating a replication operation
US20210377016A1 (en) Key rollover for client side encryption in deduplication backup systems
US20080275923A1 (en) Method for the expungement of backup versions of files on server targets that are configured to be updated sequentially
US20070294568A1 (en) Storage system and method of managing data using the same
US20150046398A1 (en) Accessing And Replicating Backup Data Objects
US20240061749A1 (en) Consolidating snapshots using partitioned patch files
JP2000200208A (en) Method and device for file backup, and program recording medium
CN116209977A (en) Efficient storage of data in cloud storage
US20090150461A1 (en) Simplified snapshots in a distributed file system
US20230336339A1 (en) Automatic key cleanup to better utilize key table space
CN103970624A (en) Backup method and restoration method for identity authentication all-in-one machine
CN112416878A (en) File synchronization management method based on cloud platform
Mager et al. DistBack: A low-overhead distributed back-up architecture with snapshot support
KR20210002978A (en) Method for storing blockchain based file modification evidence and appratus using the same

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
GR01 Patent grant
GR01 Patent grant