CN107632905A - A kind of file anti-loss method and device for safe U disc - Google Patents

A kind of file anti-loss method and device for safe U disc Download PDF

Info

Publication number
CN107632905A
CN107632905A CN201710792272.3A CN201710792272A CN107632905A CN 107632905 A CN107632905 A CN 107632905A CN 201710792272 A CN201710792272 A CN 201710792272A CN 107632905 A CN107632905 A CN 107632905A
Authority
CN
China
Prior art keywords
file
safe
disc
directories
monitor
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
Application number
CN201710792272.3A
Other languages
Chinese (zh)
Inventor
孙鸿儒
冯艳
崔瑞峰
翁孝勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Shenzhouxinyuan System Engineering Co Ltd
Original Assignee
Jiangsu Shenzhouxinyuan System Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Shenzhouxinyuan System Engineering Co Ltd filed Critical Jiangsu Shenzhouxinyuan System Engineering Co Ltd
Priority to CN201710792272.3A priority Critical patent/CN107632905A/en
Publication of CN107632905A publication Critical patent/CN107632905A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The present invention provides a kind of file anti-loss method for safe U disc, including:When the file in safe U disc is opened by software for editing, a back-up file directories are created in safe U disc;Whether file is changed according to policy monitor, if modification, the latest edition of modification is copied in the back-up file directories, otherwise does not take any action;Further, monitor whether the file is closed by software for editing, if closing, delete the back-up file directories, it is on the contrary then return to previous step.The present invention also provides a kind of file for safe U disc anti-lost device, and the device is made up of resource management module and monitoring module.Pass through methods and apparatus of the present invention, it can be easy to find latest edition backup file in backup directory, so as to solve the problems, such as to lose data because of situations such as surprisingly extracting safe U disc, accident power-off or system crash, the usage experience to safe U disc is also greatly increased.

Description

A kind of file anti-loss method and device for safe U disc
Technical field
The present invention relates to a kind of information security field, more particularly to a kind of method that file for safe U disc is anti-lost And device.
Background technology
USB flash disk, full name USB flash drive, English name " USB flash disk ".It is it is a kind of using USB interface without thing The miniature high power capacity product of driver is managed, is connected by USB interface with computer, realizes plug and play.Because its is small Ingeniously it is easy to carry, the advantages that memory capacity is big, cheap, dependable performance, is used by extensive crowd.Meaning be present in common U disk It is outer loss and cause leaking data, easy virus infection equivalent risk, huge potential suffering for government and business unit be present.
Safe U disc has then used privately owned file system, will not be identified by operating system, and the file in safe U disc is all It is that encryption stores, the file that the resource manager program only carried by safe U disc can be just checked in safe U disc.When making During file of the user just in editing safety USB flash disk, if running into unexpected situations such as extracting USB flash disk, accident power-off or system crash, The file data edited is will result in lose.These files are probably to record life or the photo at enterprise's preciousness moment, It is also likely to be the urgent vital document of enterprise, if very big inconvenience will be brought to user by losing.
At present, for preventing the method for loss of data in USB flash disk merely by simple backup, so as to avoid document because by mistake Lost caused by deleting, not to the method for carrying out data protection in editor's document in USB flash disk, in particular for certainly Safe U disc with resource manager program.
The content of the invention
It is an object of the invention to provide a kind of file anti-loss method and device for safe U disc, operating process is simple, Excessive internal memory will not be taken, can just solve to lose number because of situations such as surprisingly extracting safe U disc, accident power-off or system crash According to the problem of.
Based on above-mentioned purpose, the present invention provides a kind of file anti-loss method for safe U disc, comprised the following steps:
(1)When the file in safe U disc is opened by software for editing, a back-up file directories are created in safe U disc;
(2)Whether file is changed according to policy monitor, if modification, the backup is copied to by the latest edition of modification In file directory, otherwise any action is not taken;
(3)Monitor whether the file is closed by software for editing, if closing, delete the back-up file directories, it is on the contrary then return It is back to step(2).
Wherein, above-mentioned steps(1)In, if the back-up file directories create failure, it can also send miscue message; Above-mentioned steps(2)Before, the strategy that can be monitored with configuration file, the strategy is including the strategy based on time interval and based on text The strategy of part mark:
The strategy of time interval refers to, sets the time interval of file monitor, and monitoring a file every a time interval is It is no to be changed or closed;
The strategy of file identification refers to, the file importance according to specified by file identification, automatically determines the time of file monitor Interval.
Further, whether the above-mentioned file according to policy monitor is changed, in addition to:Pass through the time of the file Attribute or file content judge whether file is changed.
In addition, the present invention also provides a kind of file loss prevention device for safe U disc, by resource management module and monitoring Module forms:
Resource management module, for creating, deleting back-up file directories, the file latest edition of modification is copied into backup file In catalogue;
Monitoring module, for monitoring whether the file in safe U disc by software for editing is opened, changes and closed.When in safe U disc File when being opened by software for editing, monitoring module notice resource management module creates a backup file mesh in safe U disc Record;Whether file is changed according to policy monitor, if modification, notice resource management module answers the latest edition of modification Make in the back-up file directories, otherwise do not take any action;Further, whether the file is monitored by software for editing Close, if closing, notice resource management module deletes the back-up file directories.
By methods and apparatus of the present invention, can be easy to find latest edition backup file in backup directory, from And solve the problems, such as to lose data because of situations such as surprisingly extracting safe U disc, accident power-off or system crash, also greatly carry The high usage experience to safe U disc.
To allow the method for the present invention to become apparent, the method for the present invention is illustrated below in conjunction with accompanying drawing.
Brief description of the drawings
Fig. 1 is a kind of flow chart of file anti-loss method for safe U disc of the present invention;
Fig. 2 is a kind of flow chart of file anti-loss method for safe U disc provided in an embodiment of the present invention;
Fig. 3 is a kind of file loss prevention device structure chart for safe U disc of the present invention.
Embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by embodiment.
Fig. 1 is a kind of flow chart of file anti-loss method for safe U disc of the present invention.As shown in figure 1, the flow Comprise the following steps:
Step S101, when the file in safe U disc is opened by software for editing, a backup file mesh is created in safe U disc Record;
Step S102, whether file is changed according to policy monitor, if modification, institute is copied to by the latest edition of modification State in back-up file directories, otherwise do not take any action;
Step S103, monitors whether the file is closed by software for editing, if closing, deletes the back-up file directories, instead Be then back to step S102.
Wherein, in above-mentioned steps S101, if the back-up file directories create failure, miscue message can also be sent; Before above-mentioned steps S102, strategy and base based on time interval can be included with the strategy of configuration file monitoring, the strategy In the strategy of file identification:
The strategy of time interval refers to, sets the time interval of file monitor, and monitoring a file every a time interval is It is no to be changed or closed;
The strategy of file identification refers to, the file importance according to specified by file identification, automatically determines the time of file monitor Interval.
Further, whether the above-mentioned file according to policy monitor is changed, in addition to:Pass through the time of the file Attribute or file content judge whether file is changed.
Fig. 2 is a kind of flow chart of file loss method for safe U disc provided in an embodiment of the present invention.Such as Fig. 2 institutes Show, the flow comprises the following steps:
Step S201, the file that the needs in safe U disc are edited is opened, enters edlin;
Step S202, a back-up file directories are created in safe U disc, for storing the backup file of latest edition;
If the back-up file directories create failure, miscue message can be sent;
Step S203, monitor whether a file is changed every a time interval, the time interval of the file monitor can To be configured;
Further, the time interval of file monitor can also according to the file importance of file identification, be automatically determined;
Whether above-mentioned monitoring file is changed, including judges whether to change according to the time attribute of file or file content;
Step S204, if the file modification, the latest edition of modification is copied in the back-up file directories of safe U disc, The state that backup file so in safe U disc back-up file directories is just consistent with the file moment edited, it is on the contrary Any action is not taken;
Step S205, further, monitor whether the file is closed by software for editing;
Step S206, if the file is turned off, the back-up file directories in safe U disc are deleted, reduce resource occupation space, Conversely, then returning to step S203, continue to judge just whether further change in editing files.
Fig. 3 is a kind of file loss prevention device structural representation for safe U disc of the present invention, for realizing above-mentioned reality Apply the method in example.As shown in figure 3, described device is made up of resource management module 301 and monitoring module 302.
Resource management module 301, for creating, deleting back-up file directories, the file latest edition of modification is copied to In back-up file directories;
Monitoring module 302, for monitoring whether the file in safe U disc by software for editing is opened, changes and closed.As safe U When file in disk is opened by software for editing, monitoring module notice resource management module creates a backup text in safe U disc Part catalogue;Whether file is changed according to policy monitor, if modification, notifies resource management module by the latest edition of modification Originally copy in the back-up file directories, otherwise do not take any action;Further, monitor whether the file is edited Software is closed, if closing, notice resource management module deletes the back-up file directories.
Each module of device described in the present embodiment realizes the detailed process of respective function, refer to shown in above-mentioned Fig. 1 and Fig. 2 Particular content described in embodiment.
A kind of file for safe U disc provided by the present embodiment loses device, can be easy in backup directory In find latest edition backup file, so as to solving because of unexpected situations such as extracting safe U disc, accident power-off or system crash The problem of losing data, also greatly increases the usage experience to safe U disc.
It is described above, it is preferred embodiments of the present invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with The people of the technology is in presently disclosed technical scope, and the modification that can easily expect, equivalent substitution, improvement etc. all should Cover within the scope of the present invention.Therefore, protection scope of the present invention should be defined by the protection domain of claim.

Claims (10)

1. a kind of file anti-loss method and device for safe U disc, it is characterised in that be divided into following steps:
(1)When the file in safe U disc is opened by software for editing, a back-up file directories are created in safe U disc;
(2)Whether file is changed according to policy monitor, if modification, the backup is copied to by the latest edition of modification In file directory, otherwise any action is not taken;
(3)Monitor whether the file is closed by software for editing, if closing, delete the back-up file directories, it is on the contrary then return It is back to step(2).
2. file anti-loss method according to claim 1, it is characterised in that in the step(1)Afterwards, it is if described standby Part file directory creates failure, can send miscue message.
3. file anti-loss method according to claim 1, it is characterised in that in the step(2)Before, can configure The strategy of file monitor, the strategy include the strategy based on time interval and the strategy based on file identification.
4. file anti-loss method according to claim 3, it is characterised in that the strategy based on time interval is Refer to, the time interval of file monitor is set, monitor whether a file is changed or closed every a time interval.
5. file anti-loss method according to claim 3, it is characterised in that the strategy based on file identification is Refer to, the file importance according to specified by file identification, automatically determine the time interval of file monitor.
6. file anti-loss method according to claim 1, it is characterised in that the step(2)Also include:By described The time attribute of file judges whether file is changed.
7. file anti-loss method according to claim 1, it is characterised in that further, the step(2)Also wrap Include:Judge whether file is changed by file content.
8. a kind of file loss prevention device for safe U disc, it is characterised in that by resource management module and monitoring module group Into,
Resource management module, for creating, deleting back-up file directories, the file latest edition of modification is copied into backup file In catalogue;
Monitoring module, for monitoring whether the file in safe U disc by software for editing is opened, changes and closed.
9. file loss prevention device according to claim 8, it is characterised in that including:
File in monitoring module monitoring safe U disc, when the file in safe U disc is opened by software for editing, monitoring module leads to Know that resource management module creates a back-up file directories in safe U disc;
Whether monitoring module file according to policy monitor is changed, if modification, notifies resource management module by modification Latest edition is copied in the back-up file directories, otherwise does not take any action;
Monitoring module monitors whether the file is closed by software for editing, if closing, described in notice resource management module deletion Back-up file directories.
10. file loss prevention device according to claim 9, it is characterised in that the strategy includes being based on time interval Strategy and the strategy based on file identification.
CN201710792272.3A 2017-09-05 2017-09-05 A kind of file anti-loss method and device for safe U disc Pending CN107632905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710792272.3A CN107632905A (en) 2017-09-05 2017-09-05 A kind of file anti-loss method and device for safe U disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710792272.3A CN107632905A (en) 2017-09-05 2017-09-05 A kind of file anti-loss method and device for safe U disc

Publications (1)

Publication Number Publication Date
CN107632905A true CN107632905A (en) 2018-01-26

Family

ID=61100472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710792272.3A Pending CN107632905A (en) 2017-09-05 2017-09-05 A kind of file anti-loss method and device for safe U disc

Country Status (1)

Country Link
CN (1) CN107632905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159789A (en) * 2019-12-26 2020-05-15 深信服科技股份有限公司 Method, device, equipment and storage medium for monitoring file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729270A (en) * 2013-12-13 2014-04-16 北京智谷睿拓技术服务有限公司 Backup method and operation equipment
CN104866435A (en) * 2015-06-06 2015-08-26 成都云祺科技有限公司 Continuous data protection method
CN105119995A (en) * 2015-08-27 2015-12-02 北京恒华伟业科技股份有限公司 File cloud saving method, terminal equipment and backup server
CN105302674A (en) * 2015-11-24 2016-02-03 贵州联科卫信科技有限公司 Method for recovering document of electronic medical record editor
WO2016085822A1 (en) * 2014-11-24 2016-06-02 Google Inc. Systems and methods for editing a file in a non-native application using an application engine
CN106776511A (en) * 2016-11-11 2017-05-31 郑州云海信息技术有限公司 One kind editor document storage method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729270A (en) * 2013-12-13 2014-04-16 北京智谷睿拓技术服务有限公司 Backup method and operation equipment
WO2016085822A1 (en) * 2014-11-24 2016-06-02 Google Inc. Systems and methods for editing a file in a non-native application using an application engine
CN104866435A (en) * 2015-06-06 2015-08-26 成都云祺科技有限公司 Continuous data protection method
CN105119995A (en) * 2015-08-27 2015-12-02 北京恒华伟业科技股份有限公司 File cloud saving method, terminal equipment and backup server
CN105302674A (en) * 2015-11-24 2016-02-03 贵州联科卫信科技有限公司 Method for recovering document of electronic medical record editor
CN106776511A (en) * 2016-11-11 2017-05-31 郑州云海信息技术有限公司 One kind editor document storage method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159789A (en) * 2019-12-26 2020-05-15 深信服科技股份有限公司 Method, device, equipment and storage medium for monitoring file

Similar Documents

Publication Publication Date Title
US7680830B1 (en) System and method for policy-based data lifecycle management
US8683228B2 (en) System and method for WORM data storage
US7523149B1 (en) System and method for continuous protection of working set data using a local independent staging device
CN101539873B (en) Data recovery method, data node and distributed file system
US9639540B2 (en) Retention management in a worm storage system
US20140095451A1 (en) System and method for minimizing data recovery window
CN102902672B (en) Method and device for cleaning file system
US20160112435A1 (en) Systems and methods for file loading
CN102591802A (en) USB flash disk with stored files openable while irreproducible
CN102043920A (en) Access quarantine method of public file in data divulgence protection system
US11687417B2 (en) Secondary storage protection
CN111177122A (en) Database backup method, device, equipment and computer readable storage medium
US9342550B1 (en) Systems and methods for preventing data loss via temporary-file generating applications
WO2024188047A1 (en) Snapshot storage method and system, device, and storage medium
CN106357703A (en) Cluster switching method and cluster switching equipment
CN113918388A (en) Data recovery method, device, equipment and storage medium
CN102799503A (en) Recover method applied to large quantity of small files
CN113190178B (en) Traceless data deletion method and traceless data deletion system in FAT32 file system
CN107632905A (en) A kind of file anti-loss method and device for safe U disc
JP2009524122A (en) Emergency data storage service
WO2009031156A2 (en) Method and apparatus for grid based data protection
KR100458550B1 (en) Data delete detecting and recovering system and methode thereof
US20190065065A1 (en) Data protection method and storage server
US20140215209A1 (en) Enterprise distributed free space file system
US9116905B1 (en) System and method for cataloging data

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180126