CN108958968A - A kind of document handling method and device - Google Patents
A kind of document handling method and device Download PDFInfo
- Publication number
- CN108958968A CN108958968A CN201710350079.4A CN201710350079A CN108958968A CN 108958968 A CN108958968 A CN 108958968A CN 201710350079 A CN201710350079 A CN 201710350079A CN 108958968 A CN108958968 A CN 108958968A
- Authority
- CN
- China
- Prior art keywords
- data
- write
- recovery
- time
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000011084 recovery Methods 0.000 claims abstract description 154
- 238000001514 detection method Methods 0.000 claims description 8
- 238000007689 inspection Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000004048 modification Effects 0.000 description 21
- 238000012986 modification Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 10
- 230000006399 behavior Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000008520 organization Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
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/1448—Management of the data involved in backup or backup restore
-
- 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/1469—Backup restoration techniques
Abstract
The present invention provides a kind of document handling method and devices, wherein handle every time the write-in of above-mentioned file this method comprises: executing, backup and above-mentioned write-in handle mirror image data of the corresponding file before write-in is handled and record the write time;The recovery to above-mentioned file is executed according to the write time of the mirror image data and record backed up every time to handle, solves the independent recovery that can not achieve in the related technology to the lightweight data as unit of file, it can not be restored to user at any time and want the timing node restored, it can only be by the way that the problem of a certain set time point is restored be arranged in advance, independent recovery and the real-time recovery for realizing file, improve the safety of file data.
Description
Technical field
The present invention relates to computer file data security fields, in particular to a kind of document handling method and device.
Background technique
With the development and extensive use of computer, computer is more and more important in daily life role.And with
Computer application arrived the every aspect in people's daily life, the data stored in computer are more and more, the number of storage
It is believed that breath is also more and more important, often the destruction of a data file will likely all bring huge loss.Current existing number
It can not achieve the independent recovery to the lightweight data as unit of file according to restoration methods, user can not be restored at any time and thought
The timing node of recovery can only be restored by the way that a certain set time point is arranged in advance, this brings to Computer Data Security
Hidden danger.
In conclusion how to improve the safety of data file with the extensive use of computer, the independent of file is realized
Restore, real-time recovery has become instantly extremely urgent problem to be solved.
Summary of the invention
The present invention provides a kind of document handling method and devices, at least to solve to be can not achieve in the related technology to text
Part is the independent recovery of the lightweight data of unit, can not be restored to user at any time and want the timing node restored, can only pass through
The problem of a certain set time point is restored is set in advance.
According to an aspect of the invention, there is provided a kind of document handling method, comprising: execute every time to the file
Write-in processing, backup and said write handle mirror image data of the corresponding file before write-in is handled and when recording write-in
Between;
The recovery to the file is executed according to the write time of the mirror image data and record backed up every time to handle.
Further, it executes and the write-in of the file is handled every time, back up mirror of the file before write-in processing
As data and records the write time and include:
It receives every time to the write request of the file;
The mirror image data of corresponding file will be requested to backup to rollback region with said write;
By said write request in the first data be written and request with said write the mirror image data region of corresponding file
In, and will be recorded in file view the write time.
Further, it is executed to the recovery of the file according to the write time of the mirror image data and record backed up every time
Reason includes:
The recovery request to the file is received, the first time for requiring to restore in the recovery request is obtained;
Second data of the last write time write-in before obtaining the first time;
Second data and mirror image data are combined into recovery data.
Further, the second data of the last write time write-in include: before obtaining the first time
The third data of the write-in of the last write time after the first time are searched in the file view
Third data block number;
The last time before searching the third data in the rollback region according to the third data block number is write
Second data of angle of incidence write-in.
Further, second data recovery data packets are combined into mirror image data to include:
Data Position corresponding with the recovery request is determined in the mirror image data;
Data in the Data Position are substituted for second data, replaced mirror image data is the recovery number
According to.
Further, the method also includes: the recovery data are backuped into the rollback region, and by described first
Time is recorded in file view.
Further, restore to handle corresponding mirror image data to described when existing simultaneously in the restored processed journey
When write-in processing, the method also includes:
It is generated according to the recovery data and restores queue;
In the recovery queue, simultaneous write-in is executed to the recovery data and is handled;
It will restore to execute write-in in queue treated and restore data and restore data as final.
Further, the method also includes:
Record is every time handled the recovery of the file, is generated and is restored link;
According to the recovery link detecting, each recovery operation is executed when the recovery operation passes through detection
The recovery operation.
According to another aspect of the present invention, a kind of document handling apparatus is provided, comprising: writing module, it is every for executing
The secondary write-in to the file is handled, and is backed up and is handled mirror image data of the corresponding file before write-in processing with said write
And record the write time;
Recovery module, for being executed according to the write time of the mirror image data and record backed up every time to the extensive of the file
Multiple processing.
Further, the write module includes:
First receiving unit, for receiving every time to the write request of the file;
Backup units, for the mirror image data of corresponding file will to be requested to backup to rollback region with said write;
Writing unit is written for the first data in requesting said write and requests corresponding file with said write
In mirror image data region, and it will be recorded in file view the write time.
Further, the recovery module includes:
Second receiving unit obtains for receiving the recovery request to the file and requires to restore in the recovery request
First time;
Acquiring unit, the second data for write time write-in the last before obtaining the first time;
Assembled unit, for second data and mirror image data to be combined into recovery data.
Further, the acquiring unit includes:
First searches subelement, for searching the last write-in after the first time in the file view
The third data block number of the third data of time write-in;
Second searches subelement, for searching the third number in the rollback region according to the third data block number
According to the second data of write-in of the last write time before.
Further, the assembled unit includes:
Subelement is obtained, for determining Data Position corresponding with the recovery request in the mirror image data;
Subelement is replaced, for the data in the Data Position to be substituted for second data, replaced mirror image
Data are the recovery data.
Further, described device further include:
Backup module for the recovery data to be backuped to the rollback region, and the first time is recorded
In file view.
Further, restore to handle corresponding mirror image data to described when existing simultaneously in the restored processed journey
When write-in processing, described device further include:
Queue module restores queue for generating according to the recovery data;In the recovery queue, to the recovery
Data execute simultaneous write-in processing;It will restore to execute write-in in queue treated and restore data and restore number as final
According to.
Further, described device further include:
Recording learning module is every time handled the recovery of the file for recording, and is generated and is restored link;
Detection module, for the recovery operation each according to the recovery link detecting, when the recovery operation is logical
When crossing detection, the recovery operation is executed.
Through the invention, it executes and the write-in of above-mentioned file is handled every time, back up text corresponding with above-mentioned write-in processing
Part write-in processing before mirror image data and record the write time;When according to the write-in of the mirror image data and record that back up every time
Between execute the recovery of above-mentioned file handled, solve the lightweight data that can not achieve in the related technology to as unit of file
Independent recovery, can not be restored at any time user want restore timing node, can only be by the way that a certain set time be arranged in advance
The problem of point is restored realizes independent recovery and the real-time recovery of file, improves the safety of file data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of document handling method according to an embodiment of the present invention;
Fig. 2 is the flow chart of document handling method according to another embodiment of the present invention;
Fig. 3 is the flow chart of another exemplary document handling method according to the present invention;
Fig. 4 is the structural block diagram of document handling apparatus according to an embodiment of the present invention;
Fig. 5 is the structural block diagram of the writing module 42 in exemplary document handling apparatus according to the present invention;
Fig. 6 is the structural block diagram of the recovery module 44 in exemplary document handling apparatus according to the present invention;
Fig. 7 is the structural block diagram of exemplary document handling apparatus according to the present invention;
Fig. 8 is the schematic illustration of tissue of the recovery data of file according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment one:
A kind of document handling method is provided in the present embodiment, and Fig. 1 is file process side according to an embodiment of the present invention
The flow chart of method, as shown in Figure 1, the process includes the following steps:
Step S102 is executed and is handled every time the write-in of above-mentioned file, backs up file corresponding with above-mentioned write-in processing
Write-in processing before mirror image data and record the write time;
In the step, when capturing the write request per next to this file, if judging that this request write is pair
Register the modification of file.The write request of this document is let off if the file of modification is not registered.If the data of modification
File is registration file, then captures this write request.This write request will be analyzed and obtain the data modified in write request
Block and corresponding data.Read write request correspond to the data in mirror image in data block, add data in rollback area into
Row protection.Then the data in the request of capture are write in corresponding image file data block, while modifies this document view
And the time of record modification.
It receives every time to the write request of above-mentioned file;The mirror image data of file corresponding with above-mentioned write request is backed up
To rollback region;The first data in above-mentioned write request are written to the mirror image data area of file corresponding with above-mentioned write request
In domain, and it will be recorded in file view the write time.
Step S104 is executed to the recovery of above-mentioned file according to the write time of the mirror image data and record backed up every time
Reason.
In this step, when user issues file access pattern request, user is obtained in file view at this
Between put after modify data block number, then go the data block of newest modification before this time point of removal search in rollback area.It looks for
A recovery file is generated in specified position to these data block informations and file mirrors.
The recovery request to above-mentioned file is received, the first time for requiring to restore in above-mentioned recovery request is obtained;In acquisition
Second data of the last write time write-in before stating at the first time;Above-mentioned second data are combined into mirror image data extensive
Complex data.The second data of the last write time write-in include: in above-mentioned file view before obtaining above-mentioned first time
The third data block number of the middle third data for searching the write-in of the last write time after above-mentioned first time;According to above-mentioned
Third data block number searches second of the write-in of the last write time before above-mentioned third data in above-mentioned rollback region
Data.Above-mentioned second data are combined into recovery data packets with mirror image data to include: in above-mentioned image data determine with it is above-mentioned extensive
Corresponding Data Position is requested again;Data in above-mentioned Data Position are substituted for above-mentioned second data, replaced mirror image
Data are above-mentioned recovery data.The above method further include: above-mentioned recovery data are backuped into above-mentioned rollback region, and by above-mentioned
One time was recorded in file view.Corresponding mirror image is handled to above-mentioned recovery when existing simultaneously in above-mentioned restored processed journey
When the write-in processing of data, the above method further include: generated according to above-mentioned recovery data and restore queue;In above-mentioned recovery queue
In, simultaneous write-in is executed to above-mentioned recovery data and is handled;Will restore queue in execute write-in treated restore data
Restore data as final.The above method further include: record is every time handled the recovery of above-mentioned file, is generated and is restored link;Root
According to each above-mentioned recovery operation of above-mentioned recovery link detecting, when above-mentioned recovery operation passes through detection, above-mentioned recovery behaviour is executed
Make.
Method used in the embodiment of the present invention is executed and is handled every time the write-in of above-mentioned file, backup and above-mentioned write-in
Handle corresponding file write-in processing before mirror image data and record the write time;According to the mirror image data backed up every time
The recovery to above-mentioned file is executed with the write time of record to handle.Solving can not achieve in the related technology to being single with file
The independent recovery of the lightweight data of position can not be restored to user at any time and want the timing node restored, can only be by setting in advance
The problem of a certain set time point is restored is set, independent recovery and the real-time recovery of file is realized, improves file data
Safety.
Embodiment two:
Technical solution based on the above embodiment is described in detail above-mentioned technical proposal below in conjunction with an embodiment.
A kind of document handling method is provided in the present embodiment, and Fig. 2 is at file according to another embodiment of the present invention
The flow chart of reason method, as shown in Fig. 2, the backup procedure of this document process flow includes the following steps:
S202: I/O write request of the capture user to file;
S204: judgement is I/O write request if not ignoring the request.If it is S206 is arrived;
S206: judgement whether to registration file modification.If it is S208 is arrived, if not then terminating this backup
Process.
S208:, will according to I/O write request from the data block read in image file in I/O write request in corresponding blocks
Data block is added in rollback area and stamps a timestamp to this data block.
S210: modifying the file view of this image file, that is, timestamp of the data block modified in file view.
S212: the data in the corresponding data block in image file are modified according to I/O write request.
Operator will need document to be protected to register, and registration module reads first number of file data and this file
According to.Then text document mirror image is generated according to the data in file.For this file generated text document view, file view note
The modification time of file data blocks is recorded, while generating one piece of rollback region.I/O trapping module captures each I/O write-in of user
Request.If this request is the modification request to registration file, then which can will turn request this request capture
Issue backup module.Backup module forwards a request to the module after having handled I/O write request again.I/O trapping module
The request of capture is transmitted to modification of the system drive layer completion to file.The main completion that backup module is completed writes each
Enter the backup of the data of request modification.The module completes the file modification data that capture is obtained in the I/O request that I/O module captures
Data block and data information after, the data of capture are write in rollback area while stamping corresponding timestamp mark to modification data
Note.The data block in newly-increased rollback area includes to be directed toward the location information of the previous block operation information data block, then according to I/O
The data in operation modification mirror image in request, and be the corresponding time for stamping the modification of this data block in file view, and
Save the location information of data block newest operation in rollback area.Data in file view and rollback area are with the link shape that retracts
Formula organized renewing data.
The scheme provided according to embodiments of the present invention, it has the advantage that: providing the light weights series such as individual files for user
According to real-time data protection, before allowing user to restore to break down for some single vital document according to demand
Any one time point state, avoid the recovery of the heavyweights data such as recovery to disk, mentioned for the file data of user
It has supplied to be effectively protected.
Embodiment three:
Technical solution based on the above embodiment is described in detail above-mentioned technical proposal below in conjunction with an embodiment.
A kind of flow chart of document handling method is provided in the present embodiment, as Fig. 3 is another exemplary according to the present invention
Shown in the flow chart of document handling method, the recovery process in this document process flow includes the following steps:
S302: the file and time point that user needs are obtained;
S304: the data block number modified after user's specified time is obtained by searching for file view;
S306: it according to the data block number obtained in step S304, goes in rollback area to search for these data blocks at the appointed time
The data block of newest modification, which records recovery behavior simultaneously and generates, before point restores clue;
S308: according to S306 walk in the recovery metadata (data block of i.e. newest modification) that obtains generate and restore queue;
S310: using image file and restore the recovery metadata generation recovery file in queue.
It is requested according to the file access pattern of user.The data modified after user's specified time point A are found out from file view
Block.Then the data of newest modification before finding A at the specified time point in these blocks of rollback area, i.e. recovery data block.Then
Time point A will be will record by restoring data block, and then data block newest in file is written in rollback area.In restoring data block
Generate a link.
Recoveries different from traditional rollback method, that there is method of the invention certain self-aid learning to record each user
Behavior will generate a recovery clue for the recovery user of user each time, record the recovery operation of user each time.It is logical
Over recovery clue can effectively avoid retrieving invalid data promotion restorability in recovery process.Further according to what is be retrieved
Data block, which is formed, restores queue, generates corresponding final recovery data using recovery queue and mirror image.
Embodiment three, four additionally provides a kind of document handling apparatus, and following apparatus is for realizing above-described embodiment and preferably
Embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
The combination of software or hardware.Although device described in following embodiment is preferably realized with software, hardware or soft
The realization of the combination of part and hardware is also that may and be contemplated.
Example IV:
A kind of document handling apparatus is additionally provided in this example, and Fig. 4 is file process dress according to an embodiment of the present invention
The structural block diagram set, as shown in figure 4, the device includes: writing module 42 and recovery module 44, wherein
Above-mentioned writing module 42 is every time handled the write-in of above-mentioned file for executing, and backup handles phase with above-mentioned write-in
Corresponding file write-in processing before mirror image data and record the write time;
Above-mentioned recovery module 44, is connected with writing module 42, for writing according to the mirror image data and record backed up every time
The angle of incidence executes the recovery to above-mentioned file and handles.
Further, Fig. 5 is the structural block diagram of the writing module 42 in exemplary document handling apparatus according to the present invention, such as
Writing module 42 shown in Fig. 5 includes: the first receiving unit 422, for receiving every time to the write request of above-mentioned file;Backup is single
Member 424, is connected, for backuping to back the mirror image data of file corresponding with above-mentioned write request with the first receiving unit 422
Roll region;Writing unit 426 is connected with backup units 424, for by above-mentioned write request the first data write-in with it is above-mentioned
In the mirror image data region of the corresponding file of write request, and it will be recorded in file view the write time.
Further, Fig. 6 is the structural block diagram of the recovery module 44 in exemplary document handling apparatus according to the present invention, such as
Recovery module 44 shown in Fig. 6 includes: the second receiving unit 442, for receiving the recovery request to above-mentioned file, is obtained above-mentioned extensive
The first time restored is required in multiple request;Acquiring unit 444 is connected, for obtaining above-mentioned first with the second receiving unit 442
Second data of the last write time write-in before time;Assembled unit 446 is connected with acquiring unit 444, for by
It states the second data and mirror image data is combined into recovery data.Above-mentioned acquiring unit 444 includes: the first lookup subelement, is used for
The third data of the third data of the write-in of the last write time after above-mentioned first time are searched in above-mentioned file view
Block number;Second searches subelement, for searching above-mentioned third data in above-mentioned rollback region according to above-mentioned third data block number
Second data of write-in of the last write time before.Said combination unit 446 includes: acquisition subelement, is used for
It states and determines Data Position corresponding with above-mentioned recovery request in mirror image data;Subelement is replaced, is used for above-mentioned Data Position
In data be substituted for above-mentioned second data, replaced mirror image data is above-mentioned recovery data.
It realizes and executes every time to above-mentioned text according to the comprehensive function of writing module 42 and recovery module 44 by the present apparatus
The write-in of part is handled, and backup and above-mentioned write-in handle mirror image data of the corresponding file before write-in is handled and record write-in
Time;The recovery to above-mentioned file is executed according to the write time of the mirror image data and record backed up every time to handle, and solves phase
Can not achieve the independent recovery to the lightweight data as unit of file in the technology of pass, can not be restored at any time user think it is extensive
Multiple timing node can only realize the independent recovery of file by the way that the problem of a certain set time point is restored is arranged in advance
And real-time recovery, improve the safety of file data.
Embodiment five:
Additionally provide a kind of document handling apparatus in this example, Fig. 7 is exemplary document handling apparatus according to the present invention
Structural block diagram, as shown in fig. 7, the device increases on the basis of example IV:
Backup module 46 for above-mentioned recovery data to be backuped to above-mentioned rollback region, and above-mentioned first time is recorded
Into file view.When existing simultaneously the write-in for handling above-mentioned recovery corresponding mirror image data in above-mentioned restored processed journey
When processing, above-mentioned apparatus further include: Queue module 48 is connected with backup module 46, extensive for being generated according to above-mentioned recovery data
Multiple queue;In above-mentioned recovery queue, simultaneous write-in is executed to above-mentioned recovery data and is handled;It will restore to execute in queue
Treated restores data and restore data as final for write-in.Recording learning module 49 is connected, for recording with Queue module 48
The recovery of above-mentioned file is handled every time, generates and restores link;Detection module 40 is connected with recording learning module 49, is used for root
According to each above-mentioned recovery operation of above-mentioned recovery link detecting, when above-mentioned recovery operation passes through detection, above-mentioned recovery behaviour is executed
Make.
Embodiment six:
A kind of recovery data organization form of file is additionally provided in this example, and Fig. 8 is according to an embodiment of the present invention
The schematic illustration of tissue of the recovery data of file, Fig. 8-1 are the recovery data organization schematic diagram for being not carried out recovery operation, Fig. 8-2
It is the recovery data organization schematic diagram for executing recovery operation
As shown in Fig. 8-1, formed under normal circumstances with metadata organization file view and corresponding recovery link.File view
Figure has recorded the time of data block modification, and the position of the last data block modification data in rollback area.In rollback area
Metadata record user modify the time of the data block and the position in rollback area of last time data block modification.
As shown in Fig. 8-2, the recovery behavior based on user generates a new recovery link.For example user is in t4
It carves, user needs to be restored to the file status between t3 and t2.So situation according to Fig. 8-1, the block t2 being retrieved
To restore data.Then this is to generate a recovery link t4 link according to the recovery behavior of user.Then modification file view
The time of figure is t4 and the corresponding position for being directed toward rollback area data block.If user needs to restore at the t5 moment.If user
Need to be restored to t2, between t1 sometime, then t1 data block can be retrieved by restoring link branches t2 by restoring data.
If some time being restored between t3 and t4.Corresponding recovery data block can be then found by t4 branch.With biography
Rollback mode of uniting is different.This method generates a rollback link based on the recovery behavior of each user to avoid excessive invalid member
The exploration of data.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (16)
1. a kind of document handling method characterized by comprising
It executes and the write-in of the file is handled every time, back up file corresponding with said write processing before write-in processing
Mirror image data and record the write time;
The recovery to the file is executed according to the write time of the mirror image data and record backed up every time to handle.
2. handling every time the write-in of the file the method according to claim 1, wherein executing, institute is backed up
It states mirror image data of the file before write-in processing and records the write time and include:
It receives every time to the write request of the file;
The mirror image data of corresponding file will be requested to backup to rollback region with said write;
By said write request in the first data be written and request in the mirror image data region of corresponding file with said write, and
It will be recorded in file view write time.
3. the method according to claim 1, wherein when according to the write-in of the mirror image data and record that back up every time
Between execute and include: to the recovery of file processing
The recovery request to the file is received, the first time for requiring to restore in the recovery request is obtained;
Second data of the last write time write-in before obtaining the first time;
Second data and mirror image data are combined into recovery data.
4. according to the method described in claim 3, it is characterized in that, obtaining the last write time before the first time
Write-in the second data include:
The of the third data of the write-in of the last write time after the first time is searched in the file view
Three data block numbers;
When the last time before searching the third data in the rollback region according to the third data block number is written
Between the second data for being written.
5. according to the method described in claim 3, it is characterized in that, second data and mirror image data are combined into recovery number
According to including:
Data Position corresponding with the recovery request is determined in the mirror image data;
Data in the Data Position are substituted for second data, replaced mirror image data is the recovery data.
6. according to the described in any item methods of claim 3 to 5, which is characterized in that the method also includes:
The recovery data are backuped into the rollback region, and the first time is recorded in file view.
7. according to the described in any item methods of claim 3 to 5, which is characterized in that when in the restored processed journey simultaneously
When in the presence of to the write-in processing for restoring to handle corresponding mirror image data, the method also includes:
It is generated according to the recovery data and restores queue;
In the recovery queue, simultaneous write-in is executed to the recovery data and is handled;
It will restore to execute write-in in queue treated and restore data and restore data as final.
8. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
Record is every time handled the recovery of the file, is generated and is restored link;
According to each recovery operation of the recovery link detecting, when the recovery operation passes through detection, described in execution
Recovery operation.
9. a kind of document handling apparatus characterized by comprising
Writing module is every time handled the write-in of the file for executing, and backs up file corresponding with said write processing
Write-in processing before mirror image data and record the write time;
Recovery module executes to the recovery of the file for the write time according to the mirror image data and record backed up every time
Reason.
10. device according to claim 9, which is characterized in that the write module includes:
First receiving unit, for receiving every time to the write request of the file;
Backup units, for the mirror image data of corresponding file will to be requested to backup to rollback region with said write;
The mirror image that corresponding file is requested with said write is written for the first data in requesting said write for writing unit
In data area, and it will be recorded in file view the write time.
11. device according to claim 9, which is characterized in that the recovery module includes:
Second receiving unit obtains require to restore in the recovery request for receiving the recovery request to the file
One time;
Acquiring unit, the second data for write time write-in the last before obtaining the first time;
Assembled unit, for second data and mirror image data to be combined into recovery data.
12. device according to claim 11, which is characterized in that the acquiring unit includes:
First searches subelement, for searching the last write time after the first time in the file view
The third data block number of the third data of write-in;
Second search subelement, for searched in the rollback region according to the third data block number third data it
Second data of preceding write-in of the last write time.
13. device according to claim 11, which is characterized in that the assembled unit includes:
Subelement is obtained, for determining Data Position corresponding with the recovery request in the mirror image data;
Subelement is replaced, for the data in the Data Position to be substituted for second data, replaced mirror image data
For the recovery data.
14. 1 to 13 described in any item devices according to claim 1, which is characterized in that described device further include:
For the recovery data to be backuped to the rollback region, and file is recorded in the first time by backup module
In view.
15. 1 to 13 described in any item devices according to claim 1, which is characterized in that when same in the restored processed journey
When in the presence of handling the write-in for restoring to handle corresponding mirror image data when, described device further include:
Queue module restores queue for generating according to the recovery data;In the recovery queue, to the recovery data
Execute simultaneous write-in processing;It will restore to execute write-in in queue treated and restore data and restore data as final.
16. according to the described in any item devices of claim 9 to 13, which is characterized in that described device further include:
Recording learning module is every time handled the recovery of the file for recording, and is generated and is restored link;
Detection module, for the recovery operation each according to the recovery link detecting, when the recovery operation passes through inspection
When survey, the recovery operation is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710350079.4A CN108958968B (en) | 2017-05-17 | 2017-05-17 | File processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710350079.4A CN108958968B (en) | 2017-05-17 | 2017-05-17 | File processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108958968A true CN108958968A (en) | 2018-12-07 |
CN108958968B CN108958968B (en) | 2023-12-22 |
Family
ID=64462744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710350079.4A Active CN108958968B (en) | 2017-05-17 | 2017-05-17 | File processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108958968B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752756A (en) * | 2020-06-24 | 2020-10-09 | 厦门靠谱云股份有限公司 | Method for setting database backup strategy through autonomous learning |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007242178A (en) * | 2006-03-10 | 2007-09-20 | Matsushita Electric Ind Co Ltd | Method, device, and program for processing file system defect, and medium |
CN101576834A (en) * | 2009-05-08 | 2009-11-11 | 西安蓝海本立信息科技有限公司 | System and method for protecting continuous data for establishing data view based on time stamp |
CN102594849A (en) * | 2011-01-06 | 2012-07-18 | 阿里巴巴集团控股有限公司 | Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device |
CN103617097A (en) * | 2013-11-19 | 2014-03-05 | 华为技术有限公司 | File recovery method and file recovery device |
CN106055431A (en) * | 2016-05-30 | 2016-10-26 | 河海大学 | Data backup and recovery method and data backup and recovery device based on snapshot online rollback |
-
2017
- 2017-05-17 CN CN201710350079.4A patent/CN108958968B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007242178A (en) * | 2006-03-10 | 2007-09-20 | Matsushita Electric Ind Co Ltd | Method, device, and program for processing file system defect, and medium |
CN101576834A (en) * | 2009-05-08 | 2009-11-11 | 西安蓝海本立信息科技有限公司 | System and method for protecting continuous data for establishing data view based on time stamp |
CN102594849A (en) * | 2011-01-06 | 2012-07-18 | 阿里巴巴集团控股有限公司 | Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device |
CN103617097A (en) * | 2013-11-19 | 2014-03-05 | 华为技术有限公司 | File recovery method and file recovery device |
CN106055431A (en) * | 2016-05-30 | 2016-10-26 | 河海大学 | Data backup and recovery method and data backup and recovery device based on snapshot online rollback |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752756A (en) * | 2020-06-24 | 2020-10-09 | 厦门靠谱云股份有限公司 | Method for setting database backup strategy through autonomous learning |
Also Published As
Publication number | Publication date |
---|---|
CN108958968B (en) | 2023-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9367598B2 (en) | Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation | |
CN108694195B (en) | Management method and system of distributed data warehouse | |
US9467460B1 (en) | Modularized database architecture using vertical partitioning for a state machine | |
JP6118515B2 (en) | System for associative memory update | |
CN107710215A (en) | The method and apparatus of mobile computing device safety in test facilities | |
CN103582868B (en) | Operator state checkpoints | |
CN103761161B (en) | Recover the method for data, server and system | |
US20120310878A1 (en) | Database system and method | |
CN105095294B (en) | The method and device of isomery copy is managed in a kind of distributed memory system | |
JP5308403B2 (en) | Data processing failure recovery method, system and program | |
US20130145350A1 (en) | Efficient, large scale trace storage system | |
CN105306585B (en) | A kind of method of data synchronization of multiple data centers | |
US8762347B1 (en) | Method and apparatus for processing transactional file system operations to enable point in time consistent file data recreation | |
KR101429575B1 (en) | Real time backup system of database, system of recovering data and method of recovering data | |
CN107220142A (en) | Perform the method and device of data recovery operation | |
CN107870829A (en) | A kind of distributed data restoration methods, server, relevant device and system | |
CN108255638B (en) | Snapshot rollback method and device | |
Lyu et al. | Design and evaluation of a fault-tolerant mobile-agent system | |
CN104750755B (en) | A kind of data covering method and system after database active-standby switch | |
EP3438845A1 (en) | Data updating method and device for a distributed database system | |
CN109558213A (en) | The method and apparatus for managing the virtual machine snapshot of OpenStack platform | |
CN107957918B (en) | Data reconstruction method and device | |
US20200293412A1 (en) | Log Management Method, Server, and Database System | |
CN105518694A (en) | Reverse replication to rollback corrupted files | |
CN106648977A (en) | Recovery method and device of Android system file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |