CN108616603A - A kind of intranet and extranet method of data synchronization and system - Google Patents

A kind of intranet and extranet method of data synchronization and system Download PDF

Info

Publication number
CN108616603A
CN108616603A CN201810461487.1A CN201810461487A CN108616603A CN 108616603 A CN108616603 A CN 108616603A CN 201810461487 A CN201810461487 A CN 201810461487A CN 108616603 A CN108616603 A CN 108616603A
Authority
CN
China
Prior art keywords
file
intranet
equipment
attachment files
outer net
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.)
Granted
Application number
CN201810461487.1A
Other languages
Chinese (zh)
Other versions
CN108616603B (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.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information 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 Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN201810461487.1A priority Critical patent/CN108616603B/en
Publication of CN108616603A publication Critical patent/CN108616603A/en
Application granted granted Critical
Publication of CN108616603B publication Critical patent/CN108616603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The present invention relates to a kind of intranet and extranet method of data synchronization and systems to include the following steps in the method:The fileinfo of outer net device analysis extraction document, and it is stored in database table, if file includes attachment files, then attachment files are backed up under first path, attachment files are moved under the second path by the filename field corresponding position in the filename typing of the attachment files table, otherwise, this document is deleted, the record newly increased in table is exported and preserves and be sent to Intranet equipment, the attachment files under the second path are sent to Intranet equipment;Intranet equipment preserve respectively receive to record file and attachment files to database and the 4th path in;Outer net and Intranet equipment are shown according to the information stored in the corresponding table of file to be shown in correspondence database respectively.The present invention reduces the transmission quantities of file, improve efficiency of transmission, reduce file amount of analysis in Intranet equipment, improve the data synchronization efficiency of intranet and extranet equipment room.

Description

A kind of intranet and extranet method of data synchronization and system
Technical field
The present invention relates to data field of synchronization more particularly to a kind of intranet and extranet method of data synchronization and systems.
Background technology
With the development of science and technology, the safety of data information becomes more and more important, since different application systems are in bursting tube There is different demands in terms of reason, therefore, these application systems need to be deployed in the physical region of different security levels, and important answers It is in the high region, that is, Intranet of safe class with system, and general application system is then in the lower region of safe class In outer net.
Due to the high demand for security of Intranet, Intranet and the communication of many external networks are limited, such as are looked forward to Industry internal network, the operation system in Intranet needs just to can connect to outer net by gateway, and outer net need not then pass through gateway It can even connect to the Net, when Intranet needs to inquire certain files, can only first be inquired by outer net, then outer net will The file inquired is sent to Intranet.
When the fileinfo that outer net equipment and Intranet equipment need simultaneous display identical from outer net, then outer net is needed After equipment carries out analysis extraction to this document first, file is transferred in Intranet equipment, then content device to this document again It is secondary to carry out analysis extraction, it is synchronous with information to reach file in two equipment.When file is more or larger, file is transmitted And replicate analysis extracts the information of these files and can consume a lot of time and resources again, makes less efficient.
Invention content
In view of the above-mentioned problems, the present invention is intended to provide a kind of intranet and extranet method of data synchronization and system, are believed by database The synchronous attachment files of breath synchronize the mode being combined, and greatly reduce the transmission quantity of file, improve efficiency of transmission, and reduce File amount of analysis in Intranet equipment, effectively increases the data synchronization efficiency of intranet and extranet equipment room.
Concrete scheme is as follows:
A kind of intranet and extranet method of data synchronization, includes the following steps:
S100:Outer net equipment analyzes the file received, and extraction document information is by the classification typing outer net equipment Database in the corresponding table of this document;
S200:Judge the file whether include attachment files, such as comprising, into S300, otherwise, deletion this document, into Enter S400;
S300:The attachment files are backed up under portion to the first path of the outer net equipment, by the attachment files The attachment files are moved to the second of the outer net equipment by the filename field corresponding position in the filename typing table Under path;
S400:It exports the record newly increased in the corresponding database table of the file and the record is generated into record file It preserves afterwards to the third path of the outer net equipment, and the record file is sent to Intranet equipment;
S500:Judge whether there are newly-increased attachment files under the second path, if any then increasing this in attachment files are sent to newly Net equipment;
S600:The Intranet equipment imports the record file received in the corresponding database of Intranet equipment, if any Attachment files are received, then the attachment files received are stored under the 4th path of the Intranet equipment;
S700:The outer net equipment and Intranet equipment in correspondence database in the corresponding table of file to be shown according to storing Information shown.
Further, the judgment mode of the attachment files includes being judged by file suffixes name and by road where file Diameter judges.
Further, step S700 is specifically included:The outer net equipment judges text to be shown in the database of outer net equipment Whether the content of the filename field corresponding position in the corresponding table of part is sky, then will be according to corresponding table if not being sky The attachment files that lattice content obtains under first path, other letters stored in table corresponding with file to be shown in database Breath is shown together, is such as sky, then the other information stored in the corresponding table of file to be shown in display data library;In described Net equipment judges the interior of the filename field corresponding position in the corresponding table of file to be shown in the database of Intranet equipment Whether be empty, if not being sky, the then attachment files that will be obtained under the 4th path according to corresponding table content, with database if holding In the other information that stores in the corresponding table of file to be shown show together, be such as sky, then it is to be shown in display data library The other information stored in the corresponding table of file.
A kind of intranet and extranet data synchronous system includes Intranet equipment and outer net equipment, and the Intranet equipment and outer net equipment are equal Including, processor, memory and be respectively stored in the computer run in the memory and on the processor respectively The processor of program, the Intranet equipment and outer net equipment executes the computer program to realize in the embodiment of the present invention respectively The step of method stated.
The present invention uses technical solution as above, in such a way that database information synchronization attachment files are synchronized and are combined, greatly The big transmission quantity for reducing file, improves efficiency of transmission, and reduce file amount of analysis in Intranet equipment, effectively increases The data synchronization efficiency of intranet and extranet equipment room.
Description of the drawings
Fig. 1 show the flow diagram of the embodiment of the present invention one.
Specific implementation mode
To further illustrate that each embodiment, the present invention are provided with attached drawing.These attached drawings are that the invention discloses one of content Point, mainly to illustrate embodiment, and the associated description of specification can be coordinated to explain the operation principles of embodiment.Cooperation ginseng These contents are examined, those of ordinary skill in the art will be understood that other possible embodiments and advantages of the present invention.
In conjunction with the drawings and specific embodiments, the present invention is further described.
Embodiment one:
Refering to what is shown in Fig. 1, the present invention provides a kind of intranet and extranet method of data synchronization, include the following steps:
S100:Outer net equipment analyzes the file received, and extraction document information is by the classification typing outer net equipment Database in the corresponding table of this document.
The fileinfo is the information for representing file content and characteristic, according to the different and different of file type, The type of the fileinfo specifically extracted can be determined according to practical application scene, such as when file is chat record file When, the fileinfo is account information, chat record, chatting time etc., when file is shear plate file, the file letter Breath is the modification time etc. of file content and file.
The fileinfo is according in classification input database table, such as the fileinfo content of chat record file is Account information, chat record and chatting time then establish chat record table in the database, and setting in the table corresponds to account The content of file is stored at corresponding position by the first, second, and third grid column of information, chat record and chatting time.
The importing and export of the database file are realized by executing data base manipulation statement.
S200:Judge the file whether include attachment files, such as comprising, into S300, otherwise, deletion this document, into Enter S400.
The judgment mode of the attachment files includes following several:
(1) is judged by file suffixes name, and the file of the types such as audio, picture and video all judges attachment files;
(2) is judged by the path where file, such as:The file downloaded from network can be stored in specific road Under diameter, the file under the path is judged as attachment files.
S300:The attachment files are backed up under portion to the first path of the outer net equipment, by the attachment files The attachment files are moved to the second of the outer net equipment by the filename field corresponding position in the filename typing table Under path;
S400:It exports the record newly increased in the corresponding database table of the file and the record is generated into record file It preserves afterwards to the third path of the outer net equipment, and the record file is sent to Intranet equipment;
S500:Judge whether there are newly-increased attachment files under the second path, if any then increasing this in attachment files are sent to newly Net equipment;
S600:The Intranet equipment imports the record file received in the corresponding database of Intranet equipment, if any Attachment files are received, then the attachment files received are stored under the 4th path of the Intranet equipment;
S700:The outer net equipment and Intranet equipment in correspondence database in the corresponding table of file to be shown according to storing Information shown.
It is specially in the embodiment:
The outer net equipment judges the filename field in the corresponding table of file to be shown in the database of outer net equipment Whether the content of corresponding position is empty, if being not sky, then will be obtained under first path according to corresponding table content attached Part file, the other information stored in table corresponding with file to be shown in database are shown together, are such as sky, are then only shown The other information stored in the corresponding table of file to be shown in database;
The Intranet equipment judges the filename field in the corresponding table of file to be shown in the database of Intranet equipment Whether the content of corresponding position is empty, if being not sky, then will be obtained under the 4th path according to corresponding table content attached Part file, the other information stored in table corresponding with file to be shown in database are shown together, are such as sky, are then only shown The other information stored in the corresponding table of file to be shown in database.
The database function all same that the Intranet equipment and outer net equipment include, the outer net equipment and Intranet equipment can To be shown to file to be shown by display device, the display device can be existing program such as browser, Can be for the software program of certain specific file definite value.
The fileinfo extraction of file is entered into the correspondence table of database by outer net equipment by the embodiment of the present invention one In, then only the record file of the attachment files in transmission file and database table is not required to Intranet equipment, Intranet equipment To analyze extraction document information again, but directly according to showing in the corresponding informance reduction outer net equipment in database table Information effectively increases intranet and extranet equipment room to realize the synchronous of outer net equipment and the file of Intranet equipment and information Data synchronization efficiency.
Embodiment two:
It is described interior the present invention also provides a kind of intranet and extranet data synchronous system, including Intranet equipment and outer net equipment Net equipment and outer net equipment include processor, memory and are stored in the memory and can transport on the processor Capable computer program, the processor realize that the above method of the embodiment of the present invention one is implemented when executing the computer program Step in example, the first, second, third and fourth path in aforesaid way embodiment are the be arranged on the memory One, second, third and the 4th path.
Further, as an executable scheme, the inside and outside network data synchronous terminal equipment can be desktop meter The computing devices such as calculation machine, notebook, palm PC and cloud server.Network data synchronous terminal equipment may include inside and outside described, But it is not limited only to, processor, memory.It will be understood by those skilled in the art that above-mentioned inside and outside network data synchronous terminal equipment Composed structure is only the example of inside and outside network data synchronous terminal equipment, is not constituted to intranet and extranet data synchronous terminal equipment It limits, may include either combining certain components or different components than above-mentioned more or fewer components.
Further, as an executable scheme, alleged processor can be central processing unit (Central Processing Unit, CPU), it can also be other general processors, digital signal processor (Digital Signal Processor, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing At programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components etc..General processor can be that microprocessor or the processor also may be used To be any conventional processor etc., the processor is the control centre of the inside and outside network data synchronous terminal equipment, is utilized The various pieces of the entire inside and outside network data synchronous terminal equipment of various interfaces and connection.
The memory can be used for storing the computer program and/or module, and the processor is by running or executing Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization The various functions of inside and outside network data synchronous terminal equipment.The memory can include mainly storing program area and storage data field, Wherein, storing program area can storage program area, the application program needed at least one function;Storage data field can store basis Mobile phone uses created data etc..In addition, memory may include high-speed random access memory, can also include non-easy The property lost memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other Volatile solid-state part.
Although specifically showing and describing the present invention in conjunction with preferred embodiment, those skilled in the art should be bright In vain, it is not departing from the spirit and scope of the present invention defined by the appended claims, it in the form and details can be right The present invention makes a variety of changes, and is protection scope of the present invention.

Claims (4)

1. a kind of intranet and extranet method of data synchronization, it is characterised in that:Include the following steps:
S100:Outer net equipment analyzes the file received, and extraction document information presses the number of the classification typing outer net equipment According in the corresponding table of this document in library;
S200:Judge whether the file includes attachment files, such as comprising into S300, otherwise, deletion this document enters S400;
S300:The attachment files are backed up under portion to the first path of the outer net equipment, by the file of the attachment files The attachment files, are moved to the second path of the outer net equipment by the filename field corresponding position in the name typing table Under;
S400:It exports the record newly increased in the corresponding database table of the file and is protected after the record is generated record file It deposits to the third path of the outer net equipment, and the record file is sent to Intranet equipment;
S500:Judge whether there are newly-increased attachment files under the second path, if any then increasing this newly attachment files and be sent to Intranet and set It is standby;
S600:The Intranet equipment imports the record file received in the corresponding database of Intranet equipment, if any reception To attachment files, then the attachment files received are stored under the 4th path of the Intranet equipment;
S700:The outer net equipment and Intranet equipment are according to the letter stored in the corresponding table of file to be shown in correspondence database Breath is shown.
2. intranet and extranet method of data synchronization according to claim 1, it is characterised in that:The judgment mode of the attachment files Including being judged by file suffixes name and being judged by path where file.
3. intranet and extranet method of data synchronization according to claim 1, it is characterised in that:Step S700 is specifically included:It is described Outer net equipment judges the filename field corresponding position in the corresponding table of file to be shown in the database of outer net equipment Whether content is empty, if not being sky, the then attachment files that will be obtained under first path according to corresponding table content, with data The other information stored in the corresponding table of file to be shown in library is shown together, is such as sky, is then waited showing in display data library Show the other information stored in the corresponding table of file;The Intranet equipment judges file to be shown in the database of Intranet equipment Whether the content of the filename field corresponding position in corresponding table is sky, then will be according to corresponding table if not being sky The attachment files that content obtains under the 4th path, the other information stored in table corresponding with file to be shown in database It shows together, is such as sky, then the other information stored in the corresponding table of file to be shown in display data library.
4. a kind of intranet and extranet data synchronous system, it is characterised in that:Including Intranet equipment and outer net equipment, the Intranet equipment and Outer net equipment includes, processor, memory and is respectively stored in the memory and transports on the processor respectively The processor of capable computer program, the Intranet equipment and outer net equipment executes the computer program to realize such as power respectively Profit requires the step of 1~3 the method.
CN201810461487.1A 2018-05-15 2018-05-15 Method and system for synchronizing internal and external network data Active CN108616603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810461487.1A CN108616603B (en) 2018-05-15 2018-05-15 Method and system for synchronizing internal and external network data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810461487.1A CN108616603B (en) 2018-05-15 2018-05-15 Method and system for synchronizing internal and external network data

Publications (2)

Publication Number Publication Date
CN108616603A true CN108616603A (en) 2018-10-02
CN108616603B CN108616603B (en) 2021-11-02

Family

ID=63663387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810461487.1A Active CN108616603B (en) 2018-05-15 2018-05-15 Method and system for synchronizing internal and external network data

Country Status (1)

Country Link
CN (1) CN108616603B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130990A (en) * 2019-11-22 2020-05-08 李子乾 Mobile comprehensive office system
CN111478943A (en) * 2020-03-06 2020-07-31 上海数据交易中心有限公司 Cross-local area network file storage method and system, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587480A (en) * 2008-05-21 2009-11-25 鸿富锦精密工业(深圳)有限公司 System and method for distributed storage of Notes file
US20140214765A1 (en) * 2013-01-28 2014-07-31 General Instrument Corporation Selective data synchronization and transfer to remote distributed database servers
CN104883404A (en) * 2015-06-04 2015-09-02 上海斐讯数据通信技术有限公司 Network based file cloud synchronization method
CN106407214A (en) * 2015-08-02 2017-02-15 郑建锋 Distributed storage method and system
CN107579971A (en) * 2017-08-31 2018-01-12 上海欣方智能系统有限公司 A kind of intranet and extranet method for interchanging data based on security platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587480A (en) * 2008-05-21 2009-11-25 鸿富锦精密工业(深圳)有限公司 System and method for distributed storage of Notes file
US20140214765A1 (en) * 2013-01-28 2014-07-31 General Instrument Corporation Selective data synchronization and transfer to remote distributed database servers
CN104883404A (en) * 2015-06-04 2015-09-02 上海斐讯数据通信技术有限公司 Network based file cloud synchronization method
CN106407214A (en) * 2015-08-02 2017-02-15 郑建锋 Distributed storage method and system
CN107579971A (en) * 2017-08-31 2018-01-12 上海欣方智能系统有限公司 A kind of intranet and extranet method for interchanging data based on security platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130990A (en) * 2019-11-22 2020-05-08 李子乾 Mobile comprehensive office system
CN111478943A (en) * 2020-03-06 2020-07-31 上海数据交易中心有限公司 Cross-local area network file storage method and system, storage medium and terminal

Also Published As

Publication number Publication date
CN108616603B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US8661502B2 (en) Determining a sensitivity label of document information in real time
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN103747084A (en) Off-line access method and system for advanced enterprise mobile application platform
CN111913734A (en) On-line development platform based on micro-service technology system
US20140372369A1 (en) Managing Changes to Shared Electronic Documents Using Change History
CN110069454A (en) A kind of network file management method, terminal and computer readable storage medium
US20080155518A1 (en) Methods and apparatus for tokenizing workflow process objects
CN112162965A (en) Log data processing method and device, computer equipment and storage medium
CN106453572A (en) Method and system for synchronizing images based on cloud server
CN107111649B (en) Uploading user and system data from a source location to a destination location
CN101867490A (en) Maintenance operation system and method
CN113268260A (en) Routing method and device for web front end
CN111538774A (en) Data storage and display method, system, equipment and storage medium
CN110442519A (en) A kind of crash file processing method, device, electronic equipment and storage medium
CN112199442A (en) Distributed batch file downloading method and device, computer equipment and storage medium
CN108616603A (en) A kind of intranet and extranet method of data synchronization and system
CN113486095A (en) Civil aviation air traffic control cross-network safety data exchange management platform
US9319364B2 (en) Displaying message content differential in popup window
CN114253652A (en) Method and system for realizing cloud application window list of android mobile terminal by simulating local App
CN102158351B (en) Method and device for managing device management tree under multiple servers of device management client
WO2023217086A1 (en) Resource file updating method and apparatus, and device and readable storage medium
US11354492B2 (en) EDOC utility using non-structured-query-language databases
CN111045928B (en) Interface data testing method, device, terminal and storage medium
CN110022287A (en) A kind of asynchronous distributed document transmission method, terminal device and storage medium
CN114979125B (en) Method, device, terminal and storage medium for rapidly uploading files to network disk

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant