CN105825133A - Synchronous data storage method - Google Patents
Synchronous data storage method Download PDFInfo
- Publication number
- CN105825133A CN105825133A CN201610134779.5A CN201610134779A CN105825133A CN 105825133 A CN105825133 A CN 105825133A CN 201610134779 A CN201610134779 A CN 201610134779A CN 105825133 A CN105825133 A CN 105825133A
- Authority
- CN
- China
- Prior art keywords
- data
- storage
- content
- flag
- identifying code
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6227—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Storage Device Security (AREA)
Abstract
The invention provides a synchronous data storage method. The synchronous data storage method comprises the following steps: dividing a local encrypted space from a local storage space according to settings of a user; obtaining storage data in the local encrypted space, and setting flag data corresponding to the storage data in the local encrypted space; randomly generating a first identifying code when a content bit of the storage data is modified, and sending the first indentifying code to a pre-assigned third-party terminal; receiving a second indentifying code input currently by a user, and judging whether the second indentifying code is the same as the first indentifying code; modifying the flag bits in the flag data in a preset mode; scanning the flag data, and encrypting the content of a content bit corresponding to a modified flag bit if a flag bit is modified; synchronously storing the encrypted content into at least one storage equipment, wherein the storage data comprises the content bits, and the flag data comprises the flag bit forming one-to-one correspondence with the content bits. The method can ensure the timeliness and consistency of data synchronism, and meanwhile reduces the data processing amount.
Description
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of data sync storage method.
Background technology
Data syn-chronization is the important technology in terms of data process, especially applies the occasion backed up in realtime at needs.There are two problems in current data syn-chronization: one is to rely on other intermediate systems so that synchronize system the most complicated, causes system unstable.The when that BUG occurring in system, the debugging quantities of system is big, and time efficiency is low;Two is to rely on complex technology to ensure real-time and the concordance of data.Technology is the most 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 data sync storage method, it is possible to increase data storage safety.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: provide a kind of data sync storage method, 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 that content position, described flag data include and described content position marker bit one to one;When the content position of described storage data is modified, stochastic generation the first identifying code, and described first identifying code is sent to preassigned third party's terminal;Receive the second identifying code that user is currently entered, and judge that described second identifying code is the most identical with described first identifying code;If identical, 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 marked, 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 simultaneously, the efficiency of data syn-chronization can be improved.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of embodiment of the present invention data sync storage method.
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 are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
See Fig. 1, be the schematic flow sheet of embodiment of the present invention data sync storage method.The data sync storage method 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, part memory space is marked off as local cipher space according to user setup, for depositing the encryption data of this locality.Such as, user goes out local cipher space by new folder the model split that is encrypted this new folder.
S2: obtain the storage data in local cipher space, and arrange the flag data corresponding with storing 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 the least, between the content position of the marker bit of flag data and storage data can by the way of address maps one_to_one corresponding, 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, stochastic generation the first identifying code, and the first identifying code is sent to preassigned third party's terminal.
Wherein, if after user confirms to revise content position, automatically generate amendment request, thus generate the first identifying code.First identifying code can be numeral, letter or combinations thereof.Alternatively, third party's terminal can be mobile phone.
S4: receive the second identifying code that user is currently entered, and judge that the second identifying code is the most identical with the first identifying code.
Wherein, if user's normal operating, then the second identifying code is the first identifying code that user gets from third party's terminal, and otherwise the second identifying code and the first identifying code differ
S5: if identical, revise marker bit in flag data in a predefined manner.
Wherein, after marker bit is revised in a predefined manner, can reflect that the content position that this marker bit is corresponding is revised.
S6: 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 use 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.
S7: the content synchronization of encryption is stored other at least one storage devices.
Wherein, the present available capacity of other storage device should be more than the memory capacity required for the content of encryption.In the present embodiment, whether the present available capacity that can prejudge storage device is more than the memory capacity required for the content encrypted, and when the present available capacity confirming storage device is enough, then starts 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 invention and accompanying drawing content to be made or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the scope of patent protection of the present invention.
Claims (1)
1. a data sync storage method, 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 that content position, described flag data include and described content position marker bit one to one;
When the content position of described storage data is modified, stochastic generation the first identifying code, and described first identifying code is sent to preassigned third party's terminal;
Receive the second identifying code that user is currently entered, and judge that described second identifying code is the most identical with described first identifying code;
If identical, 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610134779.5A CN105825133A (en) | 2016-03-09 | 2016-03-09 | Synchronous data storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610134779.5A CN105825133A (en) | 2016-03-09 | 2016-03-09 | Synchronous data storage method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105825133A true CN105825133A (en) | 2016-08-03 |
Family
ID=56987084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610134779.5A Pending CN105825133A (en) | 2016-03-09 | 2016-03-09 | Synchronous data storage method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105825133A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217431A (en) * | 2007-12-29 | 2008-07-09 | 腾讯科技(深圳)有限公司 | A method and system of photos in synchronous mobile terminal network TV and network album |
CN104243524A (en) * | 2013-06-19 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Method and device for achieving multi-platform contact synchronization |
US20150052392A1 (en) * | 2013-08-19 | 2015-02-19 | Microsoft Corporation | Disconnected Operation for Systems Utilizing Cloud Storage |
CN104935429A (en) * | 2014-03-17 | 2015-09-23 | Tcl集团股份有限公司 | Data processing method and system employing multi-encryption technology |
CN105183402A (en) * | 2015-10-30 | 2015-12-23 | 南京秦杜明视信息技术有限公司 | Data storage method |
CN105183898A (en) * | 2015-09-29 | 2015-12-23 | 北京奇艺世纪科技有限公司 | Data sync method and data sync system |
-
2016
- 2016-03-09 CN CN201610134779.5A patent/CN105825133A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217431A (en) * | 2007-12-29 | 2008-07-09 | 腾讯科技(深圳)有限公司 | A method and system of photos in synchronous mobile terminal network TV and network album |
CN104243524A (en) * | 2013-06-19 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Method and device for achieving multi-platform contact synchronization |
US20150052392A1 (en) * | 2013-08-19 | 2015-02-19 | Microsoft Corporation | Disconnected Operation for Systems Utilizing Cloud Storage |
CN104935429A (en) * | 2014-03-17 | 2015-09-23 | Tcl集团股份有限公司 | Data processing method and system employing multi-encryption technology |
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 |
---|---|---|
CN103354560B (en) | Method and system for data decomposition and synchronization | |
CN103916373A (en) | Data updating method, server, client side and system | |
CN103220351A (en) | Mobile terminal, file transmission method and system thereof and network system | |
CN103441841B (en) | A kind of welding data is from encrypting and decrypting system and method | |
CN105183898A (en) | Data sync method and data sync system | |
CN104994483B (en) | A method of sending Big Dipper short message without card | |
CN104021082A (en) | Remote debugging method and device for browser | |
CN105450712A (en) | Data transmission method and device | |
CN106788612B (en) | Bluetooth mode adjusting method based on A2DP protocol and Bluetooth device | |
CN104394305A (en) | Compatibility method for supporting external mobile camera and built-in camera of mobile equipment in Android system | |
CN104702703A (en) | Method and device for updating data | |
CN101447874B (en) | Data synchronization method, client and server | |
CN105704296A (en) | Application environment cloning method and device | |
CN106020868A (en) | Intelligent card firmware updating method and system | |
CN105611408A (en) | Set top box number writing method, set top box and set top box number writing server | |
CN105825133A (en) | Synchronous data storage method | |
CN103634385A (en) | System, method and server for data synchronizing | |
CN105897755A (en) | Communication method, communication device, internal unit and external unit for multi-split air-conditioning system | |
CN103200237A (en) | Method and device for maintaining remote desktop synchronization | |
CN104780211A (en) | Data synchronization method and device | |
CN108009084B (en) | Testing method, device and system for hybrid mobile application | |
CN102684865A (en) | Method, system and device for data synchronization | |
CN113448527B (en) | Data synchronization method, device, computer equipment and storage medium | |
CN105391574A (en) | Server address setting method and device | |
CN105656802A (en) | Data synchronization method |
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: 20160803 |