CN109271341A - A kind of mirrored disk file filter method - Google Patents
A kind of mirrored disk file filter method Download PDFInfo
- Publication number
- CN109271341A CN109271341A CN201811010274.3A CN201811010274A CN109271341A CN 109271341 A CN109271341 A CN 109271341A CN 201811010274 A CN201811010274 A CN 201811010274A CN 109271341 A CN109271341 A CN 109271341A
- Authority
- CN
- China
- Prior art keywords
- file
- mirrored disk
- filter
- request
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention discloses a kind of mirrored disk file filter methods, comprising the following steps: mirrored disk is mounted in host system by S1, and passes through the configurating filtered rule of file system filter driver in host system;The corresponding document that file attribute meets the filtering rule in the mirrored disk is sent to the application program in the host system by the mirrored disk file system driver in host system described in S2, for application program access.Unwanted file and file can be filtered out, to quickly show required file and file, and then file and file needed for fast quick-recovery.
Description
Technical field
The present invention relates to file filter method and technology fields, it particularly relates to a kind of mirrored disk file filter method.
Background technique
Continuous data protection (CDP) is a kind of under the premise of not influencing key data operation, may be implemented to continue capture
Or any change that tracking target data is occurred, and the method that any point-in-time before this can be restored to.
When carrying out CDP protection hard disk, when protected hard disk or subregion break down, by CDP protection mechanism,
The complete valid data of failure point moment can be provided, mirrored disk is mounted in host system, to be seen in host system
To failure point moment total data (file and file), required data (file and file), mistake are then therefrom selected again
Journey is very complicated.If not selecting these files and file, need to restore a large amount of unwanted files and file, it is both unrestrained
Take and restore destination memory space, recovery process can not be rapidly completed, under efficiency is very low.
For the problems in the relevant technologies, currently no effective solution has been proposed.
Summary of the invention
For above-mentioned technical problem in the related technology, the present invention proposes a kind of mirrored disk file filter method, can be with
Unwanted file and file are filtered out, to quickly show required file and file, and then needed for fast quick-recovery
File and file.
To realize the above-mentioned technical purpose, the technical scheme of the present invention is realized as follows:
A kind of mirrored disk file filter method, comprising the following steps:
Mirrored disk is mounted in host system by S1, and is configured by the file system filter driver in host system
Filter rule;
File attribute in the mirrored disk is met institute by the mirrored disk file system driver in host system described in S2
The corresponding document for stating filtering rule is sent to application program in the host system, for application program access.
Further, further comprising the steps of:
Application program described in S3 initiates the read requests of a certain file;
File system in host system described in S4 generates I/O Request according to the read requests and is sent to file system
Filtration drive, the I/O Request include the document location and file attribute of this document;
The file attribute is compared file system filter driver described in S5 with the filtering rule, if the file
Attribute meets the filtering rule, then the I/O Request is sent to mirrored disk file system by the file system filter driver
File in the mirrored disk under this document position is sent to described by system driving, the mirrored disk file system driver
Application program accesses for the application program, if the file attribute does not meet the filtering rule, the file system mistake
IO request is refused in filter driving, and the application program cannot access the file that its request is read.
Further, the file attribute include file name, file creation time, filemodetime, file type,
One of file size is a variety of.
Further, the filtering rule include file name, file creation time, filemodetime, file type,
One of file size is a variety of.
Further, the mirrored disk is CDP mirrored disk.
Further, it includes in complying fully with and meeting with asterisk wildcard that the file name, which meets the form of the filtering rule,
One or two.
Further, the file type includes one of doc, pdf, html, jpg, txt, ppt or a variety of.
Beneficial effects of the present invention: it is easy to operate, in host system simultaneously carry mirrored disk and configurating filtered rule,
It is carried out without substep;It is short to restore window time, due to filtering out unwanted file and file, restores window time and subtracts significantly
It is small;It reduces and restores target storage pressure, due to filtering out unwanted file and file, the data volume for needing to restore subtracts significantly
It is small, reduce and restores target storage pressure;Storage network bandwidth pressure is reduced, due to filtering out unwanted file and file,
The data volume for needing to restore greatly reduces, and reduces storage network bandwidth pressure.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart one of the mirrored disk file filter method described according to embodiments of the present invention;
Fig. 2 is the flowchart 2 of the mirrored disk file filter method described according to embodiments of the present invention;
Fig. 3 is the flow chart 3 of the mirrored disk file filter method described according to embodiments of the present invention;
Fig. 4 is the schematic diagram of the CDP mirror image protection described according to embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to what the present invention protected
Range.
As shown in Figure 1-3, a kind of mirrored disk file filter method described according to embodiments of the present invention, including following step
It is rapid:
Mirrored disk is mounted in host system by S1, and is configured by the file system filter driver in host system
Filter rule;
File attribute in the mirrored disk is met institute by the mirrored disk file system driver in host system described in S2
The corresponding document for stating filtering rule is sent to application program in the host system, for application program access.
It is further comprising the steps of in a specific embodiment of the invention:
Application program described in S3 initiates the read requests of a certain file;
File system in host system described in S4 generates I/O Request according to the read requests and is sent to file system
Filtration drive, the I/O Request include the document location and file attribute of this document;
The file attribute is compared file system filter driver described in S5 with the filtering rule, if the file
Attribute meets the filtering rule, then the I/O Request is sent to mirrored disk file system by the file system filter driver
File in the mirrored disk under this document position is sent to described by system driving, the mirrored disk file system driver
Application program accesses for the application program, if the file attribute does not meet the filtering rule, the file system mistake
IO request is refused in filter driving, and the application program cannot access the file that its request is read.
In a specific embodiment of the invention, the file attribute includes that file name, file creation time, file are repaired
Change one of time, file type, file size or a variety of.
In a specific embodiment of the invention, the filtering rule includes that file name, file creation time, file are repaired
Change one of time, file type, file size or a variety of.
In a specific embodiment of the invention, the mirrored disk is CDP mirrored disk.
In a specific embodiment of the invention, the form that the file name meets the filtering rule includes according with completely
It closes and asterisk wildcard one or both of meets.
In a specific embodiment of the invention, the file type includes in doc, pdf, html, jpg, txt, ppt
It is one or more.
In order to facilitate above-mentioned technical proposal of the invention is understood, below by way of specifically used mode to above-mentioned skill of the invention
Art scheme is described in detail.
As shown in figure 4, the principle of CDP mirror image protection: when data are written in application requests, request first passes around file
System after file system analysis request, generates new I/O Request, which includes the data of write-in, size of data and write
Enter the position of disk, then the I/O Request will be transmitted to file system filter driver.
After file system filter driver obtains I/O Request, I/O Request is analyzed, and the I/O Request is forwarded to original disk text
Part system drive and mirrored disk file system driver.It is forwarded to original disk file system driver and mirrored disk file system
The I/O Request of driving is consistent, to guarantee that the content of original disk and the content of write-in mirrored disk, which is written, to be consistent.
The corresponding disk sector of original disk is written in the data of I/O Request by original disk file system driver, thus
Physically save the data in hard disk.
Meanwhile the content of original disk will be written, while portion is written into mirrored disk, to keep original disk
Content and the content of mirrored disk are completely the same.
Mirrored disk carry process: selection fault moment mirrored disk (selection recovery time point);Select filtering rule (text
Part or folder name, file type, modification time etc.);The carry fault moment mirrored disk in host system enables text
Part system filtration drive, and configurating filtered rule;In host system, mirrored disk file system driver according to filtering rule,
Unwanted file and file are filtered out, the file and file needed for only retaining.In host system, pass through operating system
Resource manager (i.e. application program) display needed for file and file;In host system, restore these files and text
Part folder (can selection operation, the copy function of file).
Mirrored disk file filter Method And Principle: the good CDP mirrored disk of carry, and after setting filtering rule, using journey
Sequence can access the mirrored disk by file system.When application program initiates file read request, file system is generated
One I/O Request including document location, the I/O Request will be transmitted to file system filter driver.
File system filter driver analyzes the I/O Request, obtains the file name to be accessed, file creation time, file and repairs
Change the file attributes such as time, file system filter driver is judged according to filtering rule at this time, if the file category of this document
Property meet filtering rule, then I/O Request is forwarded to mirrored disk file system driver, mirrored disk file system driver returns
To file system or application program, application program can be accessed file in mirrored disk under this document position by file system
This document;If this document does not meet filtering rule, file system filter driver is refused the I/O Request, is eventually led to using journey
Sequence can not access this document.
Under normal circumstances, there is following filtering rule, can integrate and use following filtering rule.
File name, the meeting of file name can support to comply fully with asterisk wildcard meet (? meet with *, respectively represents
Any one character and any number of characters), met by asterisk wildcard, can achieve the certain types of file of filtering, such as:
Doc, pdf, html, jpg, txt, ppt etc..
File creation time, the file created in time range is eligible, such as [2018-01-01 00:00:
00,2018-01-01 12:00:00]
Filemodetime, the file modified in time range is eligible, such as [2018-01-01 00:00:
00,2018-01-01 12:00:00]
File size, file of the file size in range is eligible, such as [2048,4096], and byte is unit.
In conclusion, when mirror magnetic picture disk to be mounted in host system, being referred to by means of above-mentioned technical proposal of the invention
Filtering rule (filename, file, file type, modification time, size etc.) is determined, unwanted file can be filtered out
And file, thus quickly show required file and file, and then file and file needed for fast quick-recovery, operation letter
Single, carry mirrored disk and configurating filtered rule simultaneously in host system do not have to substep and carry out;It is short to restore window time, by
In filtering out unwanted file and file, restores window time and greatly reduce;It reduces and restores target storage pressure, due to mistake
Unwanted file and file are filtered, the data volume for needing to restore greatly reduces, and reduces and restores target storage pressure;Reduction is deposited
Network bandwidth pressure is stored up, due to filtering out unwanted file and file, the data volume for needing to restore is greatly reduced, and reduction is deposited
Store up network bandwidth pressure.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (7)
1. a kind of mirrored disk file filter method, which comprises the following steps:
Mirrored disk is mounted in host system by S1, and passes through the configurating filtered rule of file system filter driver in host system
Then;
File attribute in the mirrored disk is met the mistake by the mirrored disk file system driver in host system described in S2
The corresponding document of filter rule is sent to the application program in the host system, for application program access.
2. mirrored disk file filter method according to claim 1, which is characterized in that further comprising the steps of:
Application program described in S3 initiates the read requests of a certain file;
File system in host system described in S4 generates I/O Request according to the read requests and is sent to file system filter
Driving, the I/O Request includes the document location and file attribute of this document;
The file attribute is compared file system filter driver described in S5 with the filtering rule, if the file attribute
Meet the filtering rule, then the I/O Request is sent to the mirrored disk file system and driven by the file system filter driver
Dynamic, the file in the mirrored disk under this document position is sent to the application by the mirrored disk file system driver
Program accesses for the application program, if the file attribute does not meet the filtering rule, the file system filter is driven
Dynamic to refuse the I/O Request, the application program cannot access the file that its request is read.
3. mirrored disk file filter method according to claim 1, which is characterized in that the file attribute includes file
One of title, file creation time, filemodetime, file type, file size are a variety of.
4. mirrored disk file filter method according to claim 1, which is characterized in that the filtering rule includes file
One of title, file creation time, filemodetime, file type, file size are a variety of.
5. mirrored disk file filter method according to claim 1, which is characterized in that the mirrored disk is CDP mirror
As disk.
6. mirrored disk file filter method according to claim 3, which is characterized in that the file name meets described
The form of filtering rule includes complying fully with one or both of to meet with asterisk wildcard.
7. mirrored disk file filter method according to claim 3, which is characterized in that the file type include doc,
One of pdf, html, jpg, txt, ppt or a variety of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811010274.3A CN109271341B (en) | 2018-08-31 | 2018-08-31 | Mirror image disk file filtering method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811010274.3A CN109271341B (en) | 2018-08-31 | 2018-08-31 | Mirror image disk file filtering method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271341A true CN109271341A (en) | 2019-01-25 |
CN109271341B CN109271341B (en) | 2021-10-26 |
Family
ID=65154873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811010274.3A Active CN109271341B (en) | 2018-08-31 | 2018-08-31 | Mirror image disk file filtering method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271341B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287064A (en) * | 2019-07-02 | 2019-09-27 | 成都易我科技开发有限责任公司 | A kind of restoring method of data in magnetic disk, device and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101008974A (en) * | 2007-01-26 | 2007-08-01 | 北京飞天诚信科技有限公司 | Protection method and system of electronic document |
WO2007114885A1 (en) * | 2006-03-31 | 2007-10-11 | Microsoft Corporation | Selective rendering for driver classes |
CN101256570A (en) * | 2008-02-22 | 2008-09-03 | 山东中创软件工程股份有限公司 | File protection technique based on Windows system files filtering drive |
CN102194079A (en) * | 2011-03-18 | 2011-09-21 | 北京思创银联科技股份有限公司 | File access filtering method |
CN102708317A (en) * | 2012-05-03 | 2012-10-03 | 沈阳通用软件有限公司 | Recording auditing method under Windows platform on basis of filter driver |
CN106547641A (en) * | 2015-09-17 | 2017-03-29 | 南京壹进制信息技术股份有限公司 | A kind of CDP backup methods based on volume |
CN106648981A (en) * | 2016-12-13 | 2017-05-10 | 龚平 | Continuous data protection based virtual machine data protection method |
CN108170766A (en) * | 2017-12-25 | 2018-06-15 | 南京壹进制信息技术股份有限公司 | A kind of CDP backups for ensureing data base consistency(-tance) and restoration methods |
-
2018
- 2018-08-31 CN CN201811010274.3A patent/CN109271341B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007114885A1 (en) * | 2006-03-31 | 2007-10-11 | Microsoft Corporation | Selective rendering for driver classes |
CN101008974A (en) * | 2007-01-26 | 2007-08-01 | 北京飞天诚信科技有限公司 | Protection method and system of electronic document |
CN101256570A (en) * | 2008-02-22 | 2008-09-03 | 山东中创软件工程股份有限公司 | File protection technique based on Windows system files filtering drive |
CN102194079A (en) * | 2011-03-18 | 2011-09-21 | 北京思创银联科技股份有限公司 | File access filtering method |
CN102708317A (en) * | 2012-05-03 | 2012-10-03 | 沈阳通用软件有限公司 | Recording auditing method under Windows platform on basis of filter driver |
CN106547641A (en) * | 2015-09-17 | 2017-03-29 | 南京壹进制信息技术股份有限公司 | A kind of CDP backup methods based on volume |
CN106648981A (en) * | 2016-12-13 | 2017-05-10 | 龚平 | Continuous data protection based virtual machine data protection method |
CN108170766A (en) * | 2017-12-25 | 2018-06-15 | 南京壹进制信息技术股份有限公司 | A kind of CDP backups for ensureing data base consistency(-tance) and restoration methods |
Non-Patent Citations (2)
Title |
---|
戈洋洋: "基于Minifilter的数据备份技术的实时性与安全性研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
黄志刚: "文件级CDP的设计和实现", 《计算机应用》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287064A (en) * | 2019-07-02 | 2019-09-27 | 成都易我科技开发有限责任公司 | A kind of restoring method of data in magnetic disk, device and electronic equipment |
CN110287064B (en) * | 2019-07-02 | 2020-04-17 | 成都易我科技开发有限责任公司 | Method and device for restoring disk data and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109271341B (en) | 2021-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11516289B2 (en) | Method and system for displaying similar email messages based on message contents | |
US9250824B2 (en) | Backing up method, device, and system for virtual machine | |
US9703640B2 (en) | Method and system of performing incremental SQL server database backups | |
CN104462563B (en) | A kind of file memory method and system | |
US7526623B1 (en) | Optimizing reclamation of data space | |
JP4181044B2 (en) | A backup method for saving a snapshot of selected data in a mass storage system | |
US7844643B2 (en) | Storage management system with integrated continuous data protection and remote copy | |
US7594085B1 (en) | Reclaiming data space | |
US20060174075A1 (en) | Method for creating and preserving snapshots in a storage system | |
US20070022117A1 (en) | Accessing file system snapshots directly within a file system directory | |
CN102541691B (en) | Log check point recovery method applied to memory data base OLTP (online transaction processing) | |
CN105474200A (en) | Hydration and dehydration with placeholders | |
JP2006268829A (en) | Method and apparatus for mirroring object between storage systems | |
US20070294568A1 (en) | Storage system and method of managing data using the same | |
CN103999058A (en) | Tape drive system server | |
WO2015150939A1 (en) | Collision avoidance using dynamic target volume allocation in a single repository | |
CN103037004A (en) | Implement method and device of cloud storage system operation | |
US20110282843A1 (en) | Method and system for data backup and replication | |
CN102073553A (en) | File recovery method and device | |
CN109271341A (en) | A kind of mirrored disk file filter method | |
US7337194B2 (en) | Asynchronous remote mirroring techniques for databases | |
US9600188B2 (en) | Collision avoidance using dynamic target volume allocation from a shared resource pool | |
US10360234B2 (en) | Recursive extractor framework for forensics and electronic discovery | |
US8010761B2 (en) | Storage system and copy method | |
CN102932468A (en) | Shared data access 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211124 Address after: Room 301, floor 3, building 5, yard 16, Meiliyuan Middle Road, Haidian District, Beijing 100097 Patentee after: Beijing Mars high tech digital technology Co.,Ltd. Address before: No. 1401, 23 / F, No. 105, North West Third Ring Road, Haidian District, Beijing 100048 Patentee before: Huang Jiang |