CN108628706A - Method, apparatus, system and the storage medium of data backup - Google Patents

Method, apparatus, system and the storage medium of data backup Download PDF

Info

Publication number
CN108628706A
CN108628706A CN201810408641.9A CN201810408641A CN108628706A CN 108628706 A CN108628706 A CN 108628706A CN 201810408641 A CN201810408641 A CN 201810408641A CN 108628706 A CN108628706 A CN 108628706A
Authority
CN
China
Prior art keywords
server
backed
backup
data
file
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.)
Granted
Application number
CN201810408641.9A
Other languages
Chinese (zh)
Other versions
CN108628706B (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.)
Xinqiao Polytron Technologies Inc Beijing
Original Assignee
Xinqiao Polytron Technologies Inc Beijing
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 Xinqiao Polytron Technologies Inc Beijing filed Critical Xinqiao Polytron Technologies Inc Beijing
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

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

Abstract

The invention discloses the method, apparatus of data backup, system and storage mediums, belong to database technical field.This method includes:File Transfer Protocol configuration information corresponding with server to be backed up and transmission log information are obtained from database server, and generate backup instruction information;The backup instruction information is sent to the server to be backed up, and file transmission configuration is carried out according to the File Transfer Protocol configuration information carried in the backup instruction information, establishes the file transmission link between the server to be backed up;According to the backup instruction information and the transmission log information of carrying, the data in the server to be backed up are backed up by the file transmission link.In this way, the stability of data backup can be improved without installing any backup software in the host of backup server.

Description

Method, apparatus, system and the storage medium of data backup
Technical field
The present invention relates to database technical fields, the more particularly to method, apparatus, system and storage medium of data backup.
Background technology
Store the critical data of enterprise in enterprise servers, and the data volume that enterprise collects increases with surprising rapidity, Once there is certain failure in these servers, many databases can occur damaging or certain system failures after restore data simultaneously It rebuilds, and some cannot.The loss of data can cause an immeasurable loss to whole system.Therefore, effective service is carried out Device system data back-up, the fast quick-recovery operation system in loss of data, it is ensured that the safety of business data data, it appears particularly heavy It wants.
It is backed up currently, data backup can be based on agency, this backup mode needs on the host of backup server Agent software is disposed, and is needed every now and then to software upgrading and maintenance, meanwhile, agent software may can also there are compatible with host Sex chromosome mosaicism.
Invention content
An embodiment of the present invention provides a kind of method of data backup, dress, system is set and storage medium.In order to disclosure There are one basic understandings for some aspects of embodiment, and simple summary is shown below.The summarized section is not extensive overview, Nor to determine key/critical component or describe the protection domain of these embodiments.Its sole purpose is with simple Some concepts are presented in form, in this, as the preamble of following detailed description.
According to a first aspect of the embodiments of the present invention, a kind of method of data backup is provided, including:
File Transfer Protocol configuration information corresponding with server to be backed up and transmission are obtained from database server Log information, and generate backup instruction information;
To the server to be backed up send the backup instruction information, and according to being carried in the backup instruction information The File Transfer Protocol configuration information carries out file transmission configuration, and the file established between the server to be backed up transmits Link;
According to the backup instruction information and the transmission log information of carrying, pass through the file transmission link pair Data in the server to be backed up are backed up.
In one embodiment of the invention, it is described by the file transmission link to the data in the server to be backed up into Row backs up:
When being stored in the buffer zone for determining the server to be backed up and the backup instruction information and the biography When the corresponding data to be backed up of defeated log information, the data to be backed up are read from the buffer zone and are backed up;
When determining that controlling the server to be backed up will be described when not storing the data to be backed up in the buffer zone Data to be backed up are stored in the buffer zone.
In one embodiment of the invention, the method further includes:
When determining that the file transmission link is unsatisfactory for imposing a condition, stop through the file transmission link to described Data in server to be backed up are backed up.
In one embodiment of the invention, it is described by the file transmission link to the data in the server to be backed up into After row backup, further include:
The transmission log information is updated, and updated transmission log information is sent to the database server.
According to a second aspect of the embodiments of the present invention, a kind of device of data backup is provided, including:
Generation unit, for obtaining File Transfer Protocol configuration corresponding with server to be backed up from database server Information and transmission log information, and generate backup instruction information;
Dispensing unit for sending the backup instruction information to the server to be backed up, and refers to according to the backup It enables the File Transfer Protocol configuration information carried in information carry out file transmission configuration, establishes and the server to be backed up Between file transmission link;
Backup units, for the transmission log information according to the backup instruction information and carrying, by described File transmission link backs up the data in the server to be backed up.
In one embodiment of the invention, the backup units are specifically used for when the buffer area for determining the server to be backed up When storing data to be backed up corresponding with the backup instruction information and the transmission log information in domain, from the caching The data to be backed up are read in region to be backed up;When determine do not store the data to be backed up in the buffer zone when, It controls the server to be backed up the data to be backed up are stored in the buffer zone.
In one embodiment of the invention, further include:
Stop unit passes through the file for when determining that the file transmission link is unsatisfactory for imposing a condition, stopping Transmission link backs up the data in the server to be backed up.
In one embodiment of the invention, further include:
Uploading unit is updated, is sent to for updating the transmission log information, and by updated transmission log information The database server.
According to a third aspect of the embodiments of the present invention, a kind of system of data backup is provided, including:Backup server, number According to library server and at least one server to be backed up;Wherein,
The backup server, for obtaining file transmission corresponding with server to be backed up association from database server Configuration information and transmission log information are discussed, and generates backup instruction information, the backup is sent to the server to be backed up Command information, and file transmission is carried out according to the File Transfer Protocol configuration information carried in the backup instruction information and is matched It sets, establishes the file transmission link between the server to be backed up, and, according to the backup instruction information and carrying The transmission log information, the data in the server to be backed up are backed up by the file transmission link.
In one embodiment of the invention, the backup server is specifically used for when the caching for determining the server to be backed up When storing data to be backed up corresponding with the backup instruction information and the transmission log information in region, delay from described It deposits and reads the data to be backed up in region and backed up;The data to be backed up are not stored in the buffer zone when determining When, it controls the server to be backed up and the data to be backed up is stored in the buffer zone.
In one embodiment of the invention, the backup server is additionally operable to be unsatisfactory for setting when the determining file transmission link When fixed condition, stopping backs up the data in the server to be backed up by the file transmission link.
In one embodiment of the invention, the backup server is additionally operable to update the transmission log information, and will be after update Transmission log information be sent to the database server.
According to a fourth aspect of the embodiments of the present invention, a kind of device of data backup is provided, backup server is used for, it is described Device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
File Transfer Protocol configuration information corresponding with server to be backed up and transmission are obtained from database server Log information, and generate backup instruction information;
To the server to be backed up send the backup instruction information, and according to being carried in the backup instruction information The File Transfer Protocol configuration information carries out file transmission configuration, and the file established between the server to be backed up transmits Link;
According to the backup instruction information and the transmission log information of carrying, pass through the file transmission link pair Data in the server to be backed up are backed up.
According to a fifth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instructs, when which is executed by processor the step of the realization above method.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In the embodiment of the present invention, backup server can establish direct file transmission link between server to be backed up, It is backed up to treat the data in backup server by file transmission link, in this way, nothing in the host of backup server Any backup software need to be installed, avoided because problem caused by installation software, provides the stability of backup.Also, text Part transmission link can be carried out with existing major application platform compatible based in File Transfer Protocol.In addition, file transmits When link is unsatisfactory for imposing a condition, such as:Network congestion, memory space reach early warning etc., can stop backing up, so as to monitor Backup procedure.Further, caching mechanism can be used to carry out the backup of data, ensure the reliability of data backup.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of structure chart of data backup system shown according to an exemplary embodiment;
Fig. 2 is a kind of schematic diagram of data back up method shown according to an exemplary embodiment;
Fig. 3 is a kind of structure chart of data backup system shown according to an exemplary embodiment;
Fig. 4 is a kind of signalling diagram of data backup shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of data backup device shown according to an exemplary embodiment.
Specific implementation mode
The following description and drawings fully show specific embodiments of the present invention, to enable those skilled in the art to Put into practice them.Embodiment only represents possible variation.Unless explicitly requested, otherwise individual components and functionality is optional, and And the sequence of operation can change.The part of some embodiments and feature can be included in or replace other embodiments Part and feature.The range of embodiment of the present invention includes the entire scope of claims and the institute of claims There is obtainable equivalent.Herein, each embodiment can individually or generally be indicated that this is only with term " invention " It is merely for convenience, and if in fact disclosing the invention more than one, be not meant to automatically limit the range of the application For any single invention or inventive concept.Herein, relational terms such as first and second and the like are used only for one Entity, which either operates to distinguish with another entity or operation, to be existed without requiring or implying between these entities or operation Any actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-exclusive Property include, so that process, method or equipment including a series of elements include not only those elements, but also to include Other elements that are not explicitly listed.Each embodiment herein is described by the way of progressive, and each embodiment stresses Be all difference from other examples, just to refer each other for identical similar portion between each embodiment.For implementing For structure, product etc. disclosed in example, since it is corresponding with part disclosed in embodiment, so fairly simple, the phase of description Place is closed referring to method part illustration.
Database has a demand of backup, and in the embodiment of the present invention, according to normative document access protocol, backup server can be with Direct file transmission link is established between server to be backed up, to be treated on backup server by file transmission link Data in server to be backed up are backed up, in this way, being avoided in the host of backup server without installing any backup software Because problem caused by installation software, realizes the data backup of no client software, provides the stability of backup.
Fig. 1 is a kind of structure chart of data backup system shown according to an exemplary embodiment.As shown in Figure 1, data The system of backup includes:First server 100, backup server 200, database server 300 and at least one to be backed up Server 400.
Certainly, there are the corresponding data for needing to carry out data backup in each server 400 to be backed up.And database takes Business device 300 can be connect with each server 400 to be backed up, server 400 to be backed up be managed, generally, in database server 300 Can save has the corresponding File Transfer Protocol configuration information of each server to be backed up, i.e., file passes in each server to be backed up Defeated corresponding file access protocol.The corresponding transmission log information of each server to be backed up can also be preserved, i.e., one is waited for Those data have been transmitted backup in backup server, those are not transmitted backup also, in this way, remembering in transmission log information The specifying information of transmission backup is recorded.Certainly, database server 300 also can save some other related to server to be backed up Information, manage the server to be backed up in server 400 to be backed up convenient for database server, such as:Server to be backed up Attribute information, the facility information etc. of server to be backed up.
These information in database server 300, user can be configured by first server 100, i.e., the first clothes Business device 100 can be interacted with database server 300, and the information in database server 300 can pass through first server 100 It is presented to the user, and the information such as File Transfer Protocol configuration information, backup policy information can be passed through first server by user In 100 write-in database servers 300.
File Transfer Protocol configuration information corresponding with server to be backed up and biography are saved in database server 300 Defeated log information, in this way, during carrying out data backup, backup server 200 is obtained and is waited for from database server The corresponding File Transfer Protocol configuration information of backup server and transmission log information, and after generating backup instruction information, to Server to be backed up sends backup instruction information, to be configured according to the File Transfer Protocol carried in backup instruction information Information carries out file transmission configuration, establishes the file transmission link between server to be backed up 400, and, referred to according to backup The transmission log information for enabling information and carrying is treated the data in backup server by file transmission link and is backed up.
Since the File Transfer Protocol configuration information carried in backup instruction information can be based on normative document access protocol, because This, backup server 200 can carry out the configuration of file transmission link according to normative document access protocol, to establish and wait for and is standby File transmission link between part server 400, by the file transmission link of foundation, and according to transmission log information, really Determine the initial position of file transmission backup, then carries out data backup.
As it can be seen that backup server can establish direct file transmission link between server to be backed up, to pass through text Part transmission link is treated the data in backup server and is backed up, in this way, any without installing in the host of backup server Backup software avoids because problem caused by installation software, provides the stability of backup.
Based on above-mentioned data backup system, specific data backup procedure can be carried out.
Fig. 2 is a kind of flow chart of data back up method shown according to an exemplary embodiment.As shown in Fig. 2, data The process of backup includes:
Step 201:File Transfer Protocol configuration information corresponding with server to be backed up is obtained from database server And transmission log information, and generate backup instruction information.
First server can be client-server or web page server etc., i.e. user can pass through first server Database server is configured, in this way, can save the corresponding file transmission of server to be backed up in database server Protocol configuration information and other relevant informations, also, the transmission daily record letter of file backup is also saved in database server Breath, to which backup server can obtain File Transfer Protocol configuration corresponding with server to be backed up from database server Information and transmission log information, and generate backup instruction information.Generally, backup tasks can be periodically executed, that is, reach setting Time, backup server can obtain File Transfer Protocol configuration information corresponding with server to be backed up from database server And transmission log information, and generate backup instruction information.Alternatively, other setting conditions are when meeting, backup server is from data File Transfer Protocol configuration information corresponding with server to be backed up and transmission log information are obtained in the server of library, and are generated Backup instruction information.
Step 202:Backup instruction information is sent to server to be backed up, and according to the file carried in backup instruction information Transport protocol configuration information carries out file transmission configuration, establishes the file transmission link between server to be backed up.
The relevant information of each server to be backed up has been managed in database server.File in the embodiment of the present invention passes It is defeated, file backup can measured file access protocol, therefore, corresponding File Transfer Protocol configuration information can wrap It includes:TELNET application layer protocols establish the security protocol (Secure Shell, SSH) on the basis of application layer and transport layer, use In the transmitted in both directions (File Transfer Protocol, FTP) of the control file on Internet, and a kind of more transmission associations It discusses one or more in (FTP-SSL or FTP-over-SSL, FTPS) etc..Wherein, TELNET application layer protocols are Intenet The standard agreement and principal mode of remote login service.The account number cipher of login is transmitted with data clear text, is not encrypted.SSH is acted on Ibid.Because transmission is encrypted, data are widely used simultaneously through benefits such as overcompression.SSH is initially a journey on unix system Sequence was rapidly spread to other operating platforms again later.And FTPS is equivalent to the FTP of encrypted version, default port number is 21.In safety Socket layer increases SSL using a kind of enhanced File Transfer Protocol of the File Transfer Protocol and instruction of standard for File Transfer Protocol and data channel Security function.SSL is that data are encrypted in a secure connection between client computer and server with SSL functions With the agreement of decryption.
Due to carrying File Transfer Protocol configuration information in backup instruction information, to be had sent to backup server After backup instruction information, backup server and server to be backed up all can carry out file biography according to File Transfer Protocol configuration information Transmission & distribution are set, and the file transmission link between backup server and server to be backed up is established.Such as:Transport protocol is FTPS, is passed Defeated port is 21 etc..
Certainly, if having existed for communication link between backup server and server to be backed up, determination can be passed through Whether the corresponding configuration information of communication link matches with the File Transfer Protocol configuration information carried in backup instruction informationIf Match, then can determine that already present communication link is the file transmission link between server to be backed up established.Otherwise, may be used File transmission configuration is carried out according to File Transfer Protocol configuration information, establishes the file chain between server to be backed up Road.
Step 203:According to backup instruction information and the transmission log information of carrying, treated by file transmission link standby Data in part server are backed up.
Transmission log information corresponding with server to be backed up is also saved in database server, i.e., specifically transmits standby Part information, such as:How many files have transmitted, initial position of transmission etc., to according to backup instruction information and carrying Log information is transmitted, the data in backup server are treated by file transmission link and are backed up.
In the embodiment of the present invention, caching mechanism can be used in specific backup procedure.Caching mechanism may include:In caching Data are the duplications to the data in physical data source, and data are read from caching when application program is run, at the time of specific or The data of event meeting synchronization caching and physical data source.Therefore, the data in backup server are treated by file transmission link Backup is carried out to may include:When stored in the buffer zone for determining server to be backed up and backup instruction information and transmission daily record When the corresponding data to be backed up of information, data to be backed up are read from buffer zone and are backed up;When determining in buffer zone not When storing data to be backed up, controls server to be backed up and data to be backed up are stored in buffer zone.Preferably, the present invention is implemented Buffer pool, the introducing of buffer pool can be used that the buffer area unified management in server is got up in example, it is slow that change is dedicated as general The structure for rushing pond forms when certain process is needed using buffer area by the identical buffer area of several sizes, files an application, It is given by management program distribution, it is that more processes service buffer area to be discharged after being finished a small amount of buffer area can be used in this way In this way, the use of buffer pool may make to reach maximization.It can be by reducing repetitive operation to improve performance using buffering.
Therefore, data backup is carried out by caching mechanism, the safety and stability of data backup can be improved.Backup procedure In, certain requirement is also required to for the storage hardware in backup server, for example, hard disk, the working environment of hard disk is desirable Clean and tidy, it is especially careful not to use hard disk under frequent power-off and many environment of dust.The machinery of hard disk is most afraid of vibrations And high temperature.So environment will be got well, especially cabinet is secured, in case resonance is too big.Hard disk will often arrange hard disk fragment, hard Disk avoids powering off suddenly as possible when reading and writing, cold start-up and the thing for doing other exacerbation cpu loads.
Certainly, the inspection that the file in backup server carries out consistency can be also treated, preferably, can be calculated by encrypting Method, value corresponding to file generated, in this way, the value that the value of the generation for the backup file that transmission backup obtains is provided with publisher Compare, if the two is consistent, can confirm that the backup file of acquisition is consistent with the file treated in backup server, thus, it can Carry out backup preservation.For example, the value of the backup file of acquisition can be generated by Encryption Algorithm such as MD5, SHA1.Another embodiment In, the inspection of consistency can be also carried out by file size, particularly as being not repeated.Therefore, pass through file transmission link It treats the data in backup server and back up and may also include:It is obtained in server to be backed up and is backed up by file transmission link File, when determine obtain backup file it is consistent with the backup file in server to be backed up when, by the backup file of acquisition into Row preserves backup.Wherein it is determined that the backup file process consistent with the backup file in server to be backed up obtained may include:Add Close algorithm checks or file size inspection etc..
And backup server carries out preserving backup being the side that backup copies management can be used in the backup file to acquisition Formula, it may include:It is one or more in mode based on shared storage, mode, distributed storage mode based on data duplication etc..
When user configures database server by first server, specific backup policy is can configure, such as: Classification is not backed up, wherein may include 0,1,2 backup levels, corresponding full backup, incremental backup, differential backup.Or Person, Cumulative Backup, it may include:C, the Cumulative Backup of 2C, 3C.In this way, the backup instruction information generated not only carries file biography Defeated protocol configuration information and transmission log information, may also include backup policy, in this way, by file transmission link to be backed up When data in server are backed up, it may be determined that the backup policy and transmission log information carried in backup instruction information, Then, according to backup policy and transmission log information, the data in backup server is treated by file transmission link and are carried out Backup.In this way so that backup procedure is flexible, improves the flexibility of data backup.
As it can be seen that backup server can establish direct file transmission link between server to be backed up, to pass through text Part transmission link is treated the data in backup server and is backed up, in this way, any without installing in the host of backup server Backup software avoids because problem caused by installation software, provides the stability of backup.Also, file transmission link It is that can be carried out with existing major application platform compatible based in File Transfer Protocol.Further, caching mechanism can be used The backup for carrying out data, ensures the reliability of data backup.And flexible and changeable backup policy, you can improve the spirit of data backup Activity and applicability.
In another embodiment of the present invention, the monitoring of link can be also transmitted in data backup procedure, it is literary when determining When part transmission link is unsatisfactory for imposing a condition, it is standby that the data progress treated by file transmission link in backup server can be stopped Part.Such as:When current network speed is relatively slow or network congestion, it may be determined that file transmission link is unsatisfactory for imposing a condition;Alternatively, standby When disk space, the CPU reserved in part server reaches early warning, it also can determine that file transmission link is unsatisfactory for imposing a condition.This Sample can stop treating backup server by file transmission link once it is determined that when file transmission link is unsatisfactory for imposing a condition In data backed up, reduction continue to cause network congestion or the probability of other failures.
Preferably, in the embodiment of the present invention, the data in backup server are treated by file transmission link and are backed up Later, further include:Update transmission log information, and updated transmission log information is sent to database server.In this way, Newest transmission log information corresponding with server to be backed up is saved in database server.To, either for the first time into Row data backup, or data backup is carried out again after interrupting, it all can be from transmission log information determines data transmission backup Point, to, will not duplicate data backup, increase the burden of network transmission, and reduce the speed of data backup.
With reference to specific embodiment, the process of data backup is described.
Fig. 3 is a kind of structure chart of data backup system shown according to an exemplary embodiment.As shown in figure 3, this reality It applies in example, data backup system includes:Web page server 310, backup server 320, database server 330 and to be backed up Server 340.
Wherein, database server 330 has managed the relevant information of server to be backed up.User can pass through web page server 310 i.e. first servers configure the information in database server 330, and backup server 320 can be to clothes to be backed up Data in device 340 of being engaged in carry out data backup.
Fig. 4 is a kind of signalling diagram of data backup shown according to an exemplary embodiment.As shown in figure 4, data The process of backup includes:
Step 401:Backup server obtains the corresponding File Transfer Protocol of server to be backed up from database server Configuration information and transmission log information.
It is saved in database server and obtains the corresponding File Transfer Protocol configuration information of server to be backed up and biography Defeated log information.And the relevant information of the server to be backed up preserved in database server can be matched by web page server It sets.I.e. web page server configures the relevant information of the server to be backed up preserved in database server.
User can by web page server to preserved in database server information corresponding with server to be backed up into Row configuration, such as:File Transfer Protocol configuration information, backup policy information etc..Certainly, user looks into also by web page server Ask the information preserved in database server.In this way, backup server can periodically obtain clothes to be backed up from database server The corresponding File Transfer Protocol configuration information of business device and transmission log information, execute backup tasks.
Step 402:Backup server generates backup instruction information, and sends backup instruction information to server to be backed up.
Backup server can be according to the corresponding File Transfer Protocol configuration information of server to be backed up of acquisition and transmission Log information generates backup instruction information.Security protocol session is established between backup server and server to be backed up, i.e., to standby Part server sends backup instruction information.
Step 403:File transmission configuration is carried out according to the File Transfer Protocol configuration information carried in backup instruction information, Establish the file transmission link between server to be backed up.
The File Transfer Protocol configuration information carried in backup instruction information, to backup server and clothes to be backed up Business device can all carry out file transmission configuration, establish the file transmission link between backup server and server to be backed up.
Here, can measured file access protocol, using FTPS transport protocols, allocating default port 21 etc..
Step 404:Backup server is transmitted according to backup instruction information and the transmission log information of carrying by file Data in link pair server to be backed up are backed up.
Specifically, caching mechanism can be used to be backed up, it may include:It is deposited when in the buffer zone for determining server to be backed up When having stored up data to be backed up corresponding with backup instruction information and transmission log information, number to be backed up is read from buffer zone According to being backed up;When determine do not store data to be backed up in buffer zone when, control server to be backed up and deposit data to be backed up Enter in buffer zone.
Step 405:Backup server judges whether file transmission link meets setting conditionIf so, step 406 is executed, Otherwise, step 407 is executed.
Link can be monitored, if file transfer speed is less than the first setting value, it may be determined that file transmission link is discontented Foot imposes a condition, and executes step 407.Alternatively, detecting that the remaining space of reserved disk is less than the second setting value, it may be determined that file Transmission link is unsatisfactory for imposing a condition, and executes step 407.
Step 406:Backup server judges whether data backup is completedIf so, executing step 408, otherwise, return to step 404。
When carrying backup policy in backup instruction information, it can judge whether data backup is completed according to backup policy
Step 407:Stopping is treated the data in backup server by file transmission link and is backed up.And it is transferred to step 408。
Step 408:Update transmission log information, and updated transmission log information is sent to database server.
As it can be seen that in the present embodiment, backup server can establish direct file transmission link between server to be backed up, It is backed up to treat the data in backup server by file transmission link, in this way, nothing in the host of backup server Any backup software need to be installed, avoided because problem caused by installation software, provides the stability of backup.Also, text Part transmission link can be carried out with existing major application platform compatible based in File Transfer Protocol.In addition, file transmits When link is unsatisfactory for imposing a condition, such as:Network congestion, memory space reach early warning etc., can stop backing up, so as to monitor Backup procedure.Further, caching mechanism can be used to carry out the backup of data, ensure the reliability of data backup.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
According to the process of above-mentioned data backup, a kind of device of data backup can be built.
Fig. 5 is a kind of block diagram of data backup device shown according to an exemplary embodiment.As shown in figure 5, the device Including:Generation unit 510, dispensing unit 520 and backup units 530, wherein
Generation unit 510, for obtaining File Transfer Protocol corresponding with server to be backed up from database server Configuration information and transmission log information, and generate backup instruction information.
Dispensing unit 520 for sending backup instruction information to server to be backed up, and is taken according in backup instruction information The File Transfer Protocol configuration information of band carries out file transmission configuration, establishes the file chain between server to be backed up Road.
Backup units 530 pass through file chain for the transmission log information according to backup instruction information and carrying It treats the data in backup server and is backed up in road.
In one embodiment of the invention, backup units 530, specifically for being deposited when in the buffer zone for determining server to be backed up When having stored up data to be backed up corresponding with backup instruction information and transmission log information, number to be backed up is read from buffer zone According to being backed up;When determine do not store data to be backed up in buffer zone when, control server to be backed up and deposit data to be backed up Enter in buffer zone.
In one embodiment of the invention, further include:Stop unit, for being unsatisfactory for imposing a condition when determining file transmission link When, stopping is treated the data in backup server by file transmission link and is backed up.
In one embodiment of the invention, further include:Uploading unit is updated, for updating transmission log information, and will be after update Transmission log information be sent to database server.
An embodiment of the present invention provides a kind of systems of data backup, can be as shown in Figure 1, wherein the system of data backup Including:First server 100, backup server 200, database server 300 and at least one server to be backed up 400; Wherein,
Backup server 200, for obtaining file transmission corresponding with server to be backed up from database server 300 Protocol configuration information and transmission log information, and backup instruction information is generated, send backup instruction to server 400 to be backed up Information, and file transmission configuration is carried out according to File Transfer Protocol configuration information is carried in backup instruction information, it establishes and waits for and is standby File transmission link between part server 400, and, according to backup instruction information and the transmission log information of carrying, lead to The data that file transmission link is treated in backup server are crossed to be backed up.
In one embodiment of the invention, first server 100, for preserved in configuration database server 300 with wait for it is standby The corresponding File Transfer Protocol configuration information of part server.
Certainly, first server 100, it is corresponding with server to be backed up for what is preserved in configuration database server 300 Backup dypass.
In one embodiment of the invention, backup server 200 is specifically used for when the buffer area for determining server 400 to be backed up When storing data to be backed up corresponding with backup instruction information and transmission log information in domain, reads and wait for from buffer zone Backup Data is backed up;When determine do not store data to be backed up in buffer zone when, control server 400 to be backed up will wait for it is standby In part data deposit buffer zone.
In one embodiment of the invention, backup server 200 is additionally operable to be unsatisfactory for imposing a condition when determining file transmission link When, stopping is treated the data in backup server by file transmission link and is backed up.
In one embodiment of the invention, backup server 200 is additionally operable to update transmission log information, and by updated biography Defeated log information is sent to database server 300.
In one embodiment of the invention, a kind of device of data backup is provided, is used for backup server, device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
File Transfer Protocol configuration information corresponding with server to be backed up and transmission are obtained from database server Log information, and generate backup instruction information;
To the server to be backed up send the backup instruction information, and according to being carried in the backup instruction information The File Transfer Protocol configuration information carries out file transmission configuration, establishes and the clothes to be backed up where the server to be backed up File transmission link between business device;
According to the backup instruction information and the transmission log information of carrying, pass through the file transmission link pair Data in the server to be backed up are backed up.
In one embodiment of the invention, a kind of computer readable storage medium is provided, computer instruction is stored thereon with, it should The step of above method is realized when instruction is executed by processor.
As it can be seen that in the embodiment of the present invention, backup server can establish direct file transmission between server to be backed up Link is backed up to treat the data in backup server by file transmission link, in this way, the host of backup server In without installing any backup software, avoid because problem caused by installation software, provides the stability of backup.And And file transmission link can be carried out with existing major application platform compatible based in File Transfer Protocol.In addition, literary When part transmission link is unsatisfactory for imposing a condition, such as:Network congestion, memory space reach early warning etc., can stop backing up, to Backup procedure can be monitored.Further, caching mechanism can be used to carry out the backup of data, ensure the reliability of data backup.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be understood that the invention is not limited in the flow and structure that are described above and are shown in the accompanying drawings, And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by the attached claims System.

Claims (12)

1. a kind of method of data backup, which is characterized in that including:
File Transfer Protocol configuration information corresponding with server to be backed up and transmission daily record are obtained from database server Information, and generate backup instruction information;
The backup instruction information is sent to the server to be backed up, and according to described in being carried in the backup instruction information File Transfer Protocol configuration information carries out file transmission configuration, establishes the file chain between the server to be backed up Road;
According to the backup instruction information and the transmission log information of carrying, by the file transmission link to described Data in server to be backed up are backed up.
2. the method as described in claim 1, which is characterized in that it is described by the file transmission link to the clothes to be backed up Data in business device carry out backup:
When being stored in the buffer zone for determining the server to be backed up and the backup instruction information and the transmission day When the corresponding data to be backed up of will information, the data to be backed up are read from the buffer zone and are backed up;
When determine do not store the data to be backed up in the buffer zone when, control the server to be backed up by it is described wait for it is standby Part data are stored in the buffer zone.
3. the method as described in claim 1, which is characterized in that the method further includes:
When determine the file transmission link be unsatisfactory for impose a condition when, stop by the file transmission link to it is described wait for it is standby Data in part server are backed up.
4. the method as described in claim 1 or 3, which is characterized in that it is described by the file transmission link to it is described wait for it is standby After data in part server are backed up, further include:
The transmission log information is updated, and updated transmission log information is sent to the database server.
5. a kind of device of data backup, which is characterized in that including:
Generation unit, for obtaining File Transfer Protocol configuration information corresponding with server to be backed up from database server And transmission log information, and generate backup instruction information;
Dispensing unit for sending the backup instruction information to the server to be backed up, and is believed according to the backup instruction The File Transfer Protocol configuration information carried in breath carries out file transmission configuration, establishes between the server to be backed up File transmission link;
Backup units pass through the file for the transmission log information according to the backup instruction information and carrying Transmission link backs up the data in the server to be backed up.
6. device as claimed in claim 5, which is characterized in that further include:
Stop unit, for when determining that the file transmission link is unsatisfactory for imposing a condition, stopping to be transmitted by the file Data in server to be backed up described in link pair are backed up.
7. such as device described in claim 5 or 6, which is characterized in that further include:
Uploading unit is updated, for updating the transmission log information, and described in updated transmission log information is sent to Database server.
8. a kind of system of data backup, which is characterized in that including:Backup server, database server and at least one Server to be backed up;Wherein,
The backup server is matched for obtaining File Transfer Protocol corresponding with server to be backed up from database server Confidence ceases and transmission log information, and generates backup instruction information, and the backup instruction is sent to the server to be backed up Information, and file transmission configuration is carried out according to the File Transfer Protocol configuration information carried in the backup instruction information, The file transmission link between the server to be backed up is established, and, according to the backup instruction information and carrying The transmission log information backs up the data in the server to be backed up by the file transmission link.
9. system as claimed in claim 8, which is characterized in that
The backup server is additionally operable to, when determining that the file transmission link is unsatisfactory for imposing a condition, stop by described File transmission link backs up the data in the server to be backed up.
10. device as claimed in claim 8 or 9, which is characterized in that
The backup server is additionally operable to update the transmission log information, and updated transmission log information is sent to The database server.
11. a kind of device of data backup, it to be used for backup server, which is characterized in that described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
File Transfer Protocol configuration information corresponding with server to be backed up and transmission daily record are obtained from database server Information, and generate backup instruction information;
The backup instruction information is sent to the server to be backed up, and according to described in being carried in the backup instruction information File Transfer Protocol configuration information carries out file transmission configuration, establishes the file chain between the server to be backed up Road;
According to the backup instruction information and the transmission log information of carrying, by the file transmission link to described Data in server to be backed up are backed up.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of claim 1-4 the methods are realized when execution.
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 true CN108628706A (en) 2018-10-09
CN108628706B 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)

Cited By (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
CN110597778A (en) * 2019-09-11 2019-12-20 北京宝兰德软件股份有限公司 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
CN112214352A (en) * 2020-10-16 2021-01-12 天津七所高科技有限公司 Automatic welding machine equipment data backup method and device based on Ethernet/IP
CN113342575A (en) * 2021-06-21 2021-09-03 深圳互联先锋科技有限公司 Database data remote backup method and device based on real-time encryption

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083606A (en) * 2006-05-29 2007-12-05 中兴通讯股份有限公司 Disaster recovery backup method and apparatus for mobile switching centre simulation
CN101873457A (en) * 2009-09-02 2010-10-27 杭州海康威视数字技术股份有限公司 DVR (Digital Video Recorder) as well as data backup method and system thereof
CN101981876A (en) * 2008-04-02 2011-02-23 株式会社Ntt都科摩 Data communication terminal, proxy device, data communication system, and data communication method
WO2012039989A2 (en) * 2010-09-24 2012-03-29 Hitachi Data Systems Corporation System and method for enhancing availability of a distributed object storage system during a partial database outage
CN103067282A (en) * 2012-12-28 2013-04-24 华为技术有限公司 Data backup method, device and system
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
CN103870363A (en) * 2014-03-28 2014-06-18 国家电网公司 Database data remote backup method
CN104142871A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Data backup method and device and distributed file system
CN104899116A (en) * 2015-06-11 2015-09-09 北京京东尚科信息技术有限公司 Data backup method, source server, target server and system
CN105323183A (en) * 2014-08-01 2016-02-10 中国电信股份有限公司 Method and system for transmitting and processing data among network servers
CN105516364A (en) * 2016-01-21 2016-04-20 浪潮(北京)电子信息产业有限公司 Heterogeneous message processing method and device for cloud storage
CN105930228A (en) * 2016-04-06 2016-09-07 广州唯品会信息科技有限公司 data backup method and system
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
CN107851052A (en) * 2016-07-12 2018-03-27 华为技术有限公司 A kind of apparatus and method for being used for the data of computing device in backup computer network

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083606A (en) * 2006-05-29 2007-12-05 中兴通讯股份有限公司 Disaster recovery backup method and apparatus for mobile switching centre simulation
CN101981876A (en) * 2008-04-02 2011-02-23 株式会社Ntt都科摩 Data communication terminal, proxy device, data communication system, and data communication method
CN101873457A (en) * 2009-09-02 2010-10-27 杭州海康威视数字技术股份有限公司 DVR (Digital Video Recorder) as well as data backup method and system thereof
WO2012039989A2 (en) * 2010-09-24 2012-03-29 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
CN103067282A (en) * 2012-12-28 2013-04-24 华为技术有限公司 Data backup method, device and system
CN104142871A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Data backup method and device and distributed file system
CN103870363A (en) * 2014-03-28 2014-06-18 国家电网公司 Database data remote backup method
CN105323183A (en) * 2014-08-01 2016-02-10 中国电信股份有限公司 Method and system for transmitting and processing data among network servers
CN104899116A (en) * 2015-06-11 2015-09-09 北京京东尚科信息技术有限公司 Data backup method, source server, target server and system
CN105516364A (en) * 2016-01-21 2016-04-20 浪潮(北京)电子信息产业有限公司 Heterogeneous message processing method and device for cloud storage
CN105930228A (en) * 2016-04-06 2016-09-07 广州唯品会信息科技有限公司 data backup method and system
CN107851052A (en) * 2016-07-12 2018-03-27 华为技术有限公司 A kind of apparatus and method for being used for the data of computing device in backup 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

Cited By (10)

* 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
CN110597778A (en) * 2019-09-11 2019-12-20 北京宝兰德软件股份有限公司 Distributed file backup and monitoring method and device
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
CN112214352A (en) * 2020-10-16 2021-01-12 天津七所高科技有限公司 Automatic welding machine equipment data backup method and device based on Ethernet/IP
CN112214352B (en) * 2020-10-16 2023-02-17 天津七所高科技有限公司 Automatic welding machine equipment data backup method and device based on Ethernet/IP
CN113342575A (en) * 2021-06-21 2021-09-03 深圳互联先锋科技有限公司 Database data remote backup method and device based on real-time encryption

Also Published As

Publication number Publication date
CN108628706B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN108628706A (en) Method, apparatus, system and the storage medium of data backup
US9871816B2 (en) Systems and methods for security management of multi-client based distributed storage
US11080144B2 (en) System and method for managing blockchain nodes
US9841909B2 (en) Continuous data backup using real time delta storage
CN113994626B (en) Distributed data storage method and system with enhanced security, resiliency and control
EP3317998B1 (en) Resilient secret sharing cloud based architecture for data vault
US8549327B2 (en) Background service process for local collection of data in an electronic discovery system
US8230222B2 (en) Method, system and computer program for deploying software packages with increased security
US8300831B2 (en) Redundant key server encryption environment
US8739157B2 (en) System and method for managing cloud deployment configuration of an application
EP3289750B1 (en) Autonomous private key recovery
US20100107156A1 (en) Local collector
CN104079568A (en) Method and system for preventing file leakage based on cloud storage technology
US9513895B2 (en) Method and system for patch automation for management servers
US20200266971A1 (en) Re-encrypting data on a hash chain
US10878084B1 (en) Secure synchronization and management of recovery data for backup systems
US11341245B1 (en) Secure delivery of software updates to an isolated recovery environment
US20230224154A1 (en) Encryption key rotation based on dataset size or time between key rotation intervals
US20230336339A1 (en) Automatic key cleanup to better utilize key table space
GB2467989A (en) Data storage across distributed locations

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