CN107463464A - The method and device of automatically backup data file - Google Patents
The method and device of automatically backup data file Download PDFInfo
- Publication number
- CN107463464A CN107463464A CN201710596386.0A CN201710596386A CN107463464A CN 107463464 A CN107463464 A CN 107463464A CN 201710596386 A CN201710596386 A CN 201710596386A CN 107463464 A CN107463464 A CN 107463464A
- Authority
- CN
- China
- Prior art keywords
- backup
- server
- data file
- ftp server
- ftp
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/80—Database-specific techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and device of automatically backup data file, method includes:Ftp server is installed in the machine for needing to back up, MD5 softwares are installed in ftp server and backup server;MD5 softwares in ftp server carry out MD5 detections to each data file, and detection date and MD5 detected values are stored in Shared Folders;Backup server timing sends backup request to ftp server;Ftp server is automatically downloaded to data file in backup server;MD5 softwares in backup server carry out MD5 detections to the file backed up, obtained MD5 detected values are contrasted and judged whether identical with the MD5 detected values in Shared Folders, in this way, it is believed that back up successfully, backup server is reported as addressee by way of short message or mail;Otherwise it is assumed that backup failure, automatic detection network simultaneously passes through rear return in network.The present invention without it is online it is on duty, cost of labor can be reduced.
Description
Technical field
The present invention relates to data backup field, more particularly to a kind of method and device of automatically backup data file.
Background technology
With harm of the virus to data is extorted, computer data is especially important for enterprises and individuals, so backup number
It is an extremely important thing according to file, existing Backup Data method is, it is necessary to Attended mode, and complex steps;It is if standby
Part data are particularly bigger data to strange land computer room or server, it may be necessary to the time of several hours, if allowing one
Personal computer room the inside etc. of observing for a long time is relatively time-consuming and manpower, it will causes cost of labor higher.
The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, there is provided a kind of without being worth online
Keep, can reduce cost of labor automatically backup data file method and device.
The technical solution adopted for the present invention to solve the technical problems is:Construct a kind of side of automatically backup data file
Method, comprise the following steps:
A ftp server) is installed in the machine for needing to back up, and in the backup server in the ftp server and strange land
It is middle that MD5 softwares are installed respectively;
B) the MD5 softwares in the ftp server carry out MD5 respectively to each data file in the ftp server
Detection, and the MD5 detected values for detecting the date and obtaining are stored in the Shared Folders in the ftp server;
C) the task scheduling timing that the backup server is carried using windows is sent to the ftp server backs up
Request;
D after) ftp server receives the backup request, data transfer is proceeded by, the ftp server
Data file is automatically downloaded in the backup server;
E after) backing up, MD5 softwares in the backup server are to the data that have been backed up in the backup server
File carries out MD5 detections, and currently available MD5 detected values and the MD5 detected values in the Shared Folders are contrasted
And judge whether it is identical, in this way, perform step F);Otherwise, step G is performed);
F) think to back up successfully, the backup server is reported as addressee by way of short message or mail;
G backup failure) is thought, automatic detection network simultaneously passes through rear return to step C in network).
In the method for automatically backup data file of the present invention, described the machine is database server.
In the method for automatically backup data file of the present invention, the data file is ftp file.
The invention further relates to a kind of device for the method for realizing above-mentioned automatically backup data file, including:
Installation unit:For installing ftp server in the machine for needing to back up, and in the ftp server and strange land
Backup server in MD5 softwares are installed respectively;
MD5 detection units:For making the MD5 softwares in the ftp server to each data in the ftp server
File carries out MD5 detections respectively, and the MD5 detected values for detecting the date and obtaining are stored in into sharing in the ftp server
In file;
Backup request transmitting element:For make the task scheduling timing that the backup server is carried using windows to
The ftp server sends backup request;
Data transmission unit:After the ftp server is received the backup request, data transfer is proceeded by,
The data file of the ftp server is automatically downloaded in the backup server;
Contrast judging unit:For after backup, the MD5 softwares in the backup server to be to the backup services
The data file backed up in device carries out MD5 detections, and by currently available MD5 detected values and the Shared Folders
MD5 detected values are contrasted and judged whether identical;
Back up successfully unit:For thinking to back up successfully, the backup server is reported by way of short message or mail
For addressee;
Backup failure unit:For thinking backup failure, automatic detection network simultaneously returns to the backup in network by rear
Request transmitting unit.
In device of the present invention, described the machine is database server.
In device of the present invention, the data file is ftp file.
Implement the method and device of the automatically backup data file of the present invention, have the advantages that:Due to needing
Ftp server is installed in the machine of backup, and MD5 softwares are installed respectively in the backup server in ftp server and strange land, it is different
The task scheduling timing that the backup server on ground is carried using windows sends backup request, and ftp server receives backup request
After proceed by data transfer, the data file of ftp server is automatically downloaded in backup server, backed up after backing up successfully
Server carries out MD5 cores inspection file, is reported after the match is successful with regard to short message or mail to addressee, unsuccessful with regard to automatic detection net
Network, network back up again after, and untill success, it uses full automatic mode, thus without it is online it is on duty, can reduce
Cost of labor.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 be automatically backup data file of the present invention method and device one embodiment in method flow chart;
Fig. 2 is the structural representation of device in the embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
In the method and device embodiment of automatically backup data file of the present invention, the method for its automatically backup data file
Flow chart it is as shown in Figure 1.In Fig. 1, the method for the automatically backup data file comprises the following steps:
Step S01 installs ftp server in the machine for needing to back up, and in the backup services in ftp server and strange land
MD5 softwares are installed respectively in device:In this step, ftp server is installed on the machine for backing up is needed, and in ftp server and
MD5 softwares are installed respectively in the backup server in strange land.It is noted that the machine can be database server.
MD5 softwares in step S02FTP servers carry out MD5 inspections respectively to each data file in ftp server
Survey, and the MD5 detected values for detecting the date and obtaining are stored in the Shared Folders in ftp server:In this step, FTP
MD5 softwares in server carry out MD5 detections to each data file in ftp server respectively, and will detect the date and obtain
To MD5 detected values be stored in the Shared Folders in ftp server.Specifically, the MD5 softwares in ftp server are every
It can all carry out MD5 detections to each data file in ftp server, and will detection date and corresponding each data file
MD5 detected values be stored in the Shared Folders in ftp server.It is noted that above-mentioned data file is FTP texts
Part.
The task scheduling timing that step S03 backup servers are carried using windows sends backup to ftp server please
Ask:In this step, the task scheduling timing that backup server is carried using windows sends backup request to ftp server.
After step S04FTP servers receive backup request, data transfer is proceeded by, the data file of ftp server
It is automatically downloaded in backup server:After ftp server receives backup request, data transfer is proceeded by, and ftp server
Data file be automatically downloaded in backup server.
After step S05 is backed up, MD5 softwares in backup server are to the data file that has been backed up in backup server
Carry out MD5 detections, and currently available MD5 detected values are contrasted with the MD5 detected values in Shared Folders and judge be
It is no identical:In this step, after backup, the MD5 softwares in backup server are literary to the data backed up in backup server
Part carries out MD5 detections, and the MD5 detected values in Shared Folders in currently available MD5 detected values and ftp server are carried out
Contrast, and judge whether both identical, if it is determined that result be yes, then execution step S07;Otherwise, step S06 is performed.
Step S06 thinks backup failure, and automatic detection network simultaneously passes through rear in network:If above-mentioned steps S05 judgement
As a result it is no, then performs this step.In this step, it is believed that backup failure, automatic detection network are simultaneously walked in network by rear return
Rapid S03, that is to say, that if backup is unsuccessful, automatic detection network, and backed up again after in network, until being successfully
Only.
Step S07 thinks to back up successfully, and backup server is reported as addressee by way of short message or mail:On if
The judged result for stating step S05 is yes, then performs this step.In this step, it is believed that back up successfully, backup server passes through short message
Or the mode of mail is reported as addressee.The method of the automatically backup data file of the present invention without it is online it is on duty, people can be reduced
Work cost.
The present embodiment further relates to a kind of device for the method for realizing above-mentioned automatically backup data file, and its structural representation is such as
Shown in Fig. 2.In Fig. 2, the device includes installation unit 1, MD5 detection units 2, backup request transmitting element 3, data transmission unit
4th, contrast judging unit 5, back up successfully unit 6 and backup failure unit 7;Wherein, installation unit 1 is used for the sheet backed up in needs
Ftp server is installed on machine, and MD5 softwares are installed respectively in the backup server in ftp server and strange land;It is worth mentioning
It is that the machine can be database server.MD5 detection units 2 are used to make the MD5 softwares in ftp server in ftp server
Each data file carry out MD5 detections respectively, and the MD5 detected values for detecting the date and obtaining are stored in ftp server
Shared Folders in;Above-mentioned data file is ftp file.
The task scheduling timing that backup request transmitting element 3 is used to make backup server carry using windows takes to FTP
Business device sends backup request;Data transmission unit 4 is used for after ftp server is received backup request, proceeds by data transfer,
The data file of ftp server is automatically downloaded in backup server;Judging unit 5 is contrasted to be used for after backup, it is standby
MD5 softwares in part server carry out MD5 detections to the data file backed up in backup server, and will be currently available
MD5 detected values are contrasted and judged whether identical with the MD5 detected values in Shared Folders;Successfully unit 6 is backed up to be used to recognize
To back up successfully, backup server is reported as addressee by way of short message or mail;Backup failure unit 7 is used to think standby
Part failure, automatic detection network simultaneously pass through rear return backup request transmitting element 3 in network.The device of the present invention without being worth online
Keep, cost of labor can be reduced.
In a word, the present invention is by the way of automatically backing up, without online on duty.MD5 data cores are carried out after backing up successfully
To detection, the uniformity of data file can be ensured, mail or short message can be sent out after checking successfully automatically to addressee, allows user
Trust, unsuccessful meeting automatic detection network is checked, when network smoothness can just back up.It can substantially reduce cost of labor.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God any modification, equivalent substitution and improvements made etc., should be included in the scope of the protection with principle.
Claims (6)
- A kind of 1. method of automatically backup data file, it is characterised in that comprise the following steps:A) ftp server is installed in the machine for needing to back up, and divided in the backup server in the ftp server and strange land An Zhuan not MD5 softwares;B) the MD5 softwares in the ftp server carry out MD5 detections respectively to each data file in the ftp server, And the MD5 detected values for detecting the date and obtaining are stored in the Shared Folders in the ftp server;C) the task scheduling timing that the backup server is carried using windows sends backup request to the ftp server;D after) ftp server receives the backup request, data transfer is proceeded by, the data of the ftp server File is automatically downloaded in the backup server;E after) backing up, MD5 softwares in the backup server are to the data file that has been backed up in the backup server MD5 detections are carried out, and currently available MD5 detected values are contrasted and sentenced with the MD5 detected values in the Shared Folders It is disconnected whether identical, in this way, perform step F);Otherwise, step G is performed);F) think to back up successfully, the backup server is reported as addressee by way of short message or mail;G backup failure) is thought, automatic detection network simultaneously passes through rear return to step C in network).
- 2. the method for automatically backup data file according to claim 1, it is characterised in that described the machine takes for database Business device.
- 3. the method for automatically backup data file according to claim 1 or 2, it is characterised in that the data file is Ftp file.
- A kind of 4. device for the method for realizing automatically backup data file as claimed in claim 1, it is characterised in that including:Installation unit:For installing ftp server on the machine for backing up is needed, and in the standby of the ftp server and strange land MD5 softwares are installed respectively in part server;MD5 detection units:For making the MD5 softwares in the ftp server to each data file in the ftp server MD5 detections are carried out respectively, and the MD5 detected values for detecting the date and obtaining are stored in the shared file in the ftp server In folder;Backup request transmitting element:For making the task scheduling that the backup server is carried using windows regularly to described Ftp server sends backup request;Data transmission unit:After the ftp server is received the backup request, data transfer is proceeded by, institute The data file for stating ftp server is automatically downloaded in the backup server;Contrast judging unit:For after backup, the MD5 softwares in the backup server to be in the backup server The data file backed up carries out MD5 detections, and the MD5 in currently available MD5 detected values and the Shared Folders is examined Measured value is contrasted and judged whether identical;Back up successfully unit:For thinking to back up successfully, the backup server is reported as receiving by way of short message or mail Part people;Backup failure unit:For thinking backup failure, automatic detection network simultaneously returns to the backup request in network by rear Transmitting element.
- 5. the device of the method according to claim 4 for realizing automatically backup data file as claimed in claim 1, its It is characterised by, described the machine is database server.
- 6. the dress of the method for realizing automatically backup data file as claimed in claim 1 according to claim 4 or 5 Put, it is characterised in that the data file is ftp file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710596386.0A CN107463464A (en) | 2017-07-20 | 2017-07-20 | The method and device of automatically backup data file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710596386.0A CN107463464A (en) | 2017-07-20 | 2017-07-20 | The method and device of automatically backup data file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107463464A true CN107463464A (en) | 2017-12-12 |
Family
ID=60546854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710596386.0A Pending CN107463464A (en) | 2017-07-20 | 2017-07-20 | The method and device of automatically backup data file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463464A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108280238A (en) * | 2018-03-02 | 2018-07-13 | 于刚 | Computer shared file emergency backup method |
CN109324928A (en) * | 2018-09-13 | 2019-02-12 | 中通国脉物联科技南京有限公司 | A kind of method of automatically backup data file |
CN109583209A (en) * | 2018-12-13 | 2019-04-05 | 许昌学院 | It is a kind of for defending to extort the computer security protection system and method for virus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040260927A1 (en) * | 2003-06-20 | 2004-12-23 | Grobman Steven L. | Remote data storage validation |
CN1863050A (en) * | 2005-09-15 | 2006-11-15 | 上海华为技术有限公司 | Method of document synchronization between server and system thereof |
CN103064757A (en) * | 2012-12-12 | 2013-04-24 | 鸿富锦精密工业(深圳)有限公司 | Method and system for backing up data |
CN103870363A (en) * | 2014-03-28 | 2014-06-18 | 国家电网公司 | Database data remote backup method |
CN104516794A (en) * | 2014-12-12 | 2015-04-15 | 国家电网公司 | Database document backup method, device and system |
CN104965771A (en) * | 2015-07-29 | 2015-10-07 | 浪潮(北京)电子信息产业有限公司 | Method and system for verifying remote disaster recovery data consistency |
-
2017
- 2017-07-20 CN CN201710596386.0A patent/CN107463464A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040260927A1 (en) * | 2003-06-20 | 2004-12-23 | Grobman Steven L. | Remote data storage validation |
CN1863050A (en) * | 2005-09-15 | 2006-11-15 | 上海华为技术有限公司 | Method of document synchronization between server and system thereof |
CN103064757A (en) * | 2012-12-12 | 2013-04-24 | 鸿富锦精密工业(深圳)有限公司 | Method and system for backing up data |
CN103870363A (en) * | 2014-03-28 | 2014-06-18 | 国家电网公司 | Database data remote backup method |
CN104516794A (en) * | 2014-12-12 | 2015-04-15 | 国家电网公司 | Database document backup method, device and system |
CN104965771A (en) * | 2015-07-29 | 2015-10-07 | 浪潮(北京)电子信息产业有限公司 | Method and system for verifying remote disaster recovery data consistency |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108280238A (en) * | 2018-03-02 | 2018-07-13 | 于刚 | Computer shared file emergency backup method |
CN109324928A (en) * | 2018-09-13 | 2019-02-12 | 中通国脉物联科技南京有限公司 | A kind of method of automatically backup data file |
CN109583209A (en) * | 2018-12-13 | 2019-04-05 | 许昌学院 | It is a kind of for defending to extort the computer security protection system and method for virus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107463464A (en) | The method and device of automatically backup data file | |
US20170235559A1 (en) | System and methods for management of cloud application extensions | |
WO2014179352A1 (en) | Method and system for platform-independent application development | |
CN104317607B (en) | A kind of enterprise In-house IOS APP automatic updating systems and method | |
US20060242296A1 (en) | Method of adding new users to a web based portal server | |
CN110445688A (en) | Interface service function monitoring method and system based on data collection | |
CN102436402B (en) | Module repairing method in software and software equipment | |
US20140337077A1 (en) | Task assignment and verification system and method | |
CN102821137A (en) | Website safety detection method and website safety detection system | |
US20100106784A1 (en) | Electronic device with automatic software update function and method thereof | |
CN105787709A (en) | Method of synchronizing multiple system accounts | |
US11140144B2 (en) | IoT data collection system, IoT data collection method, management device, management program, agent device, and agent program | |
CN102483733A (en) | Synchronizing User And Machine Data During Tracking Of Products On A User Computer | |
CN108268272A (en) | Patch update method and device based on WSUS | |
CN106095680A (en) | Verification disk out-of-order automatic test method applied to Linux | |
CN109120432A (en) | A kind of failed server localization method and device | |
CN106302712A (en) | Process the method and device of web data | |
CN111831304A (en) | Version upgrading method and device, electronic equipment and storage medium | |
CN115390861A (en) | Resource deployment method, device and equipment and storage medium | |
CN107463465A (en) | The method and device of remote backup database | |
CN116010254A (en) | Performance detection method and system in system research and development stage | |
CN105894202A (en) | Work order processing method and work order processing device | |
CN108322912B (en) | Method and device for distinguishing short messages | |
CN114185590A (en) | Application system operation and maintenance configuration management method and device | |
CN103761169A (en) | Hot backup method and device of petroleum geology software database |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |