CN107657002A - File synchronisation method and device - Google Patents
File synchronisation method and device Download PDFInfo
- Publication number
- CN107657002A CN107657002A CN201710857941.0A CN201710857941A CN107657002A CN 107657002 A CN107657002 A CN 107657002A CN 201710857941 A CN201710857941 A CN 201710857941A CN 107657002 A CN107657002 A CN 107657002A
- Authority
- CN
- China
- Prior art keywords
- file
- full dose
- source
- increment
- rollback
- 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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/275—Synchronous replication
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application is included on a kind of file synchronisation method and device, methods described:Start increment process, the increment process includes the disk read-write operation of monitoring source driver;Generation delta file is operated according to the disk read-write;The delta file is sent to destination end, so that the destination end carries out increment synchronization according to the delta file and the source.In file synchronization, source is operated the embodiment of the present application by monitoring the disk read-write of driver, and generation delta file sends destination end to and carries out increment synchronization, the real-time of the delta file obtained based on disk read-write operation, realizes that real real-time files are synchronous.
Description
Technical field
The application is related to file synchronization technical field, more particularly to a kind of file synchronisation method and device.
Background technology
In the important file synchronization application scenarios of some data, therefore, to assure that the security of data is, it is necessary to immediately
The data syn-chronization of Production database is copied to calamity for database, it is ensured that in the situation that Production database is broken down, number will not occur
According to the situation of loss.In traditional file synchronisation method, because increment synchronization and full dose are synchronous by periodically or artificially setting
It is fixed to trigger, it is impossible to accomplish really synchronous in real time.
The content of the invention
To overcome problem present in correlation technique, the application provides a kind of file synchronisation method and device, realizes real-time
File synchronization.
According to the first aspect of the embodiment of the present application, there is provided a kind of file synchronisation method, including:
Start increment process, the increment process includes the disk read-write operation of monitoring source driver;
Generation delta file is operated according to the disk read-write;
The delta file is sent to destination end, so that the destination end is entered according to the delta file and the source
Row increment synchronization.
In a kind of possible implementation, after the step of starting increment process, transmitted by the delta file
The step of destination end before, methods described also includes:
Start full dose process, the full dose process includes the full synchrodata for obtaining the source;
According to the full synchrodata generation full dose file;
The full dose file is sent to destination end, so that the destination end is entered according to the full dose file with the source
Row full dose is synchronous.
According to the second aspect of the embodiment of the present application, there is provided a kind of file synchronisation method, including:
The delta file that source is sent is received, the increment process that the delta file starts according to the source generates, and
The increment process includes the disk read-write operation of monitoring source driver;
Increment synchronization is carried out according to the delta file.
In a kind of possible implementation, before the delta file that source is sent is received, methods described also includes:
The full dose file that the source is sent is received, the full dose process that the full dose file starts according to source generates, and
The full dose process starts after the increment process;
Before the step of carrying out increment synchronization according to the delta file, methods described also includes:
It is synchronous that full dose is carried out according to the full dose file.
In a kind of possible implementation, the delta file, including:
Operating time and operation content, wherein the operating time include the time of disk read-write operation, in the operation
Appearance includes operating position and operation data;
Methods described also includes,
Timing rollback instruction is obtained, shown rollback instruction includes rollback time;
Rollback file is determined in delta file according to the rollback time and operating time, the behaviour in the rollback file
Make the time earlier than or equal to the rollback time;
Rolling back action is carried out according to the rollback file.
According to the third aspect of the embodiment of the present application, there is provided a kind of file synchronizer, including:
Increment scheduler module, for starting increment process, the increment process includes the disk of monitoring source driver
Read-write operation;
Delta file generation module, for operating generation delta file according to the disk read-write;
Delivery module, for the delta file to be sent into destination end, so that the destination end is according to increment text
Part carries out increment synchronization with the source.
In a kind of possible implementation, in addition to:
Full dose scheduler module, for starting full dose process, the full dose process includes the complete same step number for obtaining the source
According to;
Full dose file generating module, for according to the full synchrodata generation full dose file;
The delivery module, it is additionally operable to send the full dose file to destination end, so that the destination end is according to
Full dose file is synchronous with source progress full dose.
According to the fourth aspect of the embodiment of the present application, there is provided a kind of file synchronizer, including:
Receiving module, for receiving the delta file of source transmission, the increasing that the delta file starts according to the source
Amount process generates, and the increment process includes the disk read-write operation of monitoring source driver;
Increment synchronization module, for carrying out increment synchronization according to the delta file.
In a kind of possible implementation, the receiving module, it is additionally operable to receive the full dose file that the source is sent,
The full dose process that the full dose file starts according to source generates, and the full dose process starts after the increment process;
Described device also includes:
Full dose synchronization module, it is synchronous for carrying out full dose according to the full dose file.
In a kind of possible implementation, the delta file, including:
Operating time and operation content, wherein the operating time include the time of disk read-write operation, in the operation
Appearance includes operating position and operation data;
Described device also includes,
The receiving module, it is additionally operable to obtain timing rollback instruction, shown rollback instruction includes rollback time;
Rollback file determining module, for determining rollback text in delta file according to the rollback time and operating time
Part, operating time in the rollback file is earlier than or equal to the rollback time;
Roll-back module, for carrying out rolling back action according to the rollback file.
According to the 5th of the embodiment of the present application the aspect, there is provided a kind of file synchronizer, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the step of processor is configured as performing the method described in the embodiment of the present application.
According to the 6th of the embodiment of the present application the aspect, there is provided a kind of non-volatile computer readable storage medium storing program for executing, deposit thereon
Computer program instructions are contained, the computer program instructions realize the side described in the embodiment of the present application when being executed by processor
Method.
The technical scheme that embodiments herein provides can include the following benefits, when file synchronizes, source
End is operated by monitoring the disk read-write of driver, and generation delta file sends destination end to and carries out increment synchronization, based on magnetic
The real-time for the delta file that disk read-write operation obtains, realizes real file real-time synchronization.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The application can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the application
Example, and be used to together with specification to explain the principle of the application.
Fig. 1 is a kind of flow chart of file synchronisation method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of file synchronisation method according to another exemplary embodiment.
Fig. 3 is a kind of flow chart of file synchronisation method according to another exemplary embodiment.
Fig. 4 is a kind of flow chart of file synchronisation method according to another exemplary embodiment.
Fig. 5 is a kind of flow chart of file rollback method according to another exemplary embodiment.
Fig. 6 is a kind of block diagram of file synchronizer according to another exemplary embodiment.
Fig. 7 is a kind of block diagram of file synchronizer according to another exemplary embodiment.
Fig. 8 is a kind of block diagram of file synchronizer according to another exemplary embodiment.
Fig. 9 is a kind of block diagram of file synchronizer according to another exemplary embodiment.
Figure 10 is a kind of block diagram of file synchronizer according to another exemplary embodiment.
Figure 11 is a kind of block diagram for file synchronizer according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
Fig. 1 is a kind of flow chart of file synchronisation method according to an exemplary embodiment, as shown in figure 1, this article
Part synchronous method includes:
Step S100, starts increment process, and the increment process includes the disk read-write operation of monitoring source driver.
In this application, source includes hardware device, such as needs to carry out database server of data syn-chronization etc..Increment
Process can be arranged in source, can also be arranged at independently of in the equipment outside the source.The increment process is to use
In the basic execution entity for the program for obtaining incremental data.
In this application, driver is device driver, such as the interface of various hardware.Operating system passes through driving
Program could control the work of hardware device.Driver is used for, by the function teaching process system of hardware itself, completing hardware
Equipment electronic signal and the mutual translation before the high-level programming language of operating system and software.The disk read-write operates (I/O
Operation) refer to operation on ancillary equipment and the CPU of source interface circuit, it is not the operation of progress direct to ancillary equipment,
But the operation that the interface circuit being connected to ancillary equipment with source CPU is carried out.The CPU of source is the core of computing and control,
It is not related to data storage.Therefore, operated by monitoring the disk read-write of driver in source, source can be got in real time
All incremental datas at end.Also, while the incremental data is obtained, the operating time of I/O operation can be recorded, is used
In the real-time operating time of recording increment data.
Step S200, generation delta file is operated according to the disk read-write.
In a kind of possible implementation, the disk read-write operation includes the various operations for various files.Example
Such as, disk read-write operation include ordinary file establishment, ordinary file deletion, ordinary file renaming, change ordinary file content,
Change ordinary file authority, change ordinary file master etc..For another example, disk read-write operation includes catalogue file establishment, catalogue text
Part deletion, catalogue file renaming, change catalogue file content, the catalogue file authority that changes, change catalogue file master etc..Magnetic
Disk read-write operation also includes the various operations to alternative document.
Operated according to disk read-write, destination is sent to after generating delta file according to the incremental data of acquisition.
The form of the delta file includes binary format, (Extensible Markup Language, can expand XML
Open up markup language) form or other general forms.
The generation of the delta file includes operating generation, in addition to according to default in real time according to the disk read-write
Generate the generation of cycle.
Step S300, the delta file is sent to destination end so that the destination end according to the delta file with
The source carries out increment synchronization.
In a kind of possible implementation, the destination end includes the hardware device of destination end, such as target database
The hardware device at place, the target database are used for the database in synchronous source.
The transmission mode of the delta file, including TCP/IP (Transmission Control Protocol/
Internet Protocol, transmission control protocol/Internet Protocol) agreement transmission, HTTP (HyperText
Transfer Protocol, HTTP) transmit, UDP (User Datagram Protocol, User Datagram Protocol
View) transmission etc. various transmission modes.
The transmission of the delta file transmits in real time after including generation in real time, also includes periodically passing after periodically generating
Send, flexibly set according to the demand of synchronization.
In file synchronization, source is operated the present embodiment by monitoring the disk read-write of driver, generates delta file
Send destination end to and carry out increment synchronization, the real-time of the delta file obtained based on disk read-write operation, realize really real
When file synchronization.
Fig. 2 is a kind of flow chart of file synchronisation method according to an exemplary embodiment, as shown in Fig. 2 this article
Part synchronous method includes:
Step S100, starts increment process, and the increment process includes the disk read-write operation of monitoring source driver.
Step S110, starts full dose process, and the full dose process includes the full synchrodata for obtaining the source.
In a kind of possible implementation, the full dose process, including be arranged in source, or be arranged on independently of institute
State in the equipment outside source.
The full dose process refers to the basic execution entity of the program for obtaining full synchrodata.
The acquisition modes of the full synchrodata of the source, including periodically obtain and obtained with instruction triggers.
It is understood that increment process and full dose process, can simultaneously be arranged in multiple servers, complete multiple services
File real-time synchronization between device.
In the present embodiment, restart full dose process after increment process is started, complete same step number is obtained in full dose process
During, when having completed all synchro partial data and generating incremental data again, increment process can get this portion
Divide incremental data.
Step S200, generation delta file is operated according to the disk read-write.
Step S210, according to the full synchrodata generation full dose file.
The file format of the full dose file, including the general format such as binary format, XML format.
It is understood that the tandem between step S200 and step S210 according to the acquisition situation of incremental data and
It is fixed.After the completion of if full synchrodata obtains, any incremental data is not produced, then Mr. is literary into generation increment after full dose file
Part.If having generated incremental data in the acquisition process of full synchrodata, full dose is generated after can first generating delta file
File.
Step S310, the full dose file is sent to destination end so that the destination end according to the full dose file with
It is synchronous that the source carries out full dose.
In a kind of possible implementation, by the transmission mode of the full dose file, including ICP/IP protocol transmission,
The various transmission modes such as HTTP transmission, UDP transmission.
Step 300, the delta file is sent to destination end, so that the destination end is according to the delta file and institute
State source and carry out increment synchronization.
In a kind of possible implementation, because the genesis sequence of delta file and full dose file is not known, therefore entirely
The transmission order of amount file and delta file is not known yet.The delta file of generation can be transmitted in real time, also can be in full dose file
Unify transmission delta file after the completion of transmission again.
In the present embodiment, source starts full dose process after first starting increment process, by the full dose file and increment of generation
File sends destination end to, so that destination end performs full dose synchronization and increment synchronization.Due to first starting increment process, avoid
When first starting full dose process, the situation that caused incremental data during full synchrodata can not be acquired is obtained, in reality
When synchronization on the basis of, realize complete data syn-chronization.
Fig. 3 is a kind of flow chart of file synchronisation method according to an exemplary embodiment, as shown in Fig. 2 this article
Part synchronous method includes:
Step S10, receive the delta file that source is sent, the increment process that the delta file starts according to the source
Generation, and the increment process includes the disk read-write operation of monitoring source driver.
In a kind of possible implementation, the destination end, include the hardware device of destination end, such as be used to enter source
Database server of row data syn-chronization etc..
The form of the delta file includes the general formats such as binary format, XML format.
The transmission mode of the delta file includes TCP/IP modes, UDP modes, HTTP modes etc..
Because the delta file is that source operates acquisition, disk read-write behaviour by monitoring the disk read-write of driver
The operating time of work easily can be recorded in real time.
The transmission mode of the delta file includes transmission in real time and periodically transmission.When the delta file is real-time
During transmission, after destination end receives the delta file transmitted in real time, real-time increment synchronization can be carried out.When the delta file
During periodically to transmit, according to the operating time of the disk read-write operation recorded in the delta file, rollback can carried out
When, carry out rolling back action according to accurate rollback time.
Step S20, increment synchronization is carried out according to the delta file.
In the present embodiment, delta file is that source operates generation by monitoring the disk read-write of driver, described
Delta file can obtain incremental data in real time, therefore destination end can realize real-time increment synchronization according to delta file.
Fig. 4 is a kind of flow chart of file synchronisation method according to an exemplary embodiment, as shown in figure 4, this article
Part synchronous method includes:
Step S8, receive the full dose file that the source is sent, the full dose process that the full dose file starts according to source
Generation, and the full dose process starts after the increment process.
In a kind of possible implementation, source restarts full dose process after first starting increment process, can avoid elder generation
When starting increment process after startup full dose process, in the acquisition process for the full synchrodata having been started up, full synchronization has been completed
Partial data produce incremental data, and increment process can not get the situation of this Partial Incremental data in time.
Step S9, it is synchronous that full dose is carried out according to the full dose file.
Step S10, receive the delta file that source is sent, the increment process that the delta file starts according to the source
Generation, and the increment process includes the disk read-write operation of monitoring source driver.
In a kind of possible implementation, the tandem of the step S9 and step S10 do not limit, and can receive
After measuring file completely and completing full dose synchronization, the delta file that source is sent is received, then carry out increment synchronization;Can also be in full dose
Start to receive delta file after the completion of file reception, start simultaneously at and perform full dose synchronization.
Step S20, increment synchronization is carried out according to the delta file.
In a kind of possible implementation, destination end is entered after full dose synchronization is completed further according to the delta file received
Row increment synchronization, because the startup of increment process is before the startup of full dose process, therefore completing the synchronous basis of full dose
On the increment synchronization that carries out again, it is ensured that the accuracy of data syn-chronization.
In the present embodiment, destination end carries out increment synchronization again after full dose synchronization is completed, and the increment process of source opens
Move before the startup of full dose process, therefore destination end can complete complete data syn-chronization, ensure the accuracy of data syn-chronization.
Fig. 5 is a kind of flow chart of file rollback method according to an exemplary embodiment, as shown in figure 5, upper
On the basis of stating embodiment, the rollback method includes:
Step S30, obtains timing rollback instruction, and shown rollback instruction includes rollback time.
In a kind of possible implementation, the operation of the state at a certain moment before rollback refers to restore data to.
Rollback time include before random time, including according in delta file incremental data operating time determine,
Also the time being arbitrarily designated is included.
Step S40, rollback file, the rollback text are determined in delta file according to the rollback time and operating time
Operating time in part is earlier than or equal to the rollback time.
In a kind of possible implementation, according to the rollback time, incremental number is searched in the delta file of storage
According to operating time earlier than the rollback time delta file.
Step S50, rolling back action is carried out according to the rollback file.
In the present embodiment, because delta file is that source operates generation by monitoring the disk read-write of driver,
The generation time of incremental data can be obtained in real time, therefore more accurate rolling back action can be carried out according to delta file.
The data of rollback are also more accurate.
Fig. 6 is a kind of block diagram of file synchronizer according to an exemplary embodiment, as shown in fig. 6, the text
Part sychronisation includes:
Increment scheduler module 100, for starting increment process, the increment process includes the magnetic of monitoring source driver
Disk read-write operation.
Delta file generation module 200, for operating generation delta file according to the disk read-write.
Delivery module 300, for the delta file to be sent into destination end, so that the destination end is according to the increment
File carries out increment synchronization with the source.
In file synchronization, source is operated the present embodiment by monitoring the disk read-write of driver, generates delta file
Send destination end to and carry out increment synchronization, based on the real-time of disk read-write operation, realize that real real-time files are synchronous.
Fig. 7 is a kind of block diagram of file synchronizer according to an exemplary embodiment, as shown in fig. 7, in such as Fig. 6
On the basis of shown embodiment, the file synchronizer also includes:
Full dose scheduler module 400, for starting full dose process, the full dose process includes obtaining the full synchronization of the source
Data.
Full dose file generating module 500, for according to the full synchrodata generation full dose file.
The delivery module 300, it is additionally operable to send the full dose file to destination end, so that the destination end is according to institute
It is synchronous with source progress full dose to state full dose file.
In the present embodiment, source starts full dose process after first starting increment process, by the full dose file and increment of generation
File sends destination end to, so that destination end performs full dose synchronization and increment synchronization.Due to first starting increment process, avoid
When first starting full dose process, the situation that caused incremental data during full synchrodata can not be acquired is obtained, in reality
When synchronization on the basis of, realize complete data syn-chronization.
Fig. 8 is a kind of block diagram of file synchronizer according to an exemplary embodiment, as shown in figure 8, the text
Part sychronisation includes:
Receiving module 10, for receiving the delta file of source transmission, the delta file starts according to the source
Increment process generates, and the increment process includes the disk read-write operation of monitoring source driver.
Increment synchronization module 20, for carrying out increment synchronization according to the delta file.
In the present embodiment, delta file is that source operates generation by monitoring the disk read-write of driver, described
Delta file can obtain incremental data in real time, therefore destination end can realize real-time increment synchronization according to delta file.
Fig. 9 is a kind of block diagram of file synchronizer according to an exemplary embodiment, as shown in figure 9, in such as Fig. 8
On the basis of shown embodiment, the file synchronizer also includes:
Full dose synchronization module 30, it is synchronous for carrying out full dose according to the full dose file.
The receiving module 10, it is additionally operable to receive the full dose file that the source is sent, the full dose file is according to source
The full dose process generation of startup, and the full dose process starts after the increment process.
In the present embodiment, destination end carries out increment synchronization again after full dose synchronization is completed, and the increment process of source opens
Move before the startup of full dose process, therefore destination end can complete complete data syn-chronization, ensure the accuracy of data syn-chronization.
Figure 10 is a kind of block diagram of file synchronizer according to an exemplary embodiment, as shown in Figure 10, such as
On the basis of embodiment shown in Fig. 8, the file synchronizer also includes:
The delta file, including operating time and operation content, wherein the operating time include disk read-write operation
Time, the operation content includes operating position and operation data.
The receiving module 10, it is additionally operable to obtain timing rollback instruction, shown rollback instruction includes rollback time.
Rollback file determining module 40, for determining rollback in delta file according to the rollback time and operating time
File, operating time in the rollback file is earlier than or equal to the rollback time.
Roll-back module 50, for carrying out rolling back action according to the rollback file.
In the present embodiment, because delta file is that source operates generation by monitoring the disk read-write of driver,
The generation time of incremental data can be obtained in real time, therefore more accurate rolling back action can be carried out according to delta file.
The data of rollback are also more accurate.
Figure 11 is a kind of block diagram for file synchronizer 1900 according to an exemplary embodiment.For example, dress
Put 1900 and may be provided in a server.Reference picture 11, device 1900 include processing component 1922, and it further comprises one
Or multiple processors, and as the memory resource representated by memory 1932, can holding by processing component 1922 for storing
Capable instruction, such as application program.The application program stored in memory 1932 can include one or more each
The individual module for corresponding to one group of instruction.In addition, processing component 1922 is configured as execute instruction, to perform the step in the above method
Suddenly.
Device 1900 can also include a power supply module 1926 and be configured as the power management of performs device 1900, one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network, and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 1932 of instruction, above-mentioned instruction can be performed to complete the above method by the processing component 1922 of device 1900.
For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to the application its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the application, these modifications, purposes or
Person's adaptations follow the general principle of the application and including the undocumented common knowledges in the art of the application
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the application and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the application is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.Scope of the present application is only limited by appended claim.
Claims (12)
- A kind of 1. file synchronisation method, it is characterised in that including:Start increment process, the increment process includes the disk read-write operation of monitoring source driver;Generation delta file is operated according to the disk read-write;The delta file is sent to destination end, so that the destination end is increased according to the delta file and the source Amount is synchronous.
- 2. according to the method for claim 1, it is characterised in that after the step of starting increment process, by the increasing Before the step of amount file is sent to destination end, methods described also includes:Start full dose process, the full dose process includes the full synchrodata for obtaining the source;According to the full synchrodata generation full dose file;The full dose file is sent to destination end, so that the destination end is carried out entirely according to the full dose file and the source Amount is synchronous.
- A kind of 3. file synchronisation method, it is characterised in that including:The delta file that source is sent is received, the increment process that the delta file starts according to the source generates, and described Increment process includes the disk read-write operation of monitoring source driver;Increment synchronization is carried out according to the delta file.
- 4. according to the method for claim 3, it is characterised in that before the delta file that source is sent is received, the side Method also includes:The full dose file that the source is sent is received, the full dose process that the full dose file starts according to source generates, and described Full dose process starts after the increment process;Before the step of carrying out increment synchronization according to the delta file, methods described also includes:It is synchronous that full dose is carried out according to the full dose file.
- 5. the method according to claim 3 or 4, it is characterised in that the delta file, including:Operating time and operation content, wherein the time that the operating time operates including disk read-write, the operation content bag Include operating position and operation data;Methods described also includes,Timing rollback instruction is obtained, shown rollback instruction includes rollback time;Rollback file is determined in delta file according to the rollback time and operating time, during operation in the rollback file Between earlier than or equal to the rollback time;Rolling back action is carried out according to the rollback file.
- A kind of 6. file synchronizer, it is characterised in that including:Increment scheduler module, for starting increment process, the increment process includes the disk read-write of monitoring source driver Operation;Delta file generation module, for operating generation delta file according to the disk read-write;Delivery module, for the delta file to be sent into destination end so that the destination end according to the delta file with The source carries out increment synchronization.
- 7. device according to claim 6, it is characterised in that also include:Full dose scheduler module, for starting full dose process, the full dose process includes the full synchrodata for obtaining the source;Full dose file generating module, for according to the full synchrodata generation full dose file;The delivery module, it is additionally operable to send the full dose file to destination end, so that the destination end is according to the full dose File is synchronous with source progress full dose.
- A kind of 8. file synchronizer, it is characterised in that including:Receiving module, for receiving the delta file of source transmission, the increment that the delta file starts according to the source enters Cheng Shengcheng, and the increment process includes the disk read-write operation of monitoring source driver;Increment synchronization module, for carrying out increment synchronization according to the delta file.
- 9. device according to claim 8, it is characterised in thatThe receiving module, it is additionally operable to receive the full dose file that the source is sent, what the full dose file started according to source Full dose process generates, and the full dose process starts after the increment process;Described device also includes:Full dose synchronization module, it is synchronous for carrying out full dose according to the full dose file.
- 10. device according to claim 8 or claim 9, it is characterised in that the delta file, including:Operating time and operation content, wherein the time that the operating time operates including disk read-write, the operation content bag Include operating position and operation data;Described device also includes,The receiving module, it is additionally operable to obtain timing rollback instruction, shown rollback instruction includes rollback time;Rollback file determining module, for determining rollback file in delta file according to the rollback time and operating time, Operating time in the rollback file is earlier than or equal to the rollback time;Roll-back module, for carrying out rolling back action according to the rollback file.
- A kind of 11. file synchronizer, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:In perform claim requirement 1 to 5 the step of any one methods described.
- 12. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program instructions, it is characterised in that institute State and method any one of claim 1 to 5 is realized when computer program instructions are executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710857941.0A CN107657002A (en) | 2017-09-20 | 2017-09-20 | File synchronisation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710857941.0A CN107657002A (en) | 2017-09-20 | 2017-09-20 | File synchronisation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107657002A true CN107657002A (en) | 2018-02-02 |
Family
ID=61130913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710857941.0A Pending CN107657002A (en) | 2017-09-20 | 2017-09-20 | File synchronisation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107657002A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965383A (en) * | 2018-05-31 | 2018-12-07 | 康键信息技术(深圳)有限公司 | File synchronisation method, device, computer equipment and storage medium |
CN109657006A (en) * | 2018-12-14 | 2019-04-19 | 万翼科技有限公司 | Method of data synchronization, device and computer readable storage medium |
CN109829016A (en) * | 2019-01-25 | 2019-05-31 | 网宿科技股份有限公司 | A kind of method of data synchronization and device |
CN113656511A (en) * | 2021-10-20 | 2021-11-16 | 天津南大通用数据技术股份有限公司 | Heterogeneous database increment synchronization method and system based on source database non-outage |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752372A (en) * | 2012-06-18 | 2012-10-24 | 天津神舟通用数据技术有限公司 | File based database synchronization method |
CN104809202A (en) * | 2015-04-24 | 2015-07-29 | 联动优势科技有限公司 | Database synchronization method and device |
CN106599061A (en) * | 2016-11-16 | 2017-04-26 | 成都九洲电子信息系统股份有限公司 | SQLite-based embedded database synchronization method |
-
2017
- 2017-09-20 CN CN201710857941.0A patent/CN107657002A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752372A (en) * | 2012-06-18 | 2012-10-24 | 天津神舟通用数据技术有限公司 | File based database synchronization method |
CN104809202A (en) * | 2015-04-24 | 2015-07-29 | 联动优势科技有限公司 | Database synchronization method and device |
CN104809202B (en) * | 2015-04-24 | 2019-01-18 | 联动优势科技有限公司 | A kind of method and apparatus of database synchronization |
CN106599061A (en) * | 2016-11-16 | 2017-04-26 | 成都九洲电子信息系统股份有限公司 | SQLite-based embedded database synchronization method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965383A (en) * | 2018-05-31 | 2018-12-07 | 康键信息技术(深圳)有限公司 | File synchronisation method, device, computer equipment and storage medium |
CN108965383B (en) * | 2018-05-31 | 2023-03-24 | 康键信息技术(深圳)有限公司 | File synchronization method and device, computer equipment and storage medium |
CN109657006A (en) * | 2018-12-14 | 2019-04-19 | 万翼科技有限公司 | Method of data synchronization, device and computer readable storage medium |
CN109829016A (en) * | 2019-01-25 | 2019-05-31 | 网宿科技股份有限公司 | A kind of method of data synchronization and device |
CN113656511A (en) * | 2021-10-20 | 2021-11-16 | 天津南大通用数据技术股份有限公司 | Heterogeneous database increment synchronization method and system based on source database non-outage |
CN113656511B (en) * | 2021-10-20 | 2022-02-18 | 天津南大通用数据技术股份有限公司 | Heterogeneous database increment synchronization method and system based on source database non-outage |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107657002A (en) | File synchronisation method and device | |
AU2017276254B2 (en) | Edge computing platform | |
US11341031B2 (en) | Controlling executions of synchronous and/or non-synchronous operations with asynchronous messages | |
US20130191814A1 (en) | Test scenario generation method, test scenario generation system, and test scenario generation program | |
US20080126067A1 (en) | Discrete event simulation with constraint based scheduling analysis | |
WO2014204996A1 (en) | Monitoring mobile application performance | |
CN110275831A (en) | The mock data verification method and device of protocol interface | |
Bellucci et al. | Engineering JavaScript state persistence of web applications migrating across multiple devices | |
CN109828952B (en) | PCM system satellite telemetry data classification extraction method and system | |
US20200021443A1 (en) | Method and timer for providing security-protected time information | |
JP2012221318A (en) | Scenario generation device and scenario generation program | |
WO2018176812A1 (en) | Static resource issuing method and device | |
CN111104103A (en) | Visualization method and system for software editing microservice | |
EP3311265B1 (en) | A computing platform and method thereof for searching, executing, and evaluating computational algorithms | |
CN107391528B (en) | Front-end component dependent information searching method and equipment | |
WO2020134930A1 (en) | Method and device employing blockchain to process validity of digital asset | |
CN113190448A (en) | Test code updating method and device, electronic equipment and storage medium | |
CN112379934B (en) | Deployment method and device of cloud computing platform and storage medium | |
Maudoux et al. | Bringing incremental builds to continuous integration | |
CN116030233A (en) | Collaborative operation method, device, system, electronic equipment and storage medium | |
JP5314959B2 (en) | Information processing apparatus, control method therefor, computer program, and storage medium | |
CN113495723B (en) | Method, device and storage medium for calling functional component | |
CN107590256A (en) | Heterogeneous database synchronization method and device | |
JP2917939B2 (en) | Server performance measurement method | |
JP2009059316A (en) | Measuring device, measurement program, and measuring method |
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: 20180202 |