[go: up one dir, main page]

CN100363890C - Remote computer file synchronous update system and method - Google Patents

Remote computer file synchronous update system and method Download PDF

Info

Publication number
CN100363890C
CN100363890C CNB2004100774583A CN200410077458A CN100363890C CN 100363890 C CN100363890 C CN 100363890C CN B2004100774583 A CNB2004100774583 A CN B2004100774583A CN 200410077458 A CN200410077458 A CN 200410077458A CN 100363890 C CN100363890 C CN 100363890C
Authority
CN
China
Prior art keywords
file
listed files
remote computer
folder
module
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.)
Expired - Fee Related
Application number
CNB2004100774583A
Other languages
Chinese (zh)
Other versions
CN1786903A (en
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB2004100774583A priority Critical patent/CN100363890C/en
Publication of CN1786903A publication Critical patent/CN1786903A/en
Application granted granted Critical
Publication of CN100363890C publication Critical patent/CN100363890C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The present invention discloses a system and a method for synchronously updating a file of a remote computer. The system comprises a local computer and a remote computer which are connected by a network, wherein the local computer comprises a path appointing module, a file list generating module and a transmitting module, the path appointing module is used for appointing the paths of a source and an object folders, the file list generating module is used for hierarchically generating a file list according to a directory tree of the source folder, and the transmitting module is used for transmitting the file list; the remote computer comprises a receiving module, an analyzing module and a file updating module, the receiving module is used for receiving the file list transmitted by the local computer, the analyzing module is used for reading the file list and comparatively analyzing the file list and the file and the folder in a corresponding folder on the remote computer to judge the identity, and the file updating module is used for deleting and updating files. With the present invention, the file contents of the appointed folders in the remote and the local computer systems can be synchronously updated the by the network.

Description

The synchronously renewing file of remote computer system and method
[technical field]
The present invention relates to a kind of synchronously renewing file of remote computer system and method.
[background technology]
Network technology is applied to the every aspect of living just fast, the number of computers of access network also increases fast, because a variety of causes, people need transmit by network heap file between different computing machines, for example, research and development department's computing machine in this locality needs the product design figure of the external manufacturing works computing machine the inside of renewal every day, the ICP may need the per 10 minutes news contents that upgrade in the far-end server, therefore needs a kind of effective computer documents synchronous updating system and method.
The patent No. of announcing on February 25th, 2003 in United States Patent (USP) trademark office is 6,526,574, patent name is in the patent of " searching the difference of two computer documentss and the system of update calculation machine file " (System for Finding Differences between Two Computer Files andUpdating the Computer Files), disclosed a kind of method of update calculation machine file, this method comprises following core procedure: the difference of setting up software analysis source file and file destination by a path, file is divided into several sections to be analyzed one by one, set up a path file based on analysis result, upgrade the different piece of file destination and source file, and need not upgrade identical part, thereby updating file is consistent file destination and source file faster.This patent also provide a lot of other as useful functions such as automatic judgement hard disk remaining space, power-off restartings.
More than the method to single file part contrast is adopted in invention, only upgrade different parts, can improve the efficient of upgrading single file, but when carrying out file renewal in enormous quantities, take method that file portions is one by one compared, can take a large amount of resources for computer system, increase system burden, cause the file update efficiency to descend.Therefore need a kind of method that can between remote computer, take few system resources in the fast updating file in enormous quantities.
[summary of the invention]
One object of the present invention is to provide a kind of synchronously renewing file of remote computer system, is taking under the situation of less system resource, by local computer file in the specified folder in the remote computer and file is carried out batch updating.
Another object of the present invention is to provide a kind of synchronously renewing file of remote computer method, is taking under the situation of less system resource, by local computer file in the specified folder in the remote computer and file is carried out batch updating.
For realizing above-mentioned first purpose, the invention provides a kind of synchronously renewing file of remote computer system, comprise a local computer and a remote computer, send instruction by local computer, the content in the specified folder in the file content that comprises in the specified folder in the remote computer system and the local computer is upgraded synchronously by network.This local computer comprises: a path designated module is used to specify the path of source folder and destination folder; One listed files generation module is used for the directory tree layering spanned file tabulation according to source folder; One sending module is used to send listed files; Remote computer comprises a receiver module, is used to receive the listed files that local computer transmits; One analysis module is used to read listed files, and the file in the comparative analysis destination folder and file whether with listed files in write down identical; One file update module is used for deleting the file and the different file and the files of file of destination folder and listed files record, and upgrades in the destination folder other file according to listed files.
For realizing above-mentioned another purpose, the invention provides a kind of synchronously renewing file of remote computer method, send instruction by local computer, by network the content in the specified folder in the file content that comprises in the specified folder in the remote computer system and the local computer is upgraded synchronously, this method comprises the steps: the path of I. assigned source file and destination folder on local computer; II. local computer is set at current directory with source folder; III. foundation comprises the sub-directory attribute of the beneath ground floor of current directory and the listed files of file attribute; IV. send above-mentioned listed files to remote computer; V. remote computer upgrades current directory subordinate file according to listed files; VI. judge whether the current directory subordinate exists the not sub-directory of updating file, if there is a not sub-directory of updating file, first not the updating file sub-directory be set to current directory, repeating step III~step V; VII. if there is not the sub-directory that does not upgrade in the current directory subordinate, then should current catalogue last layer catalogue be set at current directory, repeating step VI upgrades to all files and finishes.
Utilize the present invention, can utilize the large batch of file in the local computer synchronously updating remote computing machine, and take less system resource.
[description of drawings]
Fig. 1 is the hardware architecture figure of synchronously renewing file of remote computer of the present invention system.
Fig. 2 is the functional block diagram of local computer of the present invention.
Fig. 3 is the functional block diagram of remote computer of the present invention.
Fig. 4 is the workflow diagram of synchronously renewing file of remote computer method of the present invention.
[embodiment]
As shown in Figure 1, be the hardware architecture figure of synchronously renewing file of remote computer of the present invention system.Wherein local computer 1 is a kind of personal computer PC, disposes CPU, internal memory, hard disk, display and keyboard, mouse, and the LAN network interface card is installed, and comprises a plurality of functional modules as shown in Figure 2 and provides a kind of operation interface for the user.Remote computer 3 can be a kind of personal computer PC identical with local computer, can be a kind of network server computer also, includes a plurality of functional modules shown in Figure 3.Local computer 1 is connected by network 2 with remote computer 3, and network 2 is a kind of electric networks based on the TCP/IP communications protocol.Local computer 1 sends the file update command and transmits updating file by network 2, is that to be updated to local computer 1 specified folder be file and file in the source folder for file in the destination folder and file with the specified folder on the remote computer 3.
As shown in Figure 2, be the functional block diagram of local computer of the present invention.Path designated module 11 is used to specify the path of source folder and destination folder, and for example the path of assigned source file is: d:/resourses/20041129, the path in the intended target file is :/10.129.82.23/update.Listed files generation module 12 is used for the directory tree layering spanned file tabulation according to source folder, listed files is the data structure of include file folder attribute and file attribute, when listed files generation module 12 when reading each file attribute, can note each file association attributes such as file name, file size, file modification date, file modification attribute with a data structure, after the file that has read some, all data structures are connected in series, have just formed a listed files of these files.Listed files will be stored in the local computer internal memory, finish until its pairing file update all.What of the quantity of documents that reads, thus the size that will influence the listed files of formation influence occupying system resources how much.Sending module 13 is used for sending listed files and file update command to remote computer 3.
As shown in Figure 3, be the functional block diagram of remote computer of the present invention.Receiver module 31 is used to receive the listed files that local computer 1 sends, after the reception with this document list storage in the internal memory of remote computer 3.Analysis module 32 is used to read listed files, and the association attributes of the file in the comparative analysis destination folder and file such as file name, file size, file modification date, file modification attribute etc. whether with listed files in write down identical, think that then the file of putting down in writing in the file or folder in the destination folder and the listed files is identical if all attributes are identical.File update module 33 is used for deleting the file and the different file and the files of file of destination folder and listed files record, and upgrades in the destination folder other file according to listed files.
As shown in Figure 4, be the workflow diagram of synchronously renewing file of remote computer method of the present invention.At first, the path designated module 11 assigned source files of local computer 1 and the path (step S1) of destination folder.Listed files generation module 12 is set at current directory (step S2) with source folder.Generation comprises the listed files (step S3) of current directory subordinate ground floor file attribute and folder attribute.Sending module 13 sends to this document tabulation the receiver module 31 (step S4) of remote computer 3.Analysis module 32 reads this document tabulation, and the file of putting down in writing in file or folder and the listed files in the destination folder of comparative analysis current directory correspondence whether identical (step S5).If exist in the destination folder with this document tabulation in different file and the files of file put down in writing, then delete this document and file (step S6).If do not exist with this document tabulation in the different file and the files of file of record, then directly change step S7.File update module 33 is upgraded the file of correspondence position in the destination folder according to listed files, and the file of putting down in writing in the file in the corresponding destination folder and the listed files is identical then not to need renewal (step S7).Analysis module 32 judges whether current directory exists not subordinate's catalogue of updating file, and promptly the file in this subordinate's catalogue does not upgrade (step S8) as yet.If there is not subordinate's catalogue of updating file in current directory, then with first not subordinate's catalogue of updating file be set at current directory, return step S3 (step S9).If there is not subordinate's catalogue of updating file in current directory, judge then whether this current catalogue is source folder (step S10).If this current catalogue is not source folder, then current directory last layer catalogue is set at current directory after, return step S8 (step S11).If this current catalogue is a source folder, then all files upgrades and finishes, and the synchronously renewing file of remote computer flow process finishes.

Claims (7)

1. synchronously renewing file of remote computer system, comprise a local computer and a remote computer, send instruction by local computer, by network the content in the specified folder in the file content that comprises in the specified folder in the remote computer system and the local computer is upgraded synchronously, it is characterized in that above-mentioned local computer comprises:
One path designated module is used to specify the path of source folder and destination folder;
One listed files generation module is used for the directory tree layering spanned file tabulation according to source folder;
One sending module is used to send listed files;
Above-mentioned remote computer comprises:
One receiver module is used to receive the listed files that local computer transmits;
One analysis module is used for reading listed files and with the file of destination folder corresponding on listed files and the remote computer and the attribute comparative analysis of file, judges whether identical;
One file update module is used for deleting the file and the different file and the files of folder attribute of destination folder and listed files record, and upgrades in the destination folder other file according to listed files.
2. synchronously renewing file of remote computer as claimed in claim 1 system is characterized in that, the listed files that above-mentioned listed files generation module generates is the data structure of include file folder attribute and file attribute.
3. synchronously renewing file of remote computer as claimed in claim 2 system is characterized in that the folder attribute and the file attribute that comprise in the listed files include: title, size, modification time, modification authority.
4. synchronously renewing file of remote computer method, send instruction by local computer, by network the content in the specified folder in the file content that comprises in the specified folder in the remote computer system and the local computer is upgraded synchronously, it is characterized in that this method comprises the steps:
I. the path of assigned source file and destination folder on local computer;
II. local computer is set at current directory with source folder;
III. foundation comprises the sub-directory attribute of the beneath ground floor of current directory and the listed files of file attribute;
IV. send above-mentioned listed files to remote computer;
V. remote computer upgrades current directory subordinate file according to listed files;
VI. judge whether the current directory subordinate exists the not sub-directory of updating file, if there is a not sub-directory of updating file, first not the catalogue of updating file be set to current directory, repeating step III~step V;
VII. if there is not the sub-directory that does not upgrade in the current directory subordinate, then should current catalogue last layer catalogue be set at current directory, repeating step VI upgrades to all files and finishes.
5. synchronously renewing file of remote computer method as claimed in claim 4 is characterized in that, remote computer comprises following substep according to the step of listed files updating file:
File in the destination folder and file and listed files are compared, and whether the association attributes of judging file and file is identical with the attribute of the file put down in writing and file in the listed files;
Different file and files in the deletion destination folder;
According to the listed files updating file.
6. synchronously renewing file of remote computer method as claimed in claim 5 is characterized in that, comprises following substep according to the step of listed files updating file:
Upgrade with listed files in different files and the file put down in writing, identical file and the file put down in writing in reservation and the listed files.
7. synchronously renewing file of remote computer method as claimed in claim 6 is characterized in that, the file that comprises in the listed files and the attribute of file include: title, size, modification time, modification authority.
CNB2004100774583A 2004-12-11 2004-12-11 Remote computer file synchronous update system and method Expired - Fee Related CN100363890C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100774583A CN100363890C (en) 2004-12-11 2004-12-11 Remote computer file synchronous update system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100774583A CN100363890C (en) 2004-12-11 2004-12-11 Remote computer file synchronous update system and method

Publications (2)

Publication Number Publication Date
CN1786903A CN1786903A (en) 2006-06-14
CN100363890C true CN100363890C (en) 2008-01-23

Family

ID=36784384

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100774583A Expired - Fee Related CN100363890C (en) 2004-12-11 2004-12-11 Remote computer file synchronous update system and method

Country Status (1)

Country Link
CN (1) CN100363890C (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230183A1 (en) * 2005-04-07 2006-10-12 Samsung Electronics Co., Ltd. Method and apparatus for synchronizing content with a collection of home devices
US8037022B2 (en) * 2007-06-05 2011-10-11 Samsung Electroncis Co., Ltd. Synchronizing content between content directory service and control point
CN101453418B (en) * 2007-12-05 2011-01-12 高德软件有限公司 Updating method for synchronization between customer terminal and server
CN101330510A (en) * 2008-06-19 2008-12-24 腾讯数码(深圳)有限公司 Method, system and server for sending directory tree data, and a client
CN101420324B (en) * 2008-10-10 2011-04-20 中兴通讯股份有限公司 Network management system and version renovating method for proxy software
CN101534480B (en) * 2009-04-14 2010-12-08 南京大学 A Cross-Network File Synchronization Method Based on Mobile Software Agent
CN102073680B (en) * 2010-12-17 2014-04-16 中广核(北京)仿真技术有限公司 Data switching method and system of nuclear simulation platform and configuration management system
CN102054036B (en) * 2010-12-29 2013-04-17 北京新媒传信科技有限公司 File synchronizing method and device
CN102033960A (en) * 2010-12-31 2011-04-27 中国建筑东北设计研究院有限公司 Comparison system of folder
CN102742215B (en) * 2012-02-17 2015-01-07 华为技术有限公司 Method and device for clearing configuration command in communication equipment
CN103037005B (en) * 2012-12-21 2015-11-25 天闻数媒科技(北京)有限公司 The file synchronisation method of online storage service and device
CN103136354A (en) * 2013-03-04 2013-06-05 浪潮电子信息产业股份有限公司 Linux system folder comparison method
CN106648736B (en) * 2016-10-10 2019-09-24 Oppo广东移动通信有限公司 Application control method and device and mobile terminal
CN108334316B (en) * 2017-01-18 2022-01-28 北京京东尚科信息技术有限公司 Application development implementation method and device
CN107103192A (en) * 2017-04-21 2017-08-29 上海联影医疗科技有限公司 Magic magiscan and its data managing method
CN107580070B (en) * 2017-09-27 2018-10-09 威创集团股份有限公司 A kind of method, system and the relevant apparatus of the transmission of computer remote file
CN108228227B (en) * 2017-12-29 2021-07-02 北京元心科技有限公司 Directory difference method and device and corresponding terminal
CN111625499A (en) * 2020-05-28 2020-09-04 浪潮电子信息产业股份有限公司 Snapshot rollback tool, method and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091720A1 (en) * 2001-01-05 2002-07-11 Jun Liu Methods and arrangements for providing improved software version control in managed devices
US6425125B1 (en) * 1999-03-30 2002-07-23 Microsoft Corporation System and method for upgrading client software
WO2003044684A1 (en) * 2001-11-20 2003-05-30 Universal Electronics Inc. System and method for upgrading the remote control functionality of a device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6425125B1 (en) * 1999-03-30 2002-07-23 Microsoft Corporation System and method for upgrading client software
US20020091720A1 (en) * 2001-01-05 2002-07-11 Jun Liu Methods and arrangements for providing improved software version control in managed devices
WO2003044684A1 (en) * 2001-11-20 2003-05-30 Universal Electronics Inc. System and method for upgrading the remote control functionality of a device

Also Published As

Publication number Publication date
CN1786903A (en) 2006-06-14

Similar Documents

Publication Publication Date Title
CN100363890C (en) Remote computer file synchronous update system and method
US11200044B2 (en) Providing access to a hybrid application offline
US8131276B2 (en) Method for extracting content, content extraction server based on RSS and apparatus for managing the same and system for providing standby screen of mobile communication terminal using the same
RU2500023C2 (en) Document synchronisation on protocol not using status information
CN103649945B (en) Automatic synchronization of most recently used document lists
CN106022007B (en) The cloud platform system and method learning big data and calculating is organized towards biology
CN103036956A (en) Filing system and implement method of distributed configured massive data
KR101672349B1 (en) File cloud service apparatus and method
JP5473230B2 (en) Document management method, document management apparatus, document management system, and program
CN107797767A (en) One kind is based on container technique deployment distributed memory system and its storage method
CN102355503A (en) Client terminal resource management method, resource management device, system and cloud server
US20200233878A1 (en) Card-based information management method and system
CN104160397A (en) Location independent files
US20150113034A1 (en) Information communication system and information conversion method
CN104781793A (en) Systems and methods for integrating storage usage information
CN102752294A (en) Method and system for synchronizing data of multiple terminals on basis of equipment capacity
CN111857777A (en) System updating method and device based on double-core intelligent electric meter and computer equipment
KR101086620B1 (en) Server and operation method for smart office system and operation
CN107894945A (en) Bury an adding method, mobile terminal and computer-readable recording medium
CN102238017B (en) Realize the method and system of local software update notifying
CN105187562A (en) System and method for operating remote file
CN110162412A (en) In the method and apparatus that client carries out data manipulation
CN102236673B (en) AJAX (Asynchronous JavaScript and XML)-based resource multi-page distribution method
US6848105B1 (en) Method and system for identifying program module functionality needed by a computer when disconnected from a network
KR101652988B1 (en) Application management method and terminal therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080123

Termination date: 20131211