CN105656802A - Data synchronization method - Google Patents

Data synchronization method Download PDF

Info

Publication number
CN105656802A
CN105656802A CN201610133323.7A CN201610133323A CN105656802A CN 105656802 A CN105656802 A CN 105656802A CN 201610133323 A CN201610133323 A CN 201610133323A CN 105656802 A CN105656802 A CN 105656802A
Authority
CN
China
Prior art keywords
data
flag
storage
content
modified
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
Application number
CN201610133323.7A
Other languages
Chinese (zh)
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.)
Chengdu Baomihua Information Technology Co Ltd
Original Assignee
Chengdu Baomihua Information Technology 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 Chengdu Baomihua Information Technology Co Ltd filed Critical Chengdu Baomihua Information Technology Co Ltd
Priority to CN201610133323.7A priority Critical patent/CN105656802A/en
Publication of CN105656802A publication Critical patent/CN105656802A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Abstract

The invention provides a data synchronization method. The data synchronization method comprises the steps that a local encryption space is marked out from a local storage space according to settings of a user; storage data in the local encryption space is obtained, and flag data corresponding to the storage data is set in the local encryption space, wherein the storage data includes content bits, and the flag data includes flag bits corresponding to the content bits in a one-to-one mode; when the content bits of the storage data are modified, the flag bits in the flag data are modified in a predetermined mode; the flag data is scanned, and if it is found that the flag bits are modified, the contents corresponding to the content bits are encrypted according to the modified flag bits; the encrypted contents are synchronously stored to other at least one storage device. In the mode, the data synchronization method can ensure the real-timeliness and consistency of data synchronization, and meanwhile the data processing quantity is decreased.

Description

Method of data synchronization
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of method of data synchronization.
Background technology
Data syn-chronization is the important technology of data process aspect, is especially applied in the occasion needing to back up in realtime. There are two problems in current data syn-chronization: one is rely on other intermediate systems so that synchro system is excessively complicated, causes that system is unstable. Time BUG occurs in system, the debugging quantities of system is big, and time efficiency is low; Two is rely on complex technology to ensure real-time and the concordance of data. Technology is excessively complicated, it is difficult to co mpiler optimization generates efficient object code. Executing efficiency is low, and code refactoring time cost is high, and programming process is not cost-effective.
Summary of the invention
The technical problem that present invention mainly solves is to provide a kind of method of data synchronization, it is possible to ensures real-time and the concordance of data syn-chronization, reduces data processing amount simultaneously.
For solving above-mentioned technical problem, the technical scheme that the present invention adopts is: provide a kind of method of data synchronization, including: from locally stored space, mark off local cipher space according to the setting of user; Obtain the storage data in described local cipher space, and the flag data corresponding with described storage data is set in described local cipher space, wherein, described storage data include content position, and described flag data includes and described content position marker bit one to one; When the content position of described storage data is modified, described flag data is revised marker bit in a predefined manner; Scan described flag data, if it find that marker bit is modified, according to the described marker bit that amendment occurs, the content of corresponding content position is encrypted; The content synchronization of described encryption is stored other at least one storage devices.
It is different from the situation of prior art, the invention has the beneficial effects as follows: by using marker bit that amended storage data are carried out labelling, when synchrodata, storage data that sync mark position is modified, it is thus possible to ensure real-time and the concordance of data syn-chronization, reduce data processing amount, it is possible to improve the efficiency of data syn-chronization simultaneously.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of embodiment of the present invention method of data synchronization.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Referring to Fig. 1, it it is the schematic flow sheet of embodiment of the present invention method of data synchronization. The method of data synchronization of the present embodiment includes:
S1: mark off local cipher space from locally stored space according to the setting of user.
Wherein, in locally stored space, mark off part memory space as local cipher space according to user setup, add ciphertext data for what deposit this locality. Such as, user goes out local cipher space by new folder model split that this new folder is encrypted.
S2: obtain the storage data in local cipher space, and arrange the flag data corresponding with storage data in local cipher space, wherein, storage data include content position, and flag data includes and content position marker bit one to one.
Wherein, flag data can be that some simply encode, and data volume is only small, the mode one_to_one corresponding that can be mapped by address between marker bit and the content position of storage data of flag data, further, if storage data have newly-increased content position, then flag data also can increase marker bit accordingly.
S3: when the content position storing data is modified, revise marker bit in flag data in a predefined manner.
Wherein, after marker bit is revised in a predefined manner, it is possible to reflect that the content position that this marker bit is corresponding is revised.
S4: passing marker data, if it find that marker bit is modified, the content of corresponding content position is encrypted by the marker bit according to there is amendment.
Wherein, can adopting multiple cipher mode in the present embodiment, the present embodiment does not limit concrete cipher mode. Data encryption can actively strengthen safety during data synchronization transmissions.
S5: the content synchronization of encryption is stored other at least one storage devices.
Wherein, the present available capacity of other storage device should more than encryption content required for memory capacity. In the present embodiment, the present available capacity of storage device can be prejudged whether more than the memory capacity required for the content of encryption, when the present available capacity confirming storage device is enough, then start to carry out synchronizing storage to this storage device.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (1)

1. a method of data synchronization, it is characterised in that including:
Setting according to user marks off local cipher space from locally stored space;
Obtain the storage data in described local cipher space, and the flag data corresponding with described storage data is set in described local cipher space, wherein, described storage data include content position, and described flag data includes and described content position marker bit one to one;
When the content position of described storage data is modified, described flag data is revised marker bit in a predefined manner;
Scan described flag data, if it find that marker bit is modified, according to the described marker bit that amendment occurs, the content of corresponding content position is encrypted;
The content synchronization of described encryption is stored other at least one storage devices.
CN201610133323.7A 2016-03-09 2016-03-09 Data synchronization method Pending CN105656802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610133323.7A CN105656802A (en) 2016-03-09 2016-03-09 Data synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610133323.7A CN105656802A (en) 2016-03-09 2016-03-09 Data synchronization method

Publications (1)

Publication Number Publication Date
CN105656802A true CN105656802A (en) 2016-06-08

Family

ID=56493413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610133323.7A Pending CN105656802A (en) 2016-03-09 2016-03-09 Data synchronization method

Country Status (1)

Country Link
CN (1) CN105656802A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290628A (en) * 2008-06-17 2008-10-22 中兴通讯股份有限公司 Data file updating storage method
CN101615161A (en) * 2009-07-28 2009-12-30 成都市华为赛门铁克科技有限公司 A kind of encryption of hard disk and decryption method, hard disk drive and hard disk
US20120136836A1 (en) * 2010-11-29 2012-05-31 Beijing Z & W Technology Consulting Co., Ltd. Cloud Storage Data Storing and Retrieving Method, Apparatus and System
CN103558994A (en) * 2013-09-29 2014-02-05 记忆科技(深圳)有限公司 Method for encrypting solid state disk partitions and solid state disk
CN105183898A (en) * 2015-09-29 2015-12-23 北京奇艺世纪科技有限公司 Data sync method and data sync system
CN105183402A (en) * 2015-10-30 2015-12-23 南京秦杜明视信息技术有限公司 Data storage method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290628A (en) * 2008-06-17 2008-10-22 中兴通讯股份有限公司 Data file updating storage method
CN101615161A (en) * 2009-07-28 2009-12-30 成都市华为赛门铁克科技有限公司 A kind of encryption of hard disk and decryption method, hard disk drive and hard disk
US20120136836A1 (en) * 2010-11-29 2012-05-31 Beijing Z & W Technology Consulting Co., Ltd. Cloud Storage Data Storing and Retrieving Method, Apparatus and System
CN103558994A (en) * 2013-09-29 2014-02-05 记忆科技(深圳)有限公司 Method for encrypting solid state disk partitions and solid state disk
CN105183898A (en) * 2015-09-29 2015-12-23 北京奇艺世纪科技有限公司 Data sync method and data sync system
CN105183402A (en) * 2015-10-30 2015-12-23 南京秦杜明视信息技术有限公司 Data storage method

Similar Documents

Publication Publication Date Title
CN105183898A (en) Data sync method and data sync system
CN104980190A (en) Data transmission system and transmission method of Bluetooth interface
CN105117514B (en) Modularization automatic map delivery method and system
TW200731103A (en) Method of managing data snapshot images in a storage system
CN103177077B (en) The storage of a kind of APK file and output intent
CN101840373B (en) Data operating method and device
CN104834952A (en) Intelligent two-dimension code
CN104065752A (en) Synchronization method of data between terminals
CN104391991A (en) Method for converting AutoCAD data into GIS spatial data
CN104021081A (en) Debugging method and device for browser
CN104468260A (en) Recognition method, device and system for mobile terminal device
CN105302616A (en) Software remote immediate updating and upgrading system and method
CN102457553A (en) Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode
CN103902539A (en) Method and device for analyzing extensible markup language data
CN103474012A (en) Screen matching method of display device and display device
CN106533850A (en) Panel scene control method based on NFC card mode
CN103559280A (en) Method for flexibly storing and displaying icons
CN101714151A (en) SQL database-based set top box data storage method
CN105656802A (en) Data synchronization method
CN102801782A (en) Synchronous updating method and system for data
CN102855225B (en) System and method for setting page numbers of application documents
CN103942149A (en) User mode application and kernel message interaction method and system
CN108804197B (en) Dynamic componentization implementation method, device, equipment and storage medium
CN105825133A (en) Synchronous data storage method
CN103902573A (en) Method and device for displaying traffic line mark maps

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160608