CN102624686A - Bidirectional automatic synchronizing method for network folders - Google Patents
Bidirectional automatic synchronizing method for network folders Download PDFInfo
- Publication number
- CN102624686A CN102624686A CN2011103831658A CN201110383165A CN102624686A CN 102624686 A CN102624686 A CN 102624686A CN 2011103831658 A CN2011103831658 A CN 2011103831658A CN 201110383165 A CN201110383165 A CN 201110383165A CN 102624686 A CN102624686 A CN 102624686A
- Authority
- CN
- China
- Prior art keywords
- file
- folder
- synchronization
- local area
- area network
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a bidirectional automatic synchronizing method for network folders. The bidirectional automatic synchronizing method includes the implementation steps: 1) setting a target folder at a local area network client; 2) distributing a corresponding synchronous folder for the registered target folder by a local area network server; 3) setting a timer used for automatically synchronizing the folders at the local area network client, and starting the timer after starting up; and 4) transmitting a synchronization request command to the local area network server from the local area network client if time of the timer is up, sharing the synchronous folder with the local area network client by the local area network server, granting write permission to the local area network client, realizing bidirectional synchronization of files of the target folder and files of the synchronous folder by the local area network client, transmitting a synchronization completing command to the local area network server after copying, and canceling sharing of the synchronous folder after the local area network receives the synchronization completing command. The bidirectional automatic synchronizing method has the advantages that synchronous storage of the folders is realized, the files are reliably stored, the read-write speed is fast, an access performance is high, and utilization is convenient.
Description
Technical field
The present invention relates to computer realm, be specifically related to a kind of two-way automatic synchronous method of network folder.
Background technology
The internet is general at present, the part in becoming routine work and living.For information and data sharing, the unified internet of realizing insert or the like purpose, the internal lan of oneself has all been set up in the work of most basically government organs, enterprise and individual family etc. at present.
But; Along with increasing of local area network (LAN) computer, memory unit skewness on a lot of computers weighs at present, and for example some old computers have only tens of G; The then hundreds of at least G of new computer even thousands of G; Therefore the memory space of insufficient memory and new computer that has old computer is again less than the problem of effectively utilizing, and the hardware resource that has influenced computer in the local area network (LAN) is shared, and has all brought inconvenience for everybody work and life.
Summary of the invention
The technical problem that the present invention will solve provides the two-way automatic synchronous method of a kind of file stores synchronized, file storage is reliable, read or write speed is fast, access performance is high, easy to use network folder.
In order to solve the problems of the technologies described above, the technical scheme that the present invention adopts is:
A kind of two-way automatic synchronous method of network folder, implementation step is following:
1) local area network (LAN) client target setting file, and destination folder registered to LAN server;
2) LAN server is the synchronization folder of a correspondence of destination folder distribution of said registration;
3) the local area network (LAN) client is provided for realizing the autosynchronous timer of file, and after start, starts timer;
4) if timer time arrives; Then the local area network (LAN) client is sent a request synch command and is given LAN server; LAN server is shared said synchronization folder and is given said local area network (LAN) client and give write permission; The local area network (LAN) client is the file of destination folder and the file bi-directional synchronization of synchronization folder, and sends and accomplish order synchronously and give LAN server duplicating the back that finishes, and LAN server receives orders and then cancels sharing of said synchronization folder.
Further improvement as technique scheme:
The local area network (LAN) client specifically comprises the file of destination folder and the file bi-directional synchronization of synchronization folder in the said step 4): at first local area network (LAN) client traversal is with the file of destination folder; Detect whether have relative path and the identical file of filename in the said synchronization folder to each file, if do not exist then this document is copied in the synchronization folder; Local area network (LAN) client traversal detects whether have relative path and filename corresponding file in the said destination folder with the file of synchronization folder to each file then, if do not exist then this document is copied in the destination folder.
Said traversal is during with the file of destination folder, if synchronization folder exists the file of identical file of relative path and filename and synchronization folder newer, then with the file of the file replacement destination folder of synchronization folder; If the file of destination folder is newer, then the file of destination folder is replaced the file of synchronization folder.
Said traversal is during with the file of synchronization folder, if destination folder exists the file of identical file of relative path and filename and destination folder newer, then with the file of the file replacement synchronization folder of destination folder; If the file of synchronization folder is newer, then the file of synchronization folder is replaced the file of destination folder.
The present invention has following advantage: the present invention distributes the synchronization folder of a correspondence for the destination folder of registration at local area network (LAN) client target setting file, LAN server; The local area network (LAN) client is provided for realizing the autosynchronous timer of file; And after start, start timer; If timer time arrives; Then the local area network (LAN) client is sent a request synch command and is given LAN server; LAN server is shared synchronization folder to the local area network (LAN) client and is given write permission; The local area network (LAN) client is the file of destination folder and the file bi-directional synchronization of synchronization folder, and sends and accomplish order synchronously and give LAN server duplicating the back that finishes, and LAN server receives orders and then cancels sharing of synchronization folder; Therefore can realize automatically between local area network (LAN) client and the LAN server file synchronously, guarantee synchronization folder not by undelegated visit, have file stores synchronized, file storage is reliable, security performance is high, read or write speed is fast, access performance is high, easy to use advantage.
Embodiment
Set forth in the face of the preferred embodiments of the present invention down in detail
, thereby so that advantage of the present invention and characteristic can be easier to it will be appreciated by those skilled in the art that protection scope of the present invention is made more explicit defining.
The implementation step of the two-way automatic synchronous method of present embodiment network folder is following:
1) local area network (LAN) client target setting file, and destination folder registered to LAN server;
2) LAN server distributes the synchronization folder of a correspondence for the destination folder of registration;
3) the local area network (LAN) client is provided for realizing the autosynchronous timer of file, and after start, starts timer;
4) if timer time arrives; Then the local area network (LAN) client is sent a request synch command and is given LAN server; LAN server is shared synchronization folder to the local area network (LAN) client and is given write permission; The local area network (LAN) client is the file of destination folder and the file bi-directional synchronization of synchronization folder, and sends and accomplish order synchronously and give LAN server duplicating the back that finishes, and LAN server receives orders and then cancels sharing of synchronization folder.
The local area network (LAN) client specifically comprises the file of destination folder and the file bi-directional synchronization of synchronization folder in the present embodiment step 4): at first local area network (LAN) client traversal is with the file of destination folder; Detect in synchronization folder whether have relative path and the identical file of filename to each file, if do not exist then this document is copied in the synchronization folder; Local area network (LAN) client traversal detects in destination folder whether have relative path and filename corresponding file with the file of synchronization folder to each file then, if do not exist then this document is copied in the destination folder.
Present embodiment traversal is during with the file of destination folder, if synchronization folder exists the file of identical file of relative path and filename and synchronization folder newer, then with the file of the file replacement destination folder of synchronization folder; If the file of destination folder is newer, then the file of destination folder is replaced the file of synchronization folder.
Present embodiment traversal is during with the file of synchronization folder, if destination folder exists the file of identical file of relative path and filename and destination folder newer, then with the file of the file replacement synchronization folder of destination folder; If the file of synchronization folder is newer, then the file of synchronization folder is replaced the file of destination folder.
The above only is a preferred implementation of the present invention, and protection scope of the present invention also not only is confined to the foregoing description, and all technical schemes that belongs under the thinking of the present invention all belong to protection scope of the present invention.Should be pointed out that for those skilled in the art in the some improvement and the retouching that do not break away under the principle of the invention prerequisite, these improvement and retouching also should be regarded as protection scope of the present invention.
Claims (4)
1. the two-way automatic synchronous method of a network folder is characterized in that implementation step is following:
1) local area network (LAN) client target setting file, and destination folder registered to LAN server;
2) LAN server is the synchronization folder of a correspondence of destination folder distribution of said registration;
3) the local area network (LAN) client is provided for realizing the autosynchronous timer of file, and after start, starts timer;
4) if timer time arrives; Then the local area network (LAN) client is sent a request synch command and is given LAN server; LAN server is shared said synchronization folder and is given said local area network (LAN) client and give write permission; The local area network (LAN) client is the file of destination folder and the file bi-directional synchronization of synchronization folder, and sends and accomplish order synchronously and give LAN server duplicating the back that finishes, and LAN server receives orders and then cancels sharing of said synchronization folder.
2. the two-way automatic synchronous method of network folder according to claim 1; It is characterized in that: the local area network (LAN) client specifically comprises the file of destination folder and the file bi-directional synchronization of synchronization folder in the said step 4): at first local area network (LAN) client traversal is with the file of destination folder; Detect whether have relative path and the identical file of filename in the said synchronization folder to each file, if do not exist then this document is copied in the synchronization folder; Local area network (LAN) client traversal detects whether have relative path and filename corresponding file in the said destination folder with the file of synchronization folder to each file then, if do not exist then this document is copied in the destination folder.
3. the two-way automatic synchronous method of network folder according to claim 2; It is characterized in that: said traversal is during with the file of destination folder; If synchronization folder exists the file of identical file of relative path and filename and synchronization folder newer, then with the file of the file replacement destination folder of synchronization folder; If the file of destination folder is newer, then the file of destination folder is replaced the file of synchronization folder.
4. the two-way automatic synchronous method of network folder according to claim 3; It is characterized in that: said traversal is during with the file of synchronization folder; If destination folder exists the file of identical file of relative path and filename and destination folder newer, then with the file of the file replacement synchronization folder of destination folder; If the file of synchronization folder is newer, then the file of synchronization folder is replaced the file of destination folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103831658A CN102624686A (en) | 2011-11-28 | 2011-11-28 | Bidirectional automatic synchronizing method for network folders |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103831658A CN102624686A (en) | 2011-11-28 | 2011-11-28 | Bidirectional automatic synchronizing method for network folders |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102624686A true CN102624686A (en) | 2012-08-01 |
Family
ID=46564372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103831658A Pending CN102624686A (en) | 2011-11-28 | 2011-11-28 | Bidirectional automatic synchronizing method for network folders |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102624686A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475735A (en) * | 2013-09-25 | 2013-12-25 | 长沙裕邦软件开发有限公司 | Method and system capable of converting local folders to network folders |
CN104683426A (en) * | 2013-11-28 | 2015-06-03 | 群晖科技股份有限公司 | Method for operating network system |
CN111291011A (en) * | 2020-02-19 | 2020-06-16 | 北京百度网讯科技有限公司 | File synchronization method and device, electronic equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1549130A (en) * | 2003-05-06 | 2004-11-24 | 联想(北京)有限公司 | Method of document synchronization |
CN1956452A (en) * | 2005-10-27 | 2007-05-02 | 华为技术有限公司 | Method, system, user terminal and server for implementing data synchronous |
CN102169453A (en) * | 2011-03-08 | 2011-08-31 | 杭州电子科技大学 | File online backup method |
-
2011
- 2011-11-28 CN CN2011103831658A patent/CN102624686A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1549130A (en) * | 2003-05-06 | 2004-11-24 | 联想(北京)有限公司 | Method of document synchronization |
CN1956452A (en) * | 2005-10-27 | 2007-05-02 | 华为技术有限公司 | Method, system, user terminal and server for implementing data synchronous |
CN102169453A (en) * | 2011-03-08 | 2011-08-31 | 杭州电子科技大学 | File online backup method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475735A (en) * | 2013-09-25 | 2013-12-25 | 长沙裕邦软件开发有限公司 | Method and system capable of converting local folders to network folders |
CN104683426A (en) * | 2013-11-28 | 2015-06-03 | 群晖科技股份有限公司 | Method for operating network system |
CN104683426B (en) * | 2013-11-28 | 2018-04-06 | 群晖科技股份有限公司 | Method for operating network system |
CN111291011A (en) * | 2020-02-19 | 2020-06-16 | 北京百度网讯科技有限公司 | File synchronization method and device, electronic equipment and readable storage medium |
CN111291011B (en) * | 2020-02-19 | 2023-10-20 | 北京百度网讯科技有限公司 | File synchronization method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW412692B (en) | Parallel file system and method with a metadata node | |
CN107391758B (en) | Database switching method, device and equipment | |
CN102985911B (en) | Telescopic in height and distributed data de-duplication | |
EP3035197B1 (en) | File migration method and apparatus and storage device | |
TW409215B (en) | Parallel file system and method for multiple node file access | |
US20170286009A1 (en) | System and method for reference tracking garbage collector | |
CN100583050C (en) | Method for protecting and recovering continuous data based on time stamp diary memory | |
CN105843702A (en) | Method and device for data backup | |
CN109118358A (en) | The synchronization based on component of digital asset | |
CN102567445B (en) | Method for guaranteeing consistency of metadata in distributed file system | |
CN102968486B (en) | A kind of highly reliable file synchronisation method based on change journal | |
CN104077380B (en) | A kind of data de-duplication method, apparatus and system | |
JP2003223354A (en) | File update managing system | |
US20080294700A1 (en) | File management system, file management method, file management program | |
JP6033949B2 (en) | Information processing system | |
CN104184812B (en) | A kind of multipoint data transmission method based on private clound | |
CN103064927A (en) | Data access method and device of distributed file system | |
CN103605809A (en) | Data synchronization method | |
US20200409909A1 (en) | Adaptable multi-layered storage for deduplicating electronic messages | |
CN102508740A (en) | Remote replication method of file system | |
US20200379848A1 (en) | Adaptable multi-layered storage for generating search indexes | |
CN103309772A (en) | Database file backup method and system based on cloud storage | |
Strzelczak et al. | Concurrent Deletion in a Distributed {Content-Addressable} Storage System with Global Deduplication | |
WO2013137878A1 (en) | Accessing and replicating backup data objects | |
CN105824689A (en) | Storage synchronization method for virtual machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120801 |