CN104283932A - File synchronization system and method - Google Patents
File synchronization system and method Download PDFInfo
- Publication number
- CN104283932A CN104283932A CN201310291524.6A CN201310291524A CN104283932A CN 104283932 A CN104283932 A CN 104283932A CN 201310291524 A CN201310291524 A CN 201310291524A CN 104283932 A CN104283932 A CN 104283932A
- Authority
- CN
- China
- Prior art keywords
- file
- attribute
- server
- priority
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A file synchronization system is applied to a management server. The system comprises a setting module, a calculating module and a synchronizing module. The setting module is used for receiving files uploaded to a first server by a user and recognizing the attribute of each file. The calculating module is used for calculating the priority numerical value of each file according to the preset priority of the attribute of each file and the attribute of each recognized file. The synchronizing module is used for synchronizing the files to a second server according to the priority numerical values of the files. The invention further provides a file synchronization method. According to the file synchronization system and method, a lot of files can be synchronized according to the set priority sequence.
Description
Technical field
The present invention relates to a kind of file management system and method, particularly relate to a kind of file syn chronizing system and method.
Background technology
In daily work, often by files passe to server time, need this file to be synchronized on another one server.When quantity of documents is very large, urgent file is synchronously necessary in advance.At present, file synchronization is all the importance and the emergency that are arranged each file by user voluntarily, in the ordinary course of things, the user of all upload files can select urgent or important, still not according to rational priority orders when making heap file synchronous, the setting of File Privilege is made to lose real significance.
Summary of the invention
In view of above content, be necessary to provide a kind of file syn chronizing system, can carry out synchronously according to rational priority orders multiple file.
In addition, there is a need to provide a kind of file synchronisation method, can carry out synchronously according to rational priority orders multiple file.
A kind of file syn chronizing system, run in management server, this system comprises: arrange module, is uploaded to file in first server, and identifies the attribute of each file for receiving user; Computing module, for the attribute according to the file attribute priority pre-set and the above-mentioned each file identified, calculates the numerical priority value of each file; And synchronization module, for the numerical priority value of described file according to each file is synchronized in second server.
A kind of file synchronisation method, run in management server, the method comprises: setting steps, and reception user is uploaded to the file in first server, and identifies the attribute of each file; Calculation procedure, according to the attribute of the file attribute priority pre-set and the above-mentioned each file identified, calculates the numerical priority value of each file; And synchronizing step, the numerical priority value of described file according to each file is synchronized in second server.
Compared to prior art, described file syn chronizing system and method, by arranging different priority to the file of different attribute, according to the height synchronous documents of priority, make heap file can carry out synchronous according to rational order, improve the efficiency of file synchronization, ensure that the normal operation of server.
Accompanying drawing explanation
Fig. 1 is the running environment figure of file syn chronizing system preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of Fig. 1 file synchro system 10.
Fig. 3 is the operation process chart of file synchronisation method preferred embodiment of the present invention.
Main element symbol description
Management server | 1 |
File syn chronizing system | 10 |
First server | 2 |
Second server | 3 |
Application program | 20 |
Receiver module | 100 |
Module is set | 101 |
Mark module | 102 |
Computing module | 103 |
First update module | 104 |
Synchronization module | 105 |
Second update module | 106 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment figure of file syn chronizing system preferred embodiment of the present invention.This file syn chronizing system 10 runs in management server 1, and this management server 1 is connected with first server 2 and second server 3.Described first server 2 comprises multiple application program 20, and described multiple application program 20 comprises the synchronous application program of needs 20 and do not need synchronous application program 20.When in the application program 20 that user's upload file is synchronous to the needs of described first server 2, described file syn chronizing system 10 is by described file synchronization to described second server 3.When not needing in synchronous application program 20 in user's upload file to described first server 2, described file syn chronizing system 10 is not synchronized to described second server 3 to described file.Wherein, the Status Flag of synchronous file is not needed can to represent with numerical value " 0 ".
As shown in Figure 2, be the functional block diagram of Fig. 1 file synchro system 10.Described file syn chronizing system 10 comprises: receiver module 100, arrange module 101, mark module 102, computing module 103, first update module 104, synchronization module 105 and the second update module 106.Described module is the software program section with specific function, this software program section is stored in computer-readable recording medium or other memory device, can be performed by the calculation element that computer or other comprise processor, thus complete the synchronous work flow of file of the present invention.
Receiver module 100 is arranged for the priority receiving file attribute, and described attribute comprises: the user identity of upload file, affiliated department, file size, file type, file importance etc.In detail, described receiver module 100 receives the priority of the priority of user identity of the upload file that user is arranged, the priority of affiliated department, the priority of file size, the priority of file type and file importance.Such as, the user identity of described upload file comprises: VIP, supervisor, general user, then receiver module 100 receives the priority of user identity of the upload file that user is arranged and is: VIP> is responsible for > general user.In this case preferred embodiment, can give certain level value to the priority level of each attribute, the user identity of such as upload file is the level value of VIP is 5, and the level value of supervisor is 4, and the level value of general user is 3.In the present embodiment, the priority of described file attribute can by the Administrator of file syn chronizing system.
Arrange module 101 and be uploaded to file in first server 2 for receiving user, and identify the attribute of each file, the attribute of this file can according to the authentication identification of the user of the size of file, upload file.Such as, when user logins described application program 20, after inputting the authentication information of oneself, module 101 is set and can recognizes the user identity uploading described file, affiliated department.
Mark module 102 is for being armed state by the status indication of uploaded file, and in the present embodiment, this armed state can represent with " 1 ".
Computing module 103, for the attribute of each file according to the file attribute priority arranged and identification, calculates each numerical priority value being labeled as pending file.Such as, the user identity of a file A is VIP, and the level value of corresponding user identity is 5, level value corresponding to described department is 5, level value corresponding to file size is 3, and level value corresponding to file type is 2, and the level value that file importance is corresponding is 1.The user identity of a file B is general user, the level value of corresponding user identity is 3, and level value corresponding to described department is 3, and level value corresponding to file size is 5, level value corresponding to file type is 3, and the level value that file importance is corresponding is 5.Then the numerical priority value of file A is 5+5+3+2+1=16, and the numerical priority value of file B is 3+3+5+3+5=19, then the numerical priority value of file B is higher than file A, and therefore file B is than file A priority treatment.
The state updating of described each file for the numerical priority value of the above-mentioned each file calculated being write in the attribute of each file, and is state to be synchronized by the first update module 104, and in the present embodiment, this state available values " 2 " to be synchronized represents.
Synchronization module 105 is for being that the file of state to be synchronized is synchronized in described second server 3 according to the numerical priority value in each file attribute by described state.In the present embodiment, the file that described synchronization module 105 takes out the state to be synchronized of some at every turn carries out synchronously, as take out at every turn 100 file synchronization extremely as described in second server 3.
Second update module 106 is for being synchronous completion status by the state updating of the described file synchronously completed, and in the present embodiment, this synchronous completion status available values " 3 " represents.
As shown in Figure 3, be the operation process chart of file synchronisation method preferred embodiment of the present invention.
Step S30, the priority that receiver module 100 receives file attribute is arranged, and described attribute comprises: the user identity of upload file, affiliated department, file size, file type, file importance etc.In detail, described receiver module 100 receives the priority of the priority of user identity of the upload file that user is arranged, the priority of affiliated department, the priority of file size, the priority of file type and file importance.Such as, the user identity of described upload file comprises: VIP, supervisor, general user, then receiver module 100 receives the priority of user identity of the upload file that user is arranged and is: VIP> is responsible for > general user.In this case preferred embodiment, can give certain level value to the priority level of each attribute, the user identity of such as upload file is the level value of VIP is 5, and the level value of supervisor is 4, and the level value of general user is 3.In the present embodiment, the priority of described file attribute can by the Administrator of file syn chronizing system.
Step S31, arrange module 101 and receive user and be uploaded to file in first server 2, and identify the attribute of each file, the attribute of this file can according to the authentication identification of the user of the size of file, upload file.Such as, when user logins described application program 20, after inputting the authentication information of oneself, module 101 is set and can recognizes the user identity uploading described file, affiliated department.
Step S32, mark module 102 is for being armed state by the status indication of uploaded file.
Step S33, computing module 103, according to the attribute of each file of the file attribute priority arranged and identification, calculates each numerical priority value being labeled as pending file.Such as, the user identity of a file A is VIP, and the level value of corresponding user identity is 5, level value corresponding to described department is 5, level value corresponding to file size is 3, and level value corresponding to file type is 2, and the level value that file importance is corresponding is 1.The user identity of a file B is general user, the level value of corresponding user identity is 3, and level value corresponding to described department is 3, and level value corresponding to file size is 5, level value corresponding to file type is 3, and the level value that file importance is corresponding is 5.Then the numerical priority value of file A is 5+5+3+2+1=16, and the numerical priority value of file B is 3+3+5+3+5=19, then the numerical priority value of file B is higher than file A, and therefore file B is than file A priority treatment.
Step S34, the numerical priority value of the above-mentioned each file calculated writes in the attribute of each file by the first update module 104, and is state to be synchronized by the state updating of described each file.
Step S35, described state is that the file of state to be synchronized is synchronized in described second server 3 according to the numerical priority value in each file attribute by synchronization module 105.In the present embodiment, the file that described synchronization module 105 takes out the state to be synchronized of some at every turn carries out synchronously, as take out at every turn 100 file synchronization extremely as described in second server 3.
Step S36, the state updating of the described file synchronously completed is synchronous completion status by the second update module 106.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a file syn chronizing system, runs in management server, it is characterized in that, this system comprises:
Module is set, is uploaded to file in first server for receiving user, and identifies the attribute of each file;
Computing module, for the attribute according to the file attribute priority pre-set and the above-mentioned each file identified, calculates the numerical priority value of each file; And
Synchronization module, for being synchronized to the numerical priority value of described file according to each file in second server.
2. file syn chronizing system as claimed in claim 1, it is characterized in that, this system also comprises: receiver module, for the file attribute priority pre-set described in receiving.
3. file syn chronizing system as claimed in claim 1, it is characterized in that, this system also comprises: mark module, for by be uploaded to first server and the status indication of the file of non-calculating priority level numerical value is armed state.
4. file syn chronizing system as claimed in claim 1, it is characterized in that, this system also comprises: the first update module, for the described numerical priority value calculated being write in the attribute of respective file, and is state to be synchronized by the state updating of each file.
5. file syn chronizing system as claimed in claim 1, it is characterized in that, this system also comprises: the second update module, for being synchronous completion status by the state updating of the described file synchronously completed.
6. a file synchronisation method, run in management server, it is characterized in that, the method comprises:
Setting steps, reception user is uploaded to the file in first server, and identifies the attribute of each file;
Calculation procedure, according to the attribute of the file attribute priority pre-set and the above-mentioned each file identified, calculates the numerical priority value of each file; And
Synchronizing step, is synchronized to the numerical priority value of described file according to each file in second server.
7. file synchronisation method as claimed in claim 6, it is characterized in that, the method also comprised before setting steps: receiving step, the file attribute priority pre-set described in reception.
8. file synchronisation method as claimed in claim 6, it is characterized in that, the method also comprises after described setting steps: markers step, by be uploaded to first server and the status indication of the file of non-calculating priority level numerical value is armed state.
9. file synchronisation method as claimed in claim 6, it is characterized in that, the method also comprises after described calculation procedure: the first step of updating, by the attribute of the described numerical priority value write respective file calculated, and is state to be synchronized by the state updating of each file.
10. file synchronisation method as claimed in claim 6, it is characterized in that, the method also comprises after described synchronizing step: the second step of updating, is synchronous completion status by the state updating of the described file synchronously completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310291524.6A CN104283932A (en) | 2013-07-12 | 2013-07-12 | File synchronization system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310291524.6A CN104283932A (en) | 2013-07-12 | 2013-07-12 | File synchronization system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104283932A true CN104283932A (en) | 2015-01-14 |
Family
ID=52258408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310291524.6A Pending CN104283932A (en) | 2013-07-12 | 2013-07-12 | File synchronization system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104283932A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107276913A (en) * | 2017-05-23 | 2017-10-20 | 努比亚技术有限公司 | Transmission method, terminal and the computer-readable recording medium of batch documents |
CN107995194A (en) * | 2017-12-04 | 2018-05-04 | 上海鑫苑信息科技有限公司 | A kind of multimedia broadcast control system and its document distribution method |
CN111831431A (en) * | 2020-06-30 | 2020-10-27 | 万翼科技有限公司 | CAD file analysis method, related device and system |
WO2023001208A1 (en) * | 2021-07-22 | 2023-01-26 | 华为技术有限公司 | Multi-file synchronization method and electronic device |
CN116708480A (en) * | 2023-07-27 | 2023-09-05 | 深圳迅策科技有限公司 | Data synchronization method based on Datax frame |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377787A (en) * | 2011-03-22 | 2012-03-14 | 苏州阔地网络科技有限公司 | Method and system for processing batch files with set priority |
CN102402401A (en) * | 2011-12-13 | 2012-04-04 | 云海创想信息技术(无锡)有限公司 | Method for scheduling input output (IO) request queue of disk |
CN102955790A (en) * | 2011-08-23 | 2013-03-06 | 苏州彭华信息技术有限公司 | Method and device for synchronizing network documents |
CN103023988A (en) * | 2012-11-27 | 2013-04-03 | 北京金山云科技有限公司 | File synchronization method, file synchronization server, file synchronization client side and terminal device |
-
2013
- 2013-07-12 CN CN201310291524.6A patent/CN104283932A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377787A (en) * | 2011-03-22 | 2012-03-14 | 苏州阔地网络科技有限公司 | Method and system for processing batch files with set priority |
CN102955790A (en) * | 2011-08-23 | 2013-03-06 | 苏州彭华信息技术有限公司 | Method and device for synchronizing network documents |
CN102402401A (en) * | 2011-12-13 | 2012-04-04 | 云海创想信息技术(无锡)有限公司 | Method for scheduling input output (IO) request queue of disk |
CN103023988A (en) * | 2012-11-27 | 2013-04-03 | 北京金山云科技有限公司 | File synchronization method, file synchronization server, file synchronization client side and terminal device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107276913A (en) * | 2017-05-23 | 2017-10-20 | 努比亚技术有限公司 | Transmission method, terminal and the computer-readable recording medium of batch documents |
CN107995194A (en) * | 2017-12-04 | 2018-05-04 | 上海鑫苑信息科技有限公司 | A kind of multimedia broadcast control system and its document distribution method |
CN111831431A (en) * | 2020-06-30 | 2020-10-27 | 万翼科技有限公司 | CAD file analysis method, related device and system |
CN111831431B (en) * | 2020-06-30 | 2023-07-21 | 深圳市万翼数字技术有限公司 | CAD file analysis method, related device and system |
WO2023001208A1 (en) * | 2021-07-22 | 2023-01-26 | 华为技术有限公司 | Multi-file synchronization method and electronic device |
CN116708480A (en) * | 2023-07-27 | 2023-09-05 | 深圳迅策科技有限公司 | Data synchronization method based on Datax frame |
CN116708480B (en) * | 2023-07-27 | 2023-09-29 | 深圳迅策科技有限公司 | Data synchronization method based on Datax frame |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536752B (en) | Data synchronization method, device and equipment | |
CN104283932A (en) | File synchronization system and method | |
CN107870981B (en) | Electronic device, data sheet filing method and storage medium | |
SG11201809909RA (en) | User permission data query method and apparatus, electronic device and medium | |
CN104331285A (en) | Automatic code generation method and system | |
CN104967658A (en) | Data synchronization method on multiple devices | |
CN103699638A (en) | Method for realizing cross-database type synchronous data based on configuration parameters | |
CN113051347B (en) | Method, system, equipment and storage medium for synchronizing data between heterogeneous databases | |
CN103970833A (en) | Method for achieving two-way synchronous data circulation in heterogeneous database synchronizing system based on logs | |
CN110795499A (en) | Cluster data synchronization method, device and equipment based on big data and storage medium | |
CN103714086A (en) | Method and device used for generating non-relational data base module | |
US20150227577A1 (en) | Method and device for guaranteeing consistency of planning data | |
CN110737719A (en) | Data synchronization method, device, equipment and computer readable storage medium | |
CN112181967B (en) | Method, device, computer equipment and medium for monitoring quality of source data | |
CN105900093A (en) | Keyvalue database data table updating method and data table updating device | |
CN102752294A (en) | Method and system for synchronizing data of multiple terminals on basis of equipment capacity | |
CN104268291A (en) | Data consistency processing method and system | |
CN106874281A (en) | Realize the method and apparatus that data base read-write is separate | |
CN102946410A (en) | Method and device for network synchronization | |
CN105610899A (en) | Text file parallel uploading method and device | |
CN104636401A (en) | Method and device for data rollback of SCADA (supervisory control and data acquisition) system | |
CN109462661B (en) | Data synchronization method and device, computer equipment and storage medium | |
CN104778252A (en) | Index storage method and index storage device | |
CN113626438B (en) | Data table management method, device, computer equipment and storage medium | |
CN106802958A (en) | Conversion method and system of the CAD data to GIS data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150114 |
|
WD01 | Invention patent application deemed withdrawn after publication |