CN104899116B - Method, source server, destination server and the system of data backup - Google Patents

Method, source server, destination server and the system of data backup Download PDF

Info

Publication number
CN104899116B
CN104899116B CN201510319586.2A CN201510319586A CN104899116B CN 104899116 B CN104899116 B CN 104899116B CN 201510319586 A CN201510319586 A CN 201510319586A CN 104899116 B CN104899116 B CN 104899116B
Authority
CN
China
Prior art keywords
backup
server
data
information
program
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
CN201510319586.2A
Other languages
Chinese (zh)
Other versions
CN104899116A (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510319586.2A priority Critical patent/CN104899116B/en
Publication of CN104899116A publication Critical patent/CN104899116A/en
Application granted granted Critical
Publication of CN104899116B publication Critical patent/CN104899116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method of data backup, source server, destination server and systems.Stand-by program and signal procedure that source server is sent are received, the stand-by program is used to indicate the destination server and carries out local backup, and the signal procedure is used to communicate with backup server foundation;Connection is established according to the signal procedure and the backup server;Backup Data, which is treated, according to the stand-by program carries out local backup;Local backup data is sent to the backup server by the connection.User is by sending stand-by program and signal procedure from source server to destination server, it can be achieved that controlling destination server by source server carries out data backup, and then user is avoided to carry out human configuration backup in the present invention.With increasing for destination server quantity, user only needs to send stand-by program and signal procedure to destination server by source server, can be realized in a short time to the backup operation of multiple destination servers, improves data backup efficiency.

Description

Method, source server, destination server and the system of data backup
Technical field
The present embodiments relate to Technology On Data Encryption more particularly to a kind of methods of data backup, source server, target Server and system.
Background technique
With the development of network technology, data safety is increasingly concerned and payes attention to.In order to guarantee data security, current After data in server carry out local backup, then backup file is saved by another server and realizes remote backup.Current service When the hardware faults such as the host disk of device cause loss of data, it is extensive that data are carried out by the Backup Data read in another server It is multiple.
When carrying out remote backup, data to be backed up (such as exploitation test data) are exported into local file system by user first System, user is usually database administrator (Database administrator, DBA).Then, system batch is increased by user Operation is managed, job queue is added in backup script recalls information and sets booting self-starting operation for dispatch service.Finally, with Family installation data interactive program and configures auto login information in current server, and data interaction program is according to automated log on After information passes through authentication, the data to be backed up in current server are uploaded in backup server.To each server After carrying out aforesaid operations, the data to be backed up in each server can be uploaded to backup server.
It is one network configuration several hundred as the quantity of the server of the expansion network side of network size is being continuously improved The case where even more servers, is very common.At this point, if when every server carries out data backup, be required to user into Pedestrian's work is uploaded to realize remote backup, and every server carries out needing 2 hours even more time when data backup, then (such as 3 hours) user is unable to complete the backup requirements of several hundred servers in a short time, and then is delayed data backup Time leads to data backup low efficiency.
Summary of the invention
The present invention provides method, source server, destination server and the system of a kind of data backup, to realize by a use Data backup is realized to multiple servers in a short time in family, improves the efficiency of data backup.
In a first aspect, the method is applied to destination service the embodiment of the invention provides a kind of method of data backup Device, comprising:
Stand-by program and signal procedure that source server is sent are received, the stand-by program is used to indicate the destination service Device carries out local backup, and the signal procedure is used to communicate with backup server foundation;
Connection is established according to the signal procedure and the backup server;
Backup Data, which is treated, according to the stand-by program carries out local backup;
Local backup data is sent to the backup server by the connection.
Second aspect, the embodiment of the invention also provides a kind of method of data backup, the method is serviced applied to source Device, comprising:
The backup instruction of user's input is received, the backup instruction is standby for controlling the progress of at least one destination server Part;
The stand-by program and signal procedure sent at least one described destination server, the stand-by program are used to indicate The destination server carries out local backup, and the signal procedure is used to communicate with backup server foundation.
The third aspect, the embodiment of the invention also provides a kind of destination servers, comprising:
Program reception unit, for receiving the stand-by program and signal procedure of source server transmission, the stand-by program is used In indicating the destination server progress local backup, the signal procedure with backup server foundation for communicating;
Connection establishment unit, for according to the received signal procedure of described program receiving unit and the backup services Device establishes connection;
Backup units carry out this for treating Backup Data according to the received stand-by program of described program receiving unit Ground backup;
Backup Data transmission unit, the connection for being established by the connection establishment unit will be described standby
The Local backup data that part unit obtains is sent to the backup server.
Fourth aspect, the embodiment of the invention also provides a kind of source servers, comprising:
Backup instruction receiving unit, for receiving the backup instruction of user's input, the backup instruction is for controlling at least One destination server is backed up;
Program transmission unit, stand-by program and signal procedure for being sent at least one described destination server, institute It states stand-by program and is used to indicate the destination server progress local backup, the signal procedure is used for and backup server is established Communication.
5th aspect, the embodiment of the invention also provides a kind of systems of data backup, and the system comprises fourth aspects Shown in destination server, the source server and each destination server shown in source server and at least one third aspect It is communicated, each destination server is communicated with backup server.
In technical solution provided by the invention, destination server can be according to the stand-by program and communication that source server is sent Program completes the remote backup of data.In the prior art, each destination server is required to by manually configuration backup, and It is backed up by manual operation.In the present invention, the stand-by program that destination server can be sent according to source server carries out local Backup, and backup server is sent for Local backup data by the link that signal procedure is established, realize the strange land of automation Backup.User is by sending stand-by program and signal procedure, it can be achieved that by source server control from source server to destination server Destination server processed carries out data backup, and then user is avoided to carry out human configuration backup.With the increasing of destination server quantity More, user only needs to send stand-by program and signal procedure to destination server by source server, can be realized in the short time The interior backup operation to multiple destination servers improves data backup efficiency.
Detailed description of the invention
Fig. 1 is the system architecture diagram that the embodiment of the present invention is applicable in;
Fig. 2 is the flow chart of the method for first data backup in the embodiment of the present invention one;
Fig. 3 is the flow chart of the method for first data backup in the embodiment of the present invention two;
Fig. 4 is the flow chart of the method for second data backup in the embodiment of the present invention two;
Fig. 5 is the flow chart of the method for third data backup in the embodiment of the present invention two;
Fig. 6 is the flow chart of the method for first data backup in the embodiment of the present invention three;
Fig. 7 is the flow chart of the method for first data backup in the embodiment of the present invention four;
Fig. 8 is the flow chart of the method for second data backup in the embodiment of the present invention four;
Fig. 9 is the flow chart of the method for third data backup in the embodiment of the present invention four;
Figure 10 is the structural schematic diagram of first aim server in the embodiment of the present invention five;
Figure 11 is the structural schematic diagram of second target server in the embodiment of the present invention five;
Figure 12 is the structural schematic diagram of third destination server in the embodiment of the present invention five;
Figure 13 is the structural schematic diagram of the 4th destination server in the embodiment of the present invention five;
Figure 14 is the structural schematic diagram of first source server in the embodiment of the present invention six;
Figure 15 is the structural schematic diagram of second source server in the embodiment of the present invention six;
Figure 16 is the structural schematic diagram of third source server in the embodiment of the present invention six;
Figure 17 is the structural schematic diagram of the 4th source server in the embodiment of the present invention six;
Figure 18 is the structural schematic diagram of the 5th source server in the embodiment of the present invention six;
Figure 19 is the schematic diagram of the system of a data backup in the embodiment of the present invention seven.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
The present embodiments relate to system architecture as shown in Figure 1, wherein user by source server controls more targets Server carries out remote backup, and destination server sends backup server for the data after backup and carries out remote backup.Source clothes Business device, destination server and backup server are the servers divided with function, and three can be located at the same physical entity In, it is also dispersed in two or three different physical entities.
Embodiment one
Fig. 2 is the flow chart of the method for the data backup that the embodiment of the present invention one provides, and the present embodiment is applicable in short-term Interior the case where carrying out remote backup to multiserver, this method can be held by needing the destination server for carrying out remote backup Row, specifically comprises the following steps:
Step 110 receives stand-by program and signal procedure that source server is sent.
Wherein, the stand-by program is used to indicate the destination server and carries out local backup, and the signal procedure is used for It is communicated with backup server foundation.
Stand-by program and signal procedure can be installation kit.It, will be standby by operation installation kit after being received by destination server Part program and signal procedure are installed to local.Installation kit is corresponding with the system version of destination server, such as destination server System be (SuSE) Linux OS, then use RPM format installation kit.Provide in the prior art carried out between server it is different Related communication program in the prior art can be used in the present embodiment for the signal procedure of ground backup, and completion will be in destination server Local backup data be sent to backup server.
Step 120 establishes connection according to the signal procedure and the backup server.
In order to guarantee the safety in data transmission procedure, the connection between destination server and backup server is used Agreement can be session control protocol (Session Control Protocol, abbreviation SCP).Alternatively, in order to improve data The rate of transmission, it is possible to use File Transfer Protocol (File Transfer Protocol, abbreviation FTP).
Step 130 treats Backup Data progress local backup according to the stand-by program.
Stand-by program can be write according to different backup requirements.As a kind of general backup mode, stand-by program In carry configuration information.When destination server runs stand-by program, software and hardware ring needed for completing backup according to configuration information Border configuration, the storage catalogue of data etc. after including when starting backup, data to be backed up, backup.
Local backup data is sent to the backup server by the connection by step 140.
Technical solution provided in this embodiment, destination server can be according to the stand-by programs and communication that source server is sent Program realizes the remote backup of automation.User is by sending stand-by program and communication journey from source server to destination server Sequence is, it can be achieved that carry out data backup by source server control destination server, and then user is avoided to carry out human configuration backup.With Increasing for destination server quantity, user only need by source server to destination server send stand-by program and communication journey Sequence can be realized in a short time to the backup operation of multiple destination servers, improve data backup efficiency.
Embodiment two
The embodiment of the invention also provides a kind of methods of data backup, are further described as to embodiment one, As shown in figure 3, step 130, treating according to the stand-by program Backup Data and carrying out local backup, specifically include:
Step 131 is pre-configured according to the configuration information carried in the stand-by program.
Wherein, the pre-configuration is at least for configuration backup initial time, data to be backed up, storage catalogue and booting fortune Row.
The initial time for running stand-by program configuration backup, starts local backup when reaching BACKUP TIME.Initial time It is accurate to the second, such as 00 minute and 00 second 13 points of on May 27th, 2015.Data to be backed up can be exploitation test data, can also be clothes The day regular data etc. saved in business device.The title and hierarchical relationship of storage catalogue can be set according to the use demand of user It sets.Storage catalogue stepping includes the file of Backup Data, further includes for saving the file etc. for updating file.In order to prevent The reasons such as crash cause backup to interrupt in backup procedure, so that can not continue to back up after Server Restart, setting stand-by program is opened Machine automatic running, and then detect whether to need to carry out data backup automatically after guaranteeing booting, if there is unfinished backup tasks Then continue to back up.Initial time, data to be backed up, storage catalogue and booting operation
Step 132, according to the content of pre-configuration add backup process arrive system job scheduling queue, so as to carry out local it is standby Part.
After being pre-configured, destination server can treat Backup Data in initial time and be backed up, and will back up number According to storage into the corresponding position of storage catalogue.If destination server is because emergency case is shut down, automatic by booting Operation backup process can be realized stable backup, improve the reliability of backup.
Technical solution provided in this embodiment, user can carry out the stand-by program of destination server by configuration information Preset value, so that the data backup in destination server is more flexible.
Destination server, may be because of backup caused by the reasons such as shutdown, network interruption during carrying out data backup Data are incomplete data to be backed up.In order to overcome the above problem, the embodiment of the invention also provides a kind of data backups Method, in step 132 after addition backup process to system job scheduling queue, further includes:
Step 133 judges whether the backup process runs succeeded, and executes 134-a if success, otherwise executes 134- b。
If step 134-a, the described backup process runs succeeded, the local for judging that backup process backs up is standby Whether part data are effective, no to then follow the steps 135-b if effectively thening follow the steps 135-a.
If step 134-b, the described backup process execution is unsuccessful, backup failure feedback letter is sent to source server Breath.
Correspondingly, described be sent to the backup server for Local backup data by the connection, comprising:
If step 135-a, the described Local backup data is effective, Local backup data is sent to by the connection The backup server executes step 136.
If step 135-b, shown Local backup data is invalid, backup invalidation feedback information is sent to source server.
Step 140, by it is described connection Local backup data is sent to the backup server after, further includes:
Step 141 judges whether the Local backup data is successfully transmitted to the backup server, if successful execution Step 142-a, it is no to then follow the steps 142-b.
If step 142-a, the described Local backup data is successfully transmitted to the backup server, serviced to the source Device sends backup successful information.
If step 142-b, the described Local backup data sends failure, failure feedback letter is sent to source server Breath.
In the present embodiment, backup failure feedback information, backup invalidation feedback information, transmission failure feedback information can pass through Flag bit is added in existing signaling to be realized.
The present embodiment provides the technical solutions mentioned, can be in backup phase, generation Backup Data stage, transmission Backup Data Stage tests to the validity of execution, and when above three stage equal successful execution, destination server is sent out to source server Backup successful information is sent, can know the backup instances of each destination server so that user passes through source server.
During network O&M, user is other than controlling multiple destination servers and carrying out data backup, it is also possible to need The data of backup are arranged and counted.Based on this demand, the present embodiment additionally provides a kind of method of data backup, makees For the further explanation to above-described embodiment, as shown in figure 4, Local backup data is sent in step 140, by the connection After to the backup server, the method also includes:
When step 143, each Backup end, the backup information of this backup is recorded.
The backup information includes at least the initial time of current backup.User, can according to the difference of O&M task definition Destination server is controlled in each Backup end by configuration information, records different backup informations.For example, when record start Between, end time and system information (including system hardware information and software information).For another example the record start time, to be backed up Size of data, data content to be backed up mark.
If step 144 receives the backup information acquisition instruction that the source server is sent, by the backup information It is sent to the source server.
Destination server is locally saving the record backup information generated.When user needs to carry out O&M, taken by source Business device sends backup information acquisition instruction to destination server.After destination server receives the instruction, by the backup information It is sent to the source server.
Technical solution provided in this embodiment can generate backup information according to by destination server, according to source server The backup information acquisition instruction of transmission sends the backup information to source server, and then realizes that the information of network O&M task obtains It takes.
With the variation and update of network service, the backup strategy in server can also update therewith.The prior art by with Family manually copies updated data package in destination server to, is installed by destination server, realizes upgrading.Such way is removed Except renewal time caused by manual operation is long, destination server needs to occupy part system resource when installation updates packet. In this regard, as the further explanation to above-described embodiment, such as scheming the embodiment of the invention also provides a kind of method of data backup Shown in 5, the method also includes:
Step 150 receives the update file that the source server is sent.
The update file is used to carry out stand-by program more capable.File and non-update program are updated, as a kind of green The mode of installation will update file and directly cover current update program file, update can be realized.
The more stand-by program is corresponded to the file under catalogue and replaces with the update file by step 160.
Under the corresponding catalogue of stand-by program, if carrying out update, one is established for recording the update of more new content Program file.Update file may include configuration information, so as to backup time and backup object be adjusted.
If step 170 is updated successfully, feedback information is updated successfully to source server transmission.
Judge whether to be updated successfully, can be updated by more new version or judge obtained local backup file whether with more It is recorded in new file corresponding.
Technical solution provided in this embodiment, without installing more new procedures in destination server, it is only necessary to will receive Update file cover existing associated documents, and then save the system resource of destination server.
Embodiment three
The embodiment of the invention provides a kind of methods of data backup, and the method is applied to source server, such as Fig. 6 institute Show, comprising:
Step 210, the backup instruction for receiving user's input.
Wherein, backup instruction is backed up for controlling at least one destination server.Service is stored in source server Device information list is stored with the information of multiple servers in the list, and user can selected section server conduct in the list Destination server selects whole servers as destination server.After selection, triggered by function keys such as clicks " backup " Backup instruction.
Step 220, the stand-by program and signal procedure sent at least one described destination server.
Wherein, the stand-by program is used to indicate the destination server and carries out local backup, and the signal procedure is used for It is communicated with backup server foundation.Stand-by program can imported into source server by external equipment by user, can also be by user It is generated in source server.Stand-by program includes configuration file and the secondary file installed.
Technical solution provided in this embodiment can trigger backup instruction by user in source server, by each mesh It marks server and sends backup instruction, realize that control destination server carries out the operation of remote backup, improve backup efficiency.
Example IV
The embodiment of the invention provides a kind of methods of data backup, as the further explanation to embodiment three, such as Fig. 7 It is shown, before the backup instruction that step 210, reception user input, further includes:
Step 201, the server info list for receiving user's input.
Wherein, the server info list be used to record the address information of at least one server, name information and Configuration information, the configuration information be at least used for backup initial time in configuration server, data to be backed up, storage catalogue and Booting operation.
Family importing can be used in server info list, can also be what user inputted in source server.
At least one server in the server info list is determined as the destination server by step 202.
Target can also can be determined according to the data recorded in server info list by source server by user's artificial selection Server.For example, the server for belonging to some model is chosen to be destination server, so that the server to the model carries out The operation such as update.
Technical solution provided in this embodiment can generate server info list, and being provided based on the list for user can be with As the server info of destination server, allow user's more efficiently selection target server, improves backup efficiency.
In order to enable user can obtain whether each destination server successfully carries out remote backup, the embodiment of the present invention is also A kind of method of data backup is provided, in step 210, the stand-by program sent at least one described destination server and is led to After believing program, the method also includes:
If receiving the backup successful information of destination server transmission, it is determined that the destination server backs up successfully.
It further, can be corresponding destination service in server info list after receiving backup successful information Successful identification information is backed up in device addition.Secondary Backup is carried out to the destination server backed up not successfully so as to subsequent.
Technical solution provided in this embodiment, source server can know the backup instances of each destination server, improve number According to the validity of backup.
When user needs to carry out O&M task, it is sometimes desirable to obtain the backup information of destination server.Based on this, this hair Bright embodiment additionally provides a kind of method of data backup, as shown in figure 8, the method also includes:
Step 230 sends backup information acquisition instruction at least one destination server.
The backup information includes at least the initial time of all previous backup of destination server.It can be to target complete server Backup information acquisition instruction is sent, backup information acquisition instruction can also be sent to partial target server.
Step 240 receives the backup information that at least one described destination server is sent.
Technical solution provided in this embodiment, the backup information acquisition instruction that destination server is sent according to source server, Backup information is sent to source server.The well-behaved information that source server can send each destination server counts, so as to Carry out O&M task.
The embodiment of the invention also provides a kind of methods of data backup, for being updated to destination server, such as Fig. 9 It is shown, shown method further include:
Step 250 searches at least one destination server to be updated from the server list.
Destination server can be determined according to information such as model, the current software versions number of server.
Step 260 sends update file at least one described destination server to be updated, and the update file is used for Stand-by program is carried out more capable.
What step 270, the reception destination server were sent is updated successfully feedback information.
Technical solution provided in this embodiment can be controlled at least one destination server by source server and is updated, Improve renewal speed.
Embodiment five
A kind of destination server is provided in the embodiment of the present invention, for realizing side shown in embodiment one and embodiment two Method, as shown in Figure 10, comprising:
Program reception unit 11, for receiving the stand-by program and signal procedure of source server transmission, the stand-by program It is used to indicate the destination server and carries out local backup, the signal procedure is used to communicate with backup server foundation;
Connection establishment unit 12, for according to the received signal procedure of described program receiving unit 11 and the backup Server establishes connection;
Backup units 13, for according to the received stand-by program of described program receiving unit 11 treat Backup Data into Row local backup;
Backup Data transmission unit 14, the connection for being established by the connection establishment unit 12 is by the backup The Local backup data that unit 13 obtains is sent to the backup server.
Further, the backup units 13 are specifically used for:
It is pre-configured according to the configuration information carried in the stand-by program, the pre-configuration is at least used for configuration backup Initial time, data to be backed up, storage catalogue and booting operation;
Backup process is added to system job scheduling queue, to carry out local backup according to the content of pre-configuration.
Further, as shown in figure 11, the destination server further include:
The effective judging unit 15 of Backup Data, for when the backup process runs succeeded, judging that backup process backs up Whether the obtained Local backup data is effective;
The Backup Data transmission unit 14 is also used to:
When the effective judging unit 15 of the Backup Data judges that the Local backup data is effective, pass through the connection Local backup data is sent to the backup server;
Backup successful information transmission unit 16, for when the Backup Data transmission unit by the Local backup data at When function is sent to the backup server, Xiang Suoshu source server sends backup successful information.
Further, as shown in figure 12, the destination server further include:
Recording unit 17 when being used for each Backup end, records the backup information of this backup, the backup information is at least Initial time including current backup;
Acquisition instruction receiving unit 18, the backup information acquisition instruction sent for receiving the source server;
Backup information transmission unit 19, for being sent when the acquisition instruction receiving unit 18 receives the source server Backup information acquisition instruction when, the backup information is sent to the source server.
Further, as shown in figure 13, the destination server further include:
File reception unit 110 is updated, the update file sent for receiving the source server, the update file is used It is more capable in being carried out to stand-by program;
Replacement unit 111 corresponds to mesh for more stand-by program described in receiving the update file reception unit 110 File under record replaces with the update file;
It is updated successfully information transmitting unit 112, for when being updated successfully, the transmission of Xiang Suoshu source server to be updated successfully anti- Feedforward information.
Embodiment six
A kind of source server is provided in the embodiment of the present invention, for realizing side shown in embodiment three and example IV Method, as shown in figure 14, comprising:
Backup instruction receiving unit 21, for receiving the backup instruction of user's input, the backup instruction is for controlling extremely A few destination server is backed up;
Program transmission unit 22, stand-by program and signal procedure for being sent at least one described destination server, The stand-by program is used to indicate the destination server and carries out local backup, and the signal procedure with backup server for building Vertical communication.
Further, as shown in figure 15, the source server further include:
Information list receiving unit 23, for receiving the server info list of user's input, the server info column Table is used to record the address information, name information and configuration information of at least one server, and the configuration information is at least used for Backup initial time, data to be backed up, storage catalogue and booting operation in configuration server;
Destination server determination unit 24, at least one server in the server info list to be determined as The destination server.
Further, as shown in figure 16, the source server further include:
Backup successful information receives single 25, for receiving the backup successful information of destination server transmission;
Successfully determination unit 26 are backed up, receive the backup successful information when the backup successful information receives single 25 When, determine that the destination server backs up successfully.
Further, as shown in figure 17, the source server further include:
Acquisition instruction transmission unit 27, it is described for sending backup information acquisition instruction at least one destination server Backup information includes at least the initial time of all previous backup of destination server;
Backup information receiving unit 28, the backup information sent for receiving at least one described destination server.
Further, as shown in figure 18, the source server further include:
Searching unit 29, for searching at least one destination server to be updated from the server list;
File transmission unit 210 is updated, at least one to be to be updated described in finding out to the searching unit 29 Destination server, which is sent, updates file, and the update file is used to carry out stand-by program more capable;
It is updated successfully information receiving unit 211, is updated successfully feedback information for receive that the destination server sends.
Embodiment seven
The embodiment of the invention also provides a kind of systems of data backup, and as shown in figure 19, the system comprises embodiments Destination server 32 shown in source server 31 shown in six and at least one embodiment five, the source server 31 and each mesh Mark server 32 is communicated, and each destination server 32 is communicated with backup server 33.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (17)

1. a kind of method of data backup, the method is applied to destination server characterized by comprising
Receive source server send stand-by program and signal procedure, the stand-by program be used to indicate the destination server into Row local backup, the signal procedure are used to communicate with backup server foundation;
Connection is established according to the signal procedure and the backup server;
Backup Data, which is treated, according to the stand-by program carries out local backup;
Local backup data is sent to the backup server by the connection;
It is wherein, described that Backup Data progress local backup is treated according to the stand-by program, comprising:
It is pre-configured according to the configuration information carried in the stand-by program, the pre-configuration is at least originated for configuration backup Time, data to be backed up, storage catalogue and booting operation;
Backup process is added to system job scheduling queue, to carry out local backup according to the content of pre-configuration.
2. the method for data backup according to claim 1, which is characterized in that make in the addition backup process to system After industry scheduling queue, further includes:
If the backup process runs succeeded, whether the Local backup data for judging that backup process backs up has Effect;
Correspondingly, described be sent to the backup server for Local backup data by the connection, comprising:
If the Local backup data is effective, Local backup data is sent to by the backup services by the connection Device;
It is described by it is described connection Local backup data is sent to the backup server after, further includes:
If the Local backup data is successfully transmitted to the backup server, backed up successfully to source server transmission Information.
3. the method for data backup according to any one of claim 1 to 2, which is characterized in that described by described After Local backup data is sent to the backup server by connection, the method also includes:
When each Backup end, the backup information of this backup is recorded, the backup information includes at least the starting of current backup Time;
If receiving the backup information acquisition instruction that the source server is sent, the backup information is sent to the source Server.
4. the method for data backup according to any one of claim 1 to 2, which is characterized in that the method also includes:
The update file that the source server is sent is received, the update file is for being updated stand-by program;
The stand-by program is corresponded into the file under catalogue and replaces with the update file;
If be updated successfully, feedback information is updated successfully to source server transmission.
5. a kind of method of data backup, the method is applied to source server characterized by comprising
The server info list of user's input is received, the server info list is used to record the ground of at least one server Location information, name information and configuration information, the configuration information be at least used for backup initial time in configuration server, to Backup Data, storage catalogue and booting operation;
At least one server in the server info list is determined as destination server;
The backup instruction of user's input is received, the backup instruction is backed up for controlling at least one destination server;
The stand-by program and signal procedure sent at least one described destination server, the stand-by program are used to indicate described Destination server carries out local backup, and the signal procedure is used to communicate with backup server foundation.
6. the method for data backup according to claim 5, which is characterized in that taken described at least one described target It is engaged in after the stand-by program and signal procedure that device is sent, further includes:
If receiving the backup successful information of destination server transmission, it is determined that the destination server backs up successfully.
7. the method for the data backup according to any one of claim 5 to 6, which is characterized in that the method also includes:
Backup information acquisition instruction is sent at least one destination server, the backup information is gone through including at least destination server The initial time of secondary backup;
Receive the backup information that at least one described destination server is sent.
8. the method for the data backup according to any one of claim 5 to 6, which is characterized in that the method also includes:
At least one destination server to be updated is searched from the server list;
Sent at least one described destination server to be updated and update file, the updates file for stand-by program into Row updates;
Receive the destination server transmission is updated successfully feedback information.
9. a kind of destination server characterized by comprising
Program reception unit, for receiving the stand-by program and signal procedure of source server transmission, the stand-by program is for referring to Show that the destination server carries out local backup, the signal procedure is used to communicate with backup server foundation;
Connection establishment unit, for being built according to the received signal procedure of described program receiving unit with the backup server Vertical connection;
Backup units, it is local standby for treating Backup Data progress according to the received stand-by program of described program receiving unit Part;
Backup Data transmission unit, the connection for being established by the connection establishment unit obtain the backup units Local backup data be sent to the backup server;
Wherein, the backup units are specifically used for:
It is pre-configured according to the configuration information carried in the stand-by program, the pre-configuration is at least originated for configuration backup Time, data to be backed up, storage catalogue and booting operation;
Backup process is added to system job scheduling queue, to carry out local backup according to the content of pre-configuration.
10. destination server according to claim 9, which is characterized in that the destination server further include:
The effective judging unit of Backup Data, for judging what backup process backed up when the backup process runs succeeded Whether the Local backup data is effective;
The Backup Data transmission unit is also used to:
It, will be local by the connection when the effective judging unit of the Backup Data judges that the Local backup data is effective Backup Data is sent to the backup server;
Backup successful information transmission unit, for being successfully transmitted the Local backup data when the Backup Data transmission unit When to the backup server, Xiang Suoshu source server sends backup successful information.
11. the destination server according to any one of claim 9 to 10, which is characterized in that the destination server is also Include:
Recording unit when being used for each Backup end, records the backup information of this backup, and the backup information, which includes at least, works as The initial time of preceding backup;
Acquisition instruction receiving unit, the backup information acquisition instruction sent for receiving the source server;
Backup information transmission unit, for receiving the backup letter that the source server is sent when the acquisition instruction receiving unit When ceasing acquisition instruction, the backup information is sent to the source server.
12. the destination server according to any one of claim 9 to 10, which is characterized in that the destination server is also Include:
File reception unit is updated, the update file sent for receiving the source server, the update file is used for standby Part program is updated;
Replacement unit, the stand-by program for receiving the update file reception unit correspond to the file under catalogue and replace It is changed to the update file;
It is updated successfully information transmitting unit, when being updated successfully, the transmission of Xiang Suoshu source server is updated successfully feedback information.
13. a kind of source server characterized by comprising
Backup instruction receiving unit, for receiving the backup instruction of user's input, the backup instruction is for controlling at least one Destination server is backed up;
Program transmission unit, stand-by program and signal procedure for sending at least one described destination server are described standby Part program is used to indicate the destination server and carries out local backup, and the signal procedure is used to establish with backup server logical Letter;
Information list receiving unit, for receiving the server info list of user's input, the server info list is used for The address information, name information and configuration information of at least one server are recorded, the configuration information is at least used to configure clothes Backup initial time, data to be backed up, storage catalogue and the booting operation being engaged in device;
Destination server determination unit, at least one server in the server info list to be determined as the mesh Mark server.
14. source server according to claim 13, which is characterized in that the source server further include:
Backup successful information receiving unit, for receiving the backup successful information of destination server transmission;
Successfully determination unit is backed up, when the backup successful information receiving unit receives the backup successful information, is determined The destination server backs up successfully.
15. source server described in any one of 3 to 14 according to claim 1, which is characterized in that the source server also wraps It includes:
Acquisition instruction transmission unit, for sending backup information acquisition instruction, the backup letter at least one destination server Breath includes at least the initial time of all previous backup of destination server;
Backup information receiving unit, the backup information sent for receiving at least one described destination server.
16. source server described in any one of 3 to 14 according to claim 1, which is characterized in that the source server further includes Searching unit, for searching at least one destination server to be updated from the server list;
File transmission unit is updated, at least one destination server to be updated described in finding out to the searching unit It sends and updates file, the update file is for being updated stand-by program;
It is updated successfully information receiving unit, is updated successfully feedback information for receive that the destination server sends.
17. a kind of system of data backup, which is characterized in that the system comprises an any one of claim 13 to 16 institutes The source server stated and the described in any item destination servers of at least one claim 9 to 12, the source server and each Destination server is communicated, and each destination server is communicated with backup server.
CN201510319586.2A 2015-06-11 2015-06-11 Method, source server, destination server and the system of data backup Active CN104899116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510319586.2A CN104899116B (en) 2015-06-11 2015-06-11 Method, source server, destination server and the system of data backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510319586.2A CN104899116B (en) 2015-06-11 2015-06-11 Method, source server, destination server and the system of data backup

Publications (2)

Publication Number Publication Date
CN104899116A CN104899116A (en) 2015-09-09
CN104899116B true CN104899116B (en) 2019-06-04

Family

ID=54031793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510319586.2A Active CN104899116B (en) 2015-06-11 2015-06-11 Method, source server, destination server and the system of data backup

Country Status (1)

Country Link
CN (1) CN104899116B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740102A (en) * 2016-02-02 2016-07-06 北京京东尚科信息技术有限公司 Data backup equipment and method therein
CN105955844A (en) * 2016-04-27 2016-09-21 成都爱可信科技有限公司 Secret-related file backup method of data center
CN107122260A (en) * 2017-04-18 2017-09-01 北京思特奇信息技术股份有限公司 A kind of data back up method and device
CN109561120B (en) * 2017-09-26 2022-03-01 杭州海康威视***技术有限公司 Small file backup method, system and management server
CN108268346B (en) * 2018-02-13 2021-03-30 苏州龙信信息科技有限公司 Data backup method, device, equipment and storage medium
CN108388440A (en) * 2018-04-28 2018-08-10 北京辰森世纪科技股份有限公司 A kind of method that web application systems automatically update
CN108628706B (en) * 2018-05-02 2021-08-17 北京新桥信通科技股份有限公司 Data backup method, device, system and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609814A (en) * 2004-09-14 2005-04-27 中国人民解放军上海警备区司令部指挥自动化工作站 Monitoring operation system for data catastrophic failure-tolerant backup control system
CN1969575A (en) * 2004-06-23 2007-05-23 诺基亚公司 Centrally controlled backup functionality
CN101025741A (en) * 2006-02-17 2007-08-29 鸿富锦精密工业(深圳)有限公司 Database back up system and method
CN101042662A (en) * 2006-03-08 2007-09-26 国际商业机器公司 System and method for managing data backup in distributed application environment
CN101834904A (en) * 2010-05-14 2010-09-15 杭州华三通信技术有限公司 Method and equipment for database backup
CN102012789A (en) * 2009-09-07 2011-04-13 云端容灾有限公司 Centralized management type backup and disaster recovery system
CN102236588A (en) * 2010-04-23 2011-11-09 阿里巴巴集团控股有限公司 Remote data backup method, equipment and system
CN103425551A (en) * 2013-07-31 2013-12-04 清华大学 Database concentrated backup method
CN103488546A (en) * 2013-01-29 2014-01-01 中国人民解放军理工大学 Backup and recovery method capable of supporting online concurrency of multi-level data and database
CN103973487A (en) * 2014-04-29 2014-08-06 上海上讯信息技术股份有限公司 Configuration backup system based on interactive scripts and configuration management method
CN104090828A (en) * 2014-07-24 2014-10-08 浪潮(北京)电子信息产业有限公司 Real-time data backup method and system
CN104239164A (en) * 2013-06-19 2014-12-24 国家电网公司 Cloud storage based disaster recovery backup switching system
CN104391762A (en) * 2014-12-06 2015-03-04 北京银信长远科技股份有限公司 Backup method for realizing multi-machine multi-application with one machine
CN104516794A (en) * 2014-12-12 2015-04-15 国家电网公司 Database document backup method, device and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1969575A (en) * 2004-06-23 2007-05-23 诺基亚公司 Centrally controlled backup functionality
CN1609814A (en) * 2004-09-14 2005-04-27 中国人民解放军上海警备区司令部指挥自动化工作站 Monitoring operation system for data catastrophic failure-tolerant backup control system
CN101025741A (en) * 2006-02-17 2007-08-29 鸿富锦精密工业(深圳)有限公司 Database back up system and method
CN101042662A (en) * 2006-03-08 2007-09-26 国际商业机器公司 System and method for managing data backup in distributed application environment
CN102012789A (en) * 2009-09-07 2011-04-13 云端容灾有限公司 Centralized management type backup and disaster recovery system
CN102236588A (en) * 2010-04-23 2011-11-09 阿里巴巴集团控股有限公司 Remote data backup method, equipment and system
CN101834904A (en) * 2010-05-14 2010-09-15 杭州华三通信技术有限公司 Method and equipment for database backup
CN103488546A (en) * 2013-01-29 2014-01-01 中国人民解放军理工大学 Backup and recovery method capable of supporting online concurrency of multi-level data and database
CN104239164A (en) * 2013-06-19 2014-12-24 国家电网公司 Cloud storage based disaster recovery backup switching system
CN103425551A (en) * 2013-07-31 2013-12-04 清华大学 Database concentrated backup method
CN103973487A (en) * 2014-04-29 2014-08-06 上海上讯信息技术股份有限公司 Configuration backup system based on interactive scripts and configuration management method
CN104090828A (en) * 2014-07-24 2014-10-08 浪潮(北京)电子信息产业有限公司 Real-time data backup method and system
CN104391762A (en) * 2014-12-06 2015-03-04 北京银信长远科技股份有限公司 Backup method for realizing multi-machine multi-application with one machine
CN104516794A (en) * 2014-12-12 2015-04-15 国家电网公司 Database document backup method, device and system

Also Published As

Publication number Publication date
CN104899116A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104899116B (en) Method, source server, destination server and the system of data backup
CN101416175B (en) Creating templates of offline resources
US8464219B1 (en) Scalable control system for test execution and monitoring utilizing multiple processors
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
US20090210925A1 (en) Authentication control apparatus and authentication control method
CN102710436A (en) Network equipment management method, device, relative equipment and system
CN105072398B (en) A kind of device updating method and device
CN102360299B (en) Software system resetting method, server and client
CN111026581A (en) Application program repairing method, device, system, storage medium and electronic device
WO2021169124A1 (en) Method and apparatus for installing software package to target host, and computer device
CN110286921A (en) A kind of distributed big data platform CDH method of automation installation
CN105045640A (en) Software upgrading method and device and intelligent equipment
CN103997684A (en) Method and device for updating operating system
EP3238051A1 (en) Updating software packets in water installation controlling apparatus
CN115202680A (en) System and method for automatically upgrading local client on line in remote manner
CN107766063A (en) A kind of method and system of batch upgrade software
CN107623581A (en) Service list generation method, apparatus and system, acquisition, report method and device
CN116149713B (en) Program upgrading method and device for all-level equipment under tree-type heterogeneous network
CN102158480A (en) Method, system and device for controlling system service recovery
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
CN105824622A (en) Data processing method and electronic equipment
CN114443295A (en) Heterogeneous cloud resource management scheduling method, device and system
US11411829B1 (en) Provisioning managed network nodes and/or managing network nodes
CN111966364A (en) Weblogic automatic environment building method and system based on docker

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant