CN103226603A - File synchronization update method and system based on portable storage device - Google Patents

File synchronization update method and system based on portable storage device Download PDF

Info

Publication number
CN103226603A
CN103226603A CN2013101519904A CN201310151990A CN103226603A CN 103226603 A CN103226603 A CN 103226603A CN 2013101519904 A CN2013101519904 A CN 2013101519904A CN 201310151990 A CN201310151990 A CN 201310151990A CN 103226603 A CN103226603 A CN 103226603A
Authority
CN
China
Prior art keywords
file
storage device
movable storage
main folder
computer terminal
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
CN2013101519904A
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.)
Nanjing University of Information Science and Technology
Original Assignee
Nanjing University of Information Science and Technology
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 Nanjing University of Information Science and Technology filed Critical Nanjing University of Information Science and Technology
Priority to CN2013101519904A priority Critical patent/CN103226603A/en
Publication of CN103226603A publication Critical patent/CN103226603A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a file synchronization update method based on a portable storage device, which comprises the following steps: (1) creating a movable main folder and a fixed main folder which are corresponding to each other; (2) automatically performing comparison to files in the movable main folder and the fixed main folder, so as to mutually copy latest files to replace old files; and (3) monitoring modification time of the movable main folder and the fixed main folder, wherein if the modification time is changed, the files in the movable main folder and the fixed main folder are compared to mutually copy the latest files to replace the old files. Meanwhile, the invention further provides a file synchronization update system based on the portable storage device. According to the method and the system, only with the portable storage device, synchronous file processing of a plurality of computers can be achieved without relying on the internet. Therefore, the method and the system are convenient to use and high in safety performance.

Description

A kind of synchronously renewing file method and system thereof based on movable storage device
Technical field
The present invention relates to a kind of synchronously renewing file method and system thereof, in particular, relate to a kind of synchronously renewing file method and system thereof, belong to the Computer Applied Technology field based on movable storage device.
Background technology
The clerical workforce will handle a large amount of document files often, and need on multiple computers, edit sometimes same document, classic method is manually the document of up-to-date modification to be transferred on other computers by movable storage device or Email by the user, after finishing, modification also to return, this has greatly increased user's labour intensity on the one hand, operation inconvenience; The more important thing is that if user's negligence has been forgotten up-to-date document copy or sent, then the user can not obtain up-to-date file on another computer.
At present, utilize both at home and abroad cloud realize between computer and the net dish file synchronously, for example, external dropbox, the fast dish in domestic Kingsoft etc.These Network Synchronization modes can address these problems more conveniently, but it must rely on the internet, and the computer of no network can not realize synchronously in this way, and, poor stability, range of application is narrow.
Summary of the invention
Technical matters to be solved by this invention is, overcomes the shortcoming of prior art, provide a kind of security performance good, be not subjected to network limits and the wide synchronously renewing file method of usable range based on movable storage device.
Simultaneously, the present invention also provides a kind of synchronously renewing file system based on movable storage device.
In order to solve above technical matters, the invention provides a kind of synchronously renewing file method based on movable storage device, carry out as follows:
(1) set up mobile main folder on movable storage device, set up fixedly main folder in the computer terminal, described mobile main folder is corresponding mutually with described fixedly main folder;
(2) after movable storage device was connected with the computer terminal and is identified, updating device judged that whether the modification time of mobile main folder is identical with the modification time of fixing main folder, if identical, then do not do operation synchronously; If it is inequality, then contrast mobile main folder and the fixing modification time of corresponding file mutually in the main folder, cover the file of early version with the file of redaction, simultaneously, upgrade main folder and file modifying time in movable storage device and/or the computer terminal;
(3) the fixing modification time that presss from both sides of main folder and move of updating device monitoring in real time synchronously, if modification time changes, then contrast mobile main folder and the fixing modification time of corresponding file mutually in the main folder, cover the file of early version with the file of redaction, simultaneously, main folder and the file modifying time in renewal movable storage device and/or the computer terminal.
Being further defined to of technical solution of the present invention: in step (2) and the step (3), the modification time of mobile main folder and when fixedly the modification time of main folder is inequality, if mobile main folder or fixedly have in the main folder before the file that do not occur, then with this file copy to an end that does not have this file.
Further: when updating device directly copies in the respective file folder when the file with redaction covers the file of early version or with file synchronously, the capacity judgment means is judged the residual capacity of respective storage devices, file covers or file upgrades operation if residual capacity smaller or equal to being updated or newly-built file, is then carried out; If residual capacity, is then sent the wrong prompting of wrong do greater than being updated or newly-built file and is not carried out the operation that file covers or file upgrades.
Further: the method for computer terminal identification movable storage device is in the step (2):
I, recognition device obtain the disk tabulation of computer terminal and the type of each disk;
II, location movable storage device, if location failure then re-executes the step I, if locate successfully, execution in step III then;
Whether the sequence number of the movable storage device of III, judgement identification is correct, if incorrect, then re-executes the step I, if correct, then discerns the movable storage device success, returns the drive letter of movable storage device.
Another technical scheme provided by the invention is: a kind of synchronously renewing file system based on movable storage device, comprise movable storage device and computer terminal, it is characterized in that, also comprise recognition device and synchronous updating device, described recognition device and described synchronous updating device all are arranged between described movable storage device and the computer terminal
Described recognition device is used to make described computer terminal to discern described movable storage device, and returns the drive letter of described movable storage device;
Described synchronous updating device comprises time contrast module and file update module, and described time contrast module is used to contrast respective file folder and file modifying time on described computer terminal and the described movable storage device; Described file update module is used for that file is contrasted the different file of modification time that module contrasts and upgrades.
Being further defined to of the technical program: also comprise the capacity judgment means that is arranged between described movable storage device and the computer terminal, be used for that the file update module covers or during new files, judge whether the capacity of movable storage device or computer terminal meets the requirement of waiting to cover or treat newly-built file on movable storage device or computer terminal.
The invention has the beneficial effects as follows: a kind of synchronously renewing file method and system thereof provided by the invention based on movable storage device, as long as carry movable storage device, just can realize the synchronous of multiple computers processing file, need not to depend on the internet, easy to use, the security performance height, and file synchronization of the present invention is all finished automatically, avoid the file can not synchronous fully situation, reduce labour intensity, alleviate the computing machine burden, increase work efficiency.
Description of drawings
Fig. 1 is the frame diagram of a kind of synchronously renewing file system based on movable storage device of the present invention;
Fig. 2 is the process flow diagram of a kind of synchronously renewing file method based on movable storage device of the present invention;
Fig. 3 is the process flow diagram of the method for identification movable storage device in computer terminal of the present invention.
Embodiment
Embodiment 1
A kind of synchronously renewing file system based on movable storage device that present embodiment provides, its frame diagram comprises movable storage device and computer terminal as shown in Figure 1.Flash memory device is USB flash disk or portable hard drive, and the computer terminal is the computing machine that Windows operating system has been installed, and connects by USB interface between movable storage device and the computer terminal, supports hot plug technology.
Also comprise the recognition device that is arranged between movable storage device and the computer terminal, synchronous updating device and capacity judgment means, recognition device, synchronous updating device and capacity judgment means are carried out two-way communication with movable storage device and computer terminal respectively.
Recognition device is used to make described computer terminal to discern described movable storage device, and returns the drive letter of described movable storage device.
Updating device comprises time contrast module and file update module synchronously, and described time contrast module is used to contrast respective file folder and file modifying time on described computer terminal and the described movable storage device; Described file update module is used for that file is contrasted the different file of modification time that module contrasts and upgrades.
The capacity judgment means is used for that the file update module covers or during new files, judges whether the capacity of movable storage device or computer terminal meets the requirement of waiting to cover or treat newly-built file on movable storage device or computer terminal.
The method of a kind of synchronously renewing file system based on movable storage device provided by the invention, its process flow diagram carries out as shown in Figure 2 as follows:
(1) set up mobile main folder on movable storage device, set up fixedly main folder in the computer terminal, described mobile main folder is corresponding mutually with described fixedly main folder.
The method of computer terminal identification movable storage device is:
I, recognition device obtain the disk tabulation of computer terminal and the type of each disk;
II, location movable storage device, if location failure then re-executes the step I, if locate successfully, execution in step III then;
Whether the sequence number of the movable storage device of III, judgement identification is correct, if incorrect, then re-executes the step I, if correct, then discerns the movable storage device success, returns the drive letter of movable storage device.
In the above-mentioned steps, several api functions that Windows provides are mainly used in the identification of movable storage device, as GetLogicalDriveStringsA, GetDriveTypeA, GetDiskFreeSpaceExA etc., these functions are encapsulated in the kernel32.dll dynamic link library.Wherein, the GetLogicalDriveStringsA function can obtain the drive letter of all memory devices of this machine, comprises hard disk, portable hard drive, floppy disk, CD-ROM drive etc.; GetDriveTypeA then can obtain the type of specifying driver.
By above-mentioned location with to the reading of movable storage device sequence number, guarantee to discern the correct synchronous movable storage device of using, and provide information such as drive number for operation and visit movable storage device.
(2) after movable storage device was connected with the computer terminal and is identified, updating device judged that whether the modification time of mobile main folder is identical with the modification time of fixing main folder, if identical, then do not do operation synchronously; If it is inequality, then contrast mobile main folder and the fixing modification time of corresponding file mutually in the main folder, cover the file of early version with the file of redaction, simultaneously, upgrade main folder and file modifying time in movable storage device and/or the computer terminal.
The method of modification time contrast is: the interface function getfiletime () that offers the user by Windows waits the UTC time of obtaining the nearest modification of file, and convert this UTC time on the computer time zone time, obtaining each file modifying after the time, is that benchmark carries out the synchronous of file at file of the same name with nearest modification time.
(3) the fixing modification time that presss from both sides of main folder and move of updating device monitoring in real time synchronously, if modification time changes, then contrast mobile main folder and the fixing modification time of corresponding file mutually in the main folder, cover the file of early version with the file of redaction, simultaneously, main folder and the file modifying time in renewal movable storage device and/or the computer terminal.
Simultaneously, the modification time of mobile main folder and when fixedly the modification time of main folder is inequality, if mobile main folder or fixedly have in the main folder before the file that do not occur, then with this file copy to an end that does not have this file.
In addition, when updating device directly copies in the respective file folder when the file with redaction covers the file of early version or with file synchronously, the capacity judgment means is judged the residual capacity of respective storage devices, file covers or file upgrades operation if residual capacity smaller or equal to being updated or newly-built file, is then carried out; If residual capacity, is then sent the wrong prompting of wrong do greater than being updated or newly-built file and is not carried out the operation that file covers or file upgrades.
The present invention is media with the movable storage device, this media is inserted certain computer, automatically Monitoring Files is preserved operation, automatically this document is backuped under the specified folder of movable storage device, on the other hand when this movable storage device inserts another computer, automatically the file under the specified folder in file under the specified folder in the computer and the movable storage device is carried out the file comparison, the file of latest edition is copied mutually the file of the old version of replacement.The api interface function of Windows operating system to the identification of movable storage device, obtain file or folder modification time, obtain the size of file or folder.During idle condition, only need the modification time of specified folder in monitoring brain electricity and the mobile device, change, then enter into again and carry out under the sub-directory at length that the file modification time ratio can alleviate the burden of computing machine, raise the efficiency as if modification time.
In addition to the implementation, the present invention can also have other embodiments.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop on the protection domain of requirement of the present invention.

Claims (6)

1. the synchronously renewing file method based on movable storage device is characterized in that, carries out as follows:
(1) set up mobile main folder on movable storage device, set up fixedly main folder in the computer terminal, described mobile main folder is corresponding mutually with described fixedly main folder;
(2) after movable storage device was connected with the computer terminal and is identified, updating device judged that whether the modification time of mobile main folder is identical with the modification time of fixing main folder, if identical, then do not do operation synchronously; If it is inequality, then contrast mobile main folder and the fixing modification time of corresponding file mutually in the main folder, cover the file of early version with the file of redaction, simultaneously, upgrade main folder and file modifying time in movable storage device and/or the computer terminal;
(3) the fixing modification time that presss from both sides of main folder and move of updating device monitoring in real time synchronously, if modification time changes, then contrast mobile main folder and the fixing modification time of corresponding file mutually in the main folder, cover the file of early version with the file of redaction, simultaneously, main folder and the file modifying time in renewal movable storage device and/or the computer terminal.
2. a kind of synchronously renewing file method according to claim 1 based on movable storage device, it is characterized in that, in step (2) and the step (3), the modification time of mobile main folder and when fixedly the modification time of main folder is inequality, if mobile main folder or fixedly have in the main folder before the file that do not occur, then with this file copy to an end that does not have this file.
3. according to the described a kind of synchronously renewing file method of the arbitrary claim of claim 1-3 based on movable storage device, it is characterized in that, when updating device directly copies in the respective file folder when the file with redaction covers the file of early version or with file synchronously, the capacity judgment means is judged the residual capacity of respective storage devices, file covers or file upgrades operation if residual capacity smaller or equal to being updated or newly-built file, is then carried out; If residual capacity, is then sent the wrong prompting of wrong do greater than being updated or newly-built file and is not carried out the operation that file covers or file upgrades.
4. a kind of synchronously renewing file method based on movable storage device according to claim 1 is characterized in that, the method for computer terminal identification movable storage device is in the step (2):
I, recognition device obtain the disk tabulation of computer terminal and the type of each disk;
II, location movable storage device, if location failure then re-executes the step I, if locate successfully, execution in step III then;
Whether the sequence number of the movable storage device of III, judgement identification is correct, if incorrect, then re-executes the step I, if correct, then discerns the movable storage device success, returns the drive letter of movable storage device.
5. synchronously renewing file system based on movable storage device, comprise movable storage device and computer terminal, it is characterized in that, also comprise recognition device and synchronous updating device, described recognition device and described synchronous updating device all are arranged between described movable storage device and the computer terminal
Described recognition device is used to make described computer terminal to discern described movable storage device, and returns the drive letter of described movable storage device;
Described synchronous updating device comprises time contrast module and file update module, and described time contrast module is used to contrast respective file folder and file modifying time on described computer terminal and the described movable storage device; Described file update module is used for that file is contrasted the different file of modification time that module contrasts and upgrades.
6. a kind of synchronously renewing file system according to claim 5 based on movable storage device, it is characterized in that, also comprise the capacity judgment means that is arranged between described movable storage device and the computer terminal, be used for that the file update module covers or during new files, judge whether the capacity of movable storage device or computer terminal meets the requirement of waiting to cover or treat newly-built file on movable storage device or computer terminal.
CN2013101519904A 2013-04-27 2013-04-27 File synchronization update method and system based on portable storage device Pending CN103226603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101519904A CN103226603A (en) 2013-04-27 2013-04-27 File synchronization update method and system based on portable storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101519904A CN103226603A (en) 2013-04-27 2013-04-27 File synchronization update method and system based on portable storage device

Publications (1)

Publication Number Publication Date
CN103226603A true CN103226603A (en) 2013-07-31

Family

ID=48837048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101519904A Pending CN103226603A (en) 2013-04-27 2013-04-27 File synchronization update method and system based on portable storage device

Country Status (1)

Country Link
CN (1) CN103226603A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462208A (en) * 2014-11-03 2015-03-25 深圳市兴森快捷电路科技股份有限公司 Automatic CAM file removal method
CN105446999A (en) * 2014-07-29 2016-03-30 李强生 File managing method and device
CN105446575A (en) * 2014-06-03 2016-03-30 联想(北京)有限公司 Information processing method and electronic equipment
CN107145501A (en) * 2017-03-20 2017-09-08 中国建设银行股份有限公司 File updating method, file copying method and corresponding system
WO2017198010A1 (en) * 2016-05-17 2017-11-23 阿里巴巴集团控股有限公司 Method and device for data version comparison between trans-time zone stations
CN108234554A (en) * 2016-12-15 2018-06-29 北京金山云网络技术有限公司 A kind of cloud file editing method and device
CN108647317A (en) * 2018-05-10 2018-10-12 东软集团股份有限公司 Generation method, device and the storage medium and electronic equipment of delta file

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324544B1 (en) * 1998-10-21 2001-11-27 Microsoft Corporation File object synchronization between a desktop computer and a mobile device
US20030079038A1 (en) * 2001-10-22 2003-04-24 Apple Computer, Inc. Intelligent interaction between media player and host computer
CN1677355A (en) * 2004-03-31 2005-10-05 深圳市朗科科技有限公司 Method system and apparatus for synchronous update of files
CN1932775A (en) * 2005-09-15 2007-03-21 鸿富锦精密工业(深圳)有限公司 Card reader testing system and method
CN102479055A (en) * 2010-11-26 2012-05-30 鸿富锦精密工业(深圳)有限公司 Computer and method for identifying mobile storage equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324544B1 (en) * 1998-10-21 2001-11-27 Microsoft Corporation File object synchronization between a desktop computer and a mobile device
US20030079038A1 (en) * 2001-10-22 2003-04-24 Apple Computer, Inc. Intelligent interaction between media player and host computer
CN1677355A (en) * 2004-03-31 2005-10-05 深圳市朗科科技有限公司 Method system and apparatus for synchronous update of files
CN1932775A (en) * 2005-09-15 2007-03-21 鸿富锦精密工业(深圳)有限公司 Card reader testing system and method
CN102479055A (en) * 2010-11-26 2012-05-30 鸿富锦精密工业(深圳)有限公司 Computer and method for identifying mobile storage equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曹成龙 等: "基于文件过滤驱动的移动存储控制方法", 《计算机应用》 *
李鸿吉: "《Visual Basic高级编程技术——从VB6.0向VB.NET过渡》", 31 January 2003, 科学出版社 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446575A (en) * 2014-06-03 2016-03-30 联想(北京)有限公司 Information processing method and electronic equipment
CN105446575B (en) * 2014-06-03 2019-06-25 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105446999A (en) * 2014-07-29 2016-03-30 李强生 File managing method and device
CN104462208A (en) * 2014-11-03 2015-03-25 深圳市兴森快捷电路科技股份有限公司 Automatic CAM file removal method
CN104462208B (en) * 2014-11-03 2018-06-05 深圳市兴森快捷电路科技股份有限公司 A kind of automatic offline method of CAM file
US10805391B2 (en) 2016-05-17 2020-10-13 Alibaba Group Holding Limited Method and device for data version comparison between trans-time zone sites
WO2017198010A1 (en) * 2016-05-17 2017-11-23 阿里巴巴集团控股有限公司 Method and device for data version comparison between trans-time zone stations
US10924549B2 (en) 2016-05-17 2021-02-16 Advanced New Technologies Co., Ltd. Method and device for data version comparison between trans-time zone sites
US10834187B2 (en) 2016-05-17 2020-11-10 Advanced New Technologies Co., Ltd. Method and device for data version comparison between trans-time zone sites
CN108234554A (en) * 2016-12-15 2018-06-29 北京金山云网络技术有限公司 A kind of cloud file editing method and device
CN107145501A (en) * 2017-03-20 2017-09-08 中国建设银行股份有限公司 File updating method, file copying method and corresponding system
CN107145501B (en) * 2017-03-20 2020-09-29 中国建设银行股份有限公司 File updating method, file copying method and corresponding system
CN108647317A (en) * 2018-05-10 2018-10-12 东软集团股份有限公司 Generation method, device and the storage medium and electronic equipment of delta file

Similar Documents

Publication Publication Date Title
CN103226603A (en) File synchronization update method and system based on portable storage device
TWI740901B (en) Method and device for performing data recovery operation
US8738883B2 (en) Snapshot creation from block lists
Son et al. A study of user data integrity during acquisition of Android devices
CN104021145B (en) The method and apparatus that a kind of mixed service concurrently accesses
CN103176824A (en) System upgrade method and system upgrade device
CN104714811A (en) Method and device for manufacturing difference upgrade package and system difference upgrade method and device
US8260752B1 (en) Systems and methods for change tracking with multiple backup jobs
US20160283711A1 (en) eMMC Monitoring Method and Apparatus
CN103530427B (en) A kind of dynamic switching method and device based on multiple database
KR20190050993A (en) Update escalation system and method
CN108205560B (en) Data synchronization method and device
US20160364177A1 (en) Concurrent, moving, garbage collector
CN103019891A (en) Method and system for restoring deleted file
CN104407890A (en) Method for starting Android system from OTG (On-The-Go) equipment
CN104516796A (en) Command set based network element backup and recovery method and device
US20160179624A1 (en) Expedited Device Backup, Wipe, and Enrollment
US8966238B2 (en) Personalization of shared electronic devices
US9037821B1 (en) Systems and methods for replicating snapshots across backup domains
CN106991020B (en) Efficient processing of file system objects for image level backups
US20130024420A1 (en) Data synchronization
CN107656796B (en) Virtual machine cold migration method, system and equipment
KR20150097001A (en) Storage device for performing in-storage computing operations, method thereof, and system including same
CN107193619B (en) Method and device for automatically updating compiled version
EP2840501A1 (en) Database management method, database system and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130731