CN102662991A - File-level synchronization method based on mobile storage devices - Google Patents
File-level synchronization method based on mobile storage devices Download PDFInfo
- Publication number
- CN102662991A CN102662991A CN2012100671897A CN201210067189A CN102662991A CN 102662991 A CN102662991 A CN 102662991A CN 2012100671897 A CN2012100671897 A CN 2012100671897A CN 201210067189 A CN201210067189 A CN 201210067189A CN 102662991 A CN102662991 A CN 102662991A
- Authority
- CN
- China
- Prior art keywords
- file
- cryptographic hash
- latest edition
- execution
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides a file-level synchronization method based on mobile storage devices. The method aims at the problem of file synchronization backup among multiple computer equipment. The method records hash values of different historical versions of a file to judge whether a file version is new among multiple computers, and carries out update operation for the file according to the judging result. Thus, the goal of convenient and fast synchronization of file data among multiple computers is achieved, working efficiency of users is improved, and data security is guaranteed.
Description
(1) technical field
What the present invention relates to is a kind of file-level method for synchronous based on movable storage device.
(2) background technology
In recent years, along with the quickening with work rhythm of popularizing of computer equipment, much human at home, office or other are local uses many computer offices.Many computing machines corresponding a plurality of hard disks, also corresponding a plurality of files are if lean on the mobile device manual synchronization fully; Then As time goes on, easy FileVersion on each computer is produced obscured the data manipulation that leads to errors at last; Reduce work efficiency, influence data security.Therefore how carrying out the file synchronization backup is problem demanding prompt solution.
File synchronization refers to have for the file that guarantees to be arranged in different storage device the process of identical content; If in a memory device, increase new file, revised file or deleted file; Synchronizing process can increase, revise, delete same file in the another one memory device; With this file data of realizing many computer equipments synchronously, backup and information sharing, make being kept perfectly property of file data and unitarity.Obviously, the quality of file synchronization backup method will be directly connected to user's work efficiency and data security.
Current, the file synchronization backup scenario mainly is based on movable memory equipment (for example movable memory equipment such as USB flash disk, portable hard drive), and between multiple computers, to carry out immediate data synchronous.Like the briefcase program in the windows operating system; Through depositing file in movable memory equipment; Take on other computing machines from primitive compuer; So that the file on the movable memory equipment is carried out required change, when movable memory equipment takes back primitive compuer, can easily the file synchronization that modification is arranged be returned primitive compuer then.Its advantage is that method is simple; Shortcoming is that this method file data only is present in primitive compuer and the movable memory equipment; There is not relevant file data on the local disk of other computing machines; If primitive compuer and movable memory equipment are damaged,, influence safety of data just can cause loss of data; In addition, if there is not movable memory equipment, user's operation file on other computing machines of just having no idea, therefore, ease of use is not good enough.
For work efficiency and the safety of data thereof that improves the user. the invention provides a kind of file-level method for synchronous based on movable storage device; Target is the data sync that realizes between computing machine and the movable storage device; The execution that is method is through movable memory equipment (for example movable memory equipment such as USB flash disk, portable hard drive); Convenient and swift between multiple computers synchronously, the backup file data, thereby significantly improve user's work efficiency, and ensure data security.
(3) summary of the invention
The objective of the invention is to a kind of file-level method for synchronous based on movable storage device.This method is to the problem of the file synchronization of many computer equipments backup, through movable memory equipment, convenient and swift between multiple computers synchronously, the backup file data, reach the work efficiency that improves the user at last, and ensure the purpose of data security.
The objective of the invention is to realize like this:
Comprise m file if treat simultaneous user's file F on the source computer device, be expressed as f respectively
1, f
2..., f
m, the cryptographic hash that each file is corresponding is expressed as h respectively
1, h
2..., h
mIf movable memory equipment c, synchronous file F
*In the All Files that comprises
When the user inserts on computer equipment or withdraws from movable memory equipment c, for
Synchronization program is computing machine file folder F file f
iGenerate a cryptographic hash h
i, and with c in the files stored f of institute
iThe cryptographic hash of each old version is compared, if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash; If the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
iRepeat said process, All Files disposes in file F;
Its concrete grammar step is:
(1) input removable media c;
(2) the pending file F of input, and the pending document queue f that All Files forms among the F
1, f
2..., f
m
(3) get a file f in the pending document queue of computer equipment
i, according to file f
iContent calculate cryptographic hash h
i, and with movable memory equipment c attend the files stored f of institute
iThe cryptographic hash of each old version is compared;
(4) if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash, execution in step (6);
Otherwise, execution in step (5);
(5) if the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
i, execution in step (6);
Otherwise, execution in step (6);
(6) with file f
iFrom pending document queue, remove;
(7) if pending document queue is not empty, execution in step (3);
Otherwise then program is finished.
Key of the present invention is how to identify the new and old of FileVersion between multiple computers.For this reason, through each historical version of log file
This cryptographic hash is judged the new and old situation of FileVersion between multiple computers, and carries out the renewal operation of file according to judged result, thereby has improved user's work efficiency and safety of data greatly.
Its main innovate point is following:
1. through each old version file cryptographic hash is saved in the movable memory equipment, the mode through the cryptographic hash comparison has realized the new and old evaluation of respective file version in many computer equipments.
2. when on computer equipment, inserting or withdrawing from movable memory equipment, synchronization program can automatically perform, and accomplishes the synchronous of file, thereby improves user's work efficiency, ensures safety of data.
(4) description of drawings
Fig. 1, file synchronisation method synoptic diagram
(5) embodiment
For example the present invention is done description in more detail below in conjunction with accompanying drawing:
The method of the invention is characterised in that:
Comprise m file if treat simultaneous user's file F on the source computer device, be expressed as f respectively
1, f
2..., f
m, the cryptographic hash that each file is corresponding is expressed as h respectively
1, h
2..., h
mIf movable memory equipment c, synchronous file F
*In the All Files that comprises
When the user inserts on computer equipment or withdraws from movable memory equipment c, for
Synchronization program is computing machine file folder F file f
iGenerate a cryptographic hash h
i, and with c in the files stored f of institute
iThe cryptographic hash of each old version is compared, if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash; If the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
iRepeat said process, All Files disposes in file F;
Its concrete grammar step is:
(1) input removable media c;
(2) the pending file F of input, and the pending document queue f that All Files forms among the F
1, f
2..., f
m
(3) get a file f in the pending document queue of computer equipment
i, according to file f
iContent calculate cryptographic hash h
i, and with movable memory equipment c attend the files stored f of institute
iThe cryptographic hash of each old version is compared;
(4) if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash, execution in step (6);
Otherwise, execution in step (5);
(5) if the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
i, execution in step (6);
Otherwise, execution in step (6);
(6) with file f
iFrom pending document queue, remove;
(7) if pending document queue is not empty, execution in step (3);
Otherwise then program is finished.
Its practical implementation pattern is such:
Whole algorithm practical implementation pattern is a circulation, promptly when the user inserts on computer equipment or withdraws from removable media c,
Synchronization program is computing machine file folder F file f
iGenerate a cryptographic hash h
i, and with c in the files stored f of institute
iThe cryptographic hash of each old version is compared, if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash; If the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
iRepeat said process, All Files disposes in file F.
Claims (1)
1. the file-level method for synchronous based on movable storage device is characterized in that: the objective of the invention is to realize like this: establish and treat on the source computer device that simultaneous user's file F has comprised m file, is expressed as f respectively
1, f
2..., f
m, the cryptographic hash that each file is corresponding is expressed as h respectively
1, h
2..., h
mIf movable memory equipment c, synchronous file F
*In the All Files that comprises
When the user inserts on computer equipment or withdraws from movable memory equipment c, for
Synchronization program is computing machine file folder F file f
iGenerate a cryptographic hash h
i, and with c in the files stored f of institute
iThe cryptographic hash of each old version is compared, if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash; If the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
iRepeat said process, All Files disposes in file F;
Its concrete grammar step is:
(1) input removable media c;
(2) the pending file F of input, and the pending document queue f that All Files forms among the F
1, f
2..., f
m
(3) get a file f in the pending document queue of computer equipment
i, according to file f
iContent calculate cryptographic hash h
i, and with movable memory equipment c attend the files stored f of institute
iThe cryptographic hash of each old version is compared;
(4) if do not find identical cryptographic hash, the file f on the computer equipment is described then
iBe latest edition, use file f
iReplacement c goes up the legacy version file
While cryptographic hash h
iBe saved in the database of c, and be labeled as the latest edition cryptographic hash, execution in step (6);
Otherwise, execution in step (5);
(5) if the cryptographic hash that in c, finds is not the latest edition cryptographic hash of multiple labeling in the database of c, the then file on the c
Be latest edition, use file
Legacy version file f on the replacement computing machine
i, execution in step (6);
Otherwise, execution in step (6);
(6) with file f
iFrom pending document queue, remove;
(7) if pending document queue is not empty, execution in step (3);
Otherwise then program is finished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100671897A CN102662991A (en) | 2012-03-14 | 2012-03-14 | File-level synchronization method based on mobile storage devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100671897A CN102662991A (en) | 2012-03-14 | 2012-03-14 | File-level synchronization method based on mobile storage devices |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102662991A true CN102662991A (en) | 2012-09-12 |
Family
ID=46772482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100671897A Pending CN102662991A (en) | 2012-03-14 | 2012-03-14 | File-level synchronization method based on mobile storage devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102662991A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015074260A1 (en) * | 2013-11-22 | 2015-05-28 | 华为技术有限公司 | Data synchronization method and data synchronization system |
CN106326048A (en) * | 2016-08-11 | 2017-01-11 | 广东欧珀移动通信有限公司 | External storage device detection method and device |
CN111427718A (en) * | 2019-12-10 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | File backup method, recovery method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1712992A1 (en) * | 2005-04-11 | 2006-10-18 | Sony Ericsson Mobile Communications AB | Updating of data instructions |
JP2007515092A (en) * | 2003-12-18 | 2007-06-07 | 松下電器産業株式会社 | Program data file storage method and authentication program execution method |
CN101174294A (en) * | 2007-11-19 | 2008-05-07 | 南京大学 | Software protection method based on version incremental backup |
CN101359353A (en) * | 2008-09-05 | 2009-02-04 | 成都市华为赛门铁克科技有限公司 | File protection method and device |
-
2012
- 2012-03-14 CN CN2012100671897A patent/CN102662991A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007515092A (en) * | 2003-12-18 | 2007-06-07 | 松下電器産業株式会社 | Program data file storage method and authentication program execution method |
EP1712992A1 (en) * | 2005-04-11 | 2006-10-18 | Sony Ericsson Mobile Communications AB | Updating of data instructions |
CN101174294A (en) * | 2007-11-19 | 2008-05-07 | 南京大学 | Software protection method based on version incremental backup |
CN101359353A (en) * | 2008-09-05 | 2009-02-04 | 成都市华为赛门铁克科技有限公司 | File protection method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015074260A1 (en) * | 2013-11-22 | 2015-05-28 | 华为技术有限公司 | Data synchronization method and data synchronization system |
CN106326048A (en) * | 2016-08-11 | 2017-01-11 | 广东欧珀移动通信有限公司 | External storage device detection method and device |
CN111427718A (en) * | 2019-12-10 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | File backup method, recovery method and device |
CN111427718B (en) * | 2019-12-10 | 2024-01-23 | 杭州海康威视数字技术股份有限公司 | File backup method, file recovery method and file recovery device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10048865B2 (en) | Disk partition stitching and rebalancing using a partition table | |
CN104866365B (en) | Promote the method, apparatus and electronic equipment of starting up speed | |
CN103530427B (en) | A kind of dynamic switching method and device based on multiple database | |
WO2015117426A1 (en) | File management method and device | |
WO2010150277A4 (en) | A method and system for directory management | |
CN102857570A (en) | Cloud synchronized method of files and cloud storage server | |
EP3598318A1 (en) | Merging playlists from multiple sources | |
US20130282676A1 (en) | Garbage collection-driven block thinning | |
GB2484019A (en) | An integrated approach for deduplicating data in a distributed environment that involves a source and a target | |
TW201737126A (en) | Method and device for executing data recovery operation | |
CN105302533A (en) | Code synchronizing method and apparatus | |
EP2651072A3 (en) | Systems and methods for secure data sharing | |
US9201916B2 (en) | Method, system, and computer-readable medium for providing a scalable bio-informatics sequence search on cloud | |
US20160306704A1 (en) | Portable Data Archiving Device | |
CN103186336B (en) | A kind of icon adjustment method and device | |
CN110795499A (en) | Cluster data synchronization method, device and equipment based on big data and storage medium | |
CN102811260A (en) | File cloud synchronizing system and method | |
CN102857578A (en) | File uploading method and file uploading system of network drive and network drive client | |
CN103226603A (en) | File synchronization update method and system based on portable storage device | |
CN112507020A (en) | Data synchronization method and device, computer equipment and storage medium | |
CN102681993A (en) | File synchronizing method, file synchronizing device and first electronic device | |
CN103853587A (en) | Method for writing flash based on cramfs and JFFS2 | |
CN102662991A (en) | File-level synchronization method based on mobile storage devices | |
CN114281779A (en) | Data synchronization method and device, computer equipment and storage medium | |
CN1549130A (en) | Method of document synchronization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120912 |