CN108011882A - A kind of methods, devices and systems for carrying out data synchronization - Google Patents

A kind of methods, devices and systems for carrying out data synchronization Download PDF

Info

Publication number
CN108011882A
CN108011882A CN201711265221.1A CN201711265221A CN108011882A CN 108011882 A CN108011882 A CN 108011882A CN 201711265221 A CN201711265221 A CN 201711265221A CN 108011882 A CN108011882 A CN 108011882A
Authority
CN
China
Prior art keywords
data
terminal
server
stored
login mode
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
CN201711265221.1A
Other languages
Chinese (zh)
Other versions
CN108011882B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711265221.1A priority Critical patent/CN108011882B/en
Publication of CN108011882A publication Critical patent/CN108011882A/en
Application granted granted Critical
Publication of CN108011882B publication Critical patent/CN108011882B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of methods, devices and systems for carrying out data synchronization, belong to field of computer technology.The described method includes:The data download request that receiving terminal is sent;If the current login mode of the terminal is secure log mode, the data not stored in the terminal are sent to the terminal, wherein, the secure log mode is to carry out the login mode of two step cards;If the current login mode of the terminal is common login mode, the data not stored in the terminal are no longer sent to the terminal, wherein, the common login mode is the login mode for not carrying out two step cards.Using the disclosure, security can be improved.

Description

A kind of methods, devices and systems for carrying out data synchronization
Technical field
The disclosure is directed to field of computer technology, especially with respect to a kind of method, apparatus for carrying out data synchronization and is System.
Background technology
With the development of computer technology, the terminal such as mobile phone, tablet computer is widely used, in corresponding terminal Application program species is more and more, function is increasingly abundanter, the multi-functional life to people of terminal is brought greatly Convenience.
Use of the people for terminal, causes to be stored with substantial amounts of personal data (such as the data such as photo) in terminal, is Preservation personal data, terminal often store the personal data in terminal into server, realize backup, while other at ends Data during end is uploaded onto the server can also be synchronized in terminal, realize the synchronization of data in multiple terminals.Terminal with service Before device carries out data synchronization, it can be verified that (wherein, such a login mode can claim by pre-registered username and password For common login mode), when user name input by user, password are correct, terminal can be successfully logged onto in server, into And, it is possible to achieve terminal with server data it is synchronous, you can with the data not stored into server download terminal, to clothes The data not stored in business device upload server.
During the disclosure is realized, inventor has found to have at least the following problems:
Based on above-mentioned login mode, terminal is verified simply by username and password, when password is broken by other users When obtaining, other users can also be downloaded by terminal to server the user upload personal data so that, cause security compared with It is low.
The content of the invention
In order to overcome the problem of security is relatively low present in correlation technique, it is synchronous to carry out data present disclose provides one kind Methods, devices and systems.The technical solution is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for carrying out data synchronization, the described method includes:
The data download request that receiving terminal is sent;
If the current login mode of the terminal is secure log mode, sent to the terminal in the terminal not The data of storage, wherein, the secure log mode is to carry out the login mode of two step cards;
If the current login mode of the terminal is common login mode, no longer the terminal is sent to the terminal In the data that do not store, wherein, the common login mode is the login mode for not carrying out two step cards.
Optionally, the method further includes:
The data upload requests that the terminal is sent are received, wherein, carried in the data upload requests to be backed up Data;
The data to be backed up carried in the data upload requests are stored.
Optionally, the method further includes:
When receiving the data interrogation request that the terminal is sent, if there are do not stored in the terminal in server Data, then the data-acknowledge message of the corresponding data interrogation request is sent to the terminal.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of method for carrying out data synchronization, the described method includes:
Determine to deposit the data not stored in the terminal in server;
If current login mode is secure log mode, data download request is sent to the server, wherein, institute Secure log mode is stated to carry out the login mode of two step cards;
If current login mode is common login mode, data download request no longer is sent to the server, its In, the common login mode is the login mode for not carrying out two step cards;
When the data not stored in the terminal for receiving the server transmission, to the data not stored in the terminal Stored.
Optionally, the method further includes:
When the data being not backed up in detecting in terminal there are the server, send data to the server and upload Request, wherein, data to be backed up are carried in the data upload requests.
Optionally, the data not stored in the terminal are deposited in the definite server, including:
Often reach the default inquiry cycle, data interrogation request is sent to the server;
When receiving the data-acknowledge message for the correspondence data interrogation request that the server is sent, determine described The data not stored in the terminal are deposited in server.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of server, the server include:
Receiving module, the data download request sent for receiving terminal;
Sending module, if the current login mode for the terminal is secure log mode, sends out to the terminal The data not stored in the terminal are sent, wherein, the secure log mode is to carry out the login mode of two step cards;If institute The current login mode for stating terminal is common login mode, then the number not stored in the terminal is no longer sent to the terminal According to, wherein, the common login mode is the login mode for not carrying out two step cards.
Optionally, the receiving module, is additionally operable to:
The data upload requests that the terminal is sent are received, wherein, carried in the data upload requests to be backed up Data;
The data to be backed up carried in the data upload requests are stored.
Optionally, the sending module, is additionally operable to:
When receiving the data interrogation request that the terminal is sent, if there are do not stored in the terminal in server Data, then the data-acknowledge message of the corresponding data interrogation request is sent to the terminal.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of terminal, the terminal include:
Determining module, for determining to deposit the data not stored in the terminal in server;
Sending module, if being secure log mode for current login mode, sends under data to the server Request is carried, wherein, the secure log mode is to carry out the login mode of two step cards;If current login mode is commonly to step on Record mode, then no longer send data download request to the server, wherein, the common login mode is not carry out two steps The login mode of card;
Memory module, for when receiving the data not stored in the terminal that the server sends, to the terminal In the data that do not store stored.
Optionally, the sending module, is additionally operable to:
When the data being not backed up in detecting in terminal there are the server, send data to the server and upload Request, wherein, data to be backed up are carried in the data upload requests.
Optionally, the determining module, is used for:
Often reach the default inquiry cycle, data interrogation request is sent to the server;
When receiving the data-acknowledge message for the correspondence data interrogation request that the server is sent, determine described The data not stored in the terminal are deposited in server.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a kind of server, the server include processor and storage Device, at least one instruction, at least one section of program, code set or instruction set are stored with the memory, and described at least one refers to Make, at least one section of program, the code set or the instruction set are loaded by the processor and performed to realize such as first aspect The method of the carry out data synchronization.
According to the 6th of embodiment of the present disclosure aspect, there is provided a kind of computer-readable recording medium, in the storage medium At least one instruction, at least one section of program, code set or instruction set are stored with, described at least one instructs, is at least one section described Program, the code set or instruction set are loaded by processor and are performed the carry out data synchronization with realization as described in relation to the first aspect Method.
According to the 7th of the embodiment of the present disclosure the aspect, there is provided a kind of terminal, the terminal include processor and memory, institute State and at least one instruction, at least one section of program, code set or instruction set are stored with memory, at least one instruction, institute At least one section of program, the code set or instruction set is stated to be loaded as the processor and performed to realize as described in second aspect The method for carrying out data synchronization.
According to the eighth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, in the storage medium At least one instruction, at least one section of program, code set or instruction set are stored with, described at least one instructs, is at least one section described Program, the code set or instruction set are loaded as processor and performed to realize the carry out data synchronization as described in second aspect Method.
According to the 9th of the embodiment of the present disclosure the aspect, there is provided a kind of system for carrying out data synchronization, the system comprises end End and server, wherein:The server, the server as described in the third aspect;The terminal, such as fourth aspect The terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, when server receives the data download request of terminal transmission, if the current of terminal steps on Record mode is secure log mode, then server can send the data not stored in terminal to terminal, if current login side Formula is common login mode, and the data not stored in terminal are no longer sent to terminal, wherein, common login mode is not carry out two The login mode of step card, secure log mode are to carry out the login mode of two step cards.In this way, when terminal is common login side During formula, server does not allow the personal data stored in terminal downloads server, it is thus possible to improve security.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for carry out data synchronization according to an exemplary embodiment;
Fig. 2 is a kind of system architecture schematic diagram according to an exemplary embodiment;
Fig. 3 is a kind of structure diagram of server according to an exemplary embodiment;
Fig. 4 is a kind of structure diagram of terminal according to an exemplary embodiment;
Fig. 5 is a kind of structure diagram of server according to an exemplary embodiment;
Fig. 6 is a kind of structure diagram of terminal according to an exemplary embodiment.
Pass through above-mentioned attached drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These attached drawings It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
One exemplary embodiment of the disclosure provides a kind of method for carrying out data synchronization, and this method can be by terminal kimonos Business device realize jointly, wherein, terminal can be the terminal for having data synchronizing function, for example can be mobile phone, tablet computer etc. Terminal.Server can be the background server of data synchronizing function.
Terminal can include the components such as processor, memory, transceiver.Processor can be CPU (Central Processing Unit, central processing unit) etc., it can be used for the relevant treatment of current login mode for judging terminal.Storage Device can be RAM (Random Access Memory, random access memory), Flash (flash memory) etc., can be used for storage and connect The data that data generated in data, processing procedure needed for received data, processing procedure etc., such as server are sent.Receive Hair device can be used for carrying out data transmission with miscellaneous equipment, for example, the data not stored in receiving the terminal that server is sent, can With including antenna, match circuit, modem etc..
Server can include the components such as processor, memory, transceiver.Processor can be CPU etc., can be used for sentencing The relevant treatment of the current login mode of disconnected terminal.Memory can be RAM, Flash etc., can be used for the number that storage receives According to data generated in the data needed for, processing procedure, processing procedure etc., the data of such as terminal backup.Transceiver can be used Carry out data transmission in terminal or other servers, for example, send the data that do not store in terminal to terminal, transceiver can be with Including antenna, match circuit, modem etc..
Below in conjunction with embodiment, the process flow shown in Fig. 1 is described in detail, content can be as follows:
In a step 101, terminal determines to deposit the data not stored in the terminal in server.
In force, user can be signed in in server during using terminal by operating triggering terminal, its In, terminal can be signed in in server by common login mode or secure log mode.Specifically, user wants to trigger When terminal is signed in in server, login mode selection interface can be shown by operating triggering terminal, wherein, login mode choosing Select the secure log of the common login button that corresponding common login mode can be shown in interface and corresponding secure log mode Button, user can select corresponding login button according to the needs of oneself.When user clicks on common login button, terminal Can be by user name and password authentification, to sign in in server, when user clicks on secure log button, terminal is except logical Cross user name, outside password is verified, also carry out two step cards (such as input validation code), wherein, in login process, eventually When holding to server transmission logging request, user name, password (and identifying code) can be carried in logging request, in addition, Login mode mark can also be carried in logging request, after logining successfully, terminal and server can record the current of terminal Login mode.
After terminal signs in server, terminal can be to whether there is in terminal the data that do not store (i.e. in detection service device Other-end backups to the data in server), when depositing the data not stored in the terminal in server, terminal will can determine whether Go out the data deposited in server and do not stored in the terminal.
In a step 102, if current login mode is secure log mode, terminal to server sends data and downloads Request, wherein, secure log mode is to carry out the login mode of two step cards.
In force, when terminal determines to deposit the data not stored in the terminal in server, it can be determined that terminal is worked as Preceding login mode is common login mode or secure log mode, if current login mode is secure log mode, eventually End can send data download request to server, as shown in Figure 2.
In step 103, if current login mode is common login mode, terminal no longer sends data to server Download request, wherein, common login mode is the login mode for not carrying out two step cards.
In force, when terminal determines to deposit the data not stored in the terminal in server, if the current of terminal steps on Record mode is common login mode, then terminal no longer can send data download request to server.In this way, ought the current side of login When formula is security relatively low login mode, terminal can be no longer to server downloading data, so as to the storage in server Personal data protected.
Optionally, the data that terminal will can also be not backed up in the server that stored in terminal, in uploading onto the server, phase Answer, terminal can also be handled as follows:When detecting the data being not backed up in terminal in presence server, to server Data upload requests are sent, wherein, data to be backed up are carried in data upload requests.
In force, during the use of terminal, whether terminal can be generates new data, i.e., eventually in detection terminal End can be not standby in presence server when detecting in terminal whether there is the data that are not backed up in server in detection terminal Part data when, terminal can to server send data upload requests, wherein, can be carried in data upload requests need it is standby The data of part.
Optionally, terminal can determine to whether there is in server and do not deposited in terminal by way of being inquired to server The data of storage, correspondingly, the processing procedure of step 101 can be as follows:Often reach the default inquiry cycle, number is sent to server According to inquiry request;When receiving the data-acknowledge message of corresponding data inquiry request of server transmission, determine in server Deposit the data not stored in the terminal.
In force, the inquiry cycle can be previously provided with terminal, often reaches the default inquiry cycle, terminal can be to Server sends data interrogation request, wherein, data interrogation request is used to inquire to whether there is in server not to be stored in terminal Data.Correspondingly, after server receives data interrogation request, if depositing the data not stored in the terminal in server, Then server can send the data-acknowledge message of corresponding data inquiry request to terminal.Terminal can receive server transmission The data-acknowledge message of corresponding data inquiry request, at this time, terminal, which can determine that, deposits what is do not stored in the terminal in server Data.
At step 104, the data download request that server receiving terminal is sent.
In force, after terminal to server sends data download request, server can be with the data of receiving terminal transmission Download request.
In step 105, if the current login mode of terminal is secure log mode, server is sent eventually to terminal The data not stored in end, wherein, secure log mode is to carry out the login mode of two step cards.
In force, after server receives the data download request of terminal transmission, it can be determined that the current login of terminal Mode is common login mode or secure log mode, if current login mode is secure log mode, server can To respond the data download request of terminal transmission, i.e. server can send the data not stored in terminal to terminal.
In step 106, if the current login mode of terminal is common login mode, server is no longer sent out to terminal Make arrangements for his funeral the data that do not store in end, wherein, common login mode is the login mode for not carrying out two step cards.
In force, after the data download request that server receiving terminal is sent, if the current login mode of terminal is Common login mode, then server can be not responding to terminal transmission data download request, i.e., no longer to terminal send terminal in The data not stored.In this way, when current login mode is the relatively low login mode of security, no longer sent to terminal in terminal The data not stored, to be protected to the personal data of the storage in server.
Optionally, the situation of data upload requests is sent for terminal to server, correspondingly, server can also carry out Following processing:The data upload requests that receiving terminal is sent, wherein, data to be backed up are carried in data upload requests;Will The data to be backed up carried in data upload requests are stored.
In force, after terminal to server sends data upload requests, server can be with the data of receiving terminal transmission Upload request, and it can be parsed, obtain the data to be backed up wherein carried.After getting data to be backed up, service Device can be stored the data to be backed up carried in data upload requests, standby to data progress to be backed up to realize Part.
Optionally, the situation of data interrogation request is sent for terminal to server, correspondingly, server can also carry out Following processing:When receiving the data interrogation request of terminal transmission, if depositing the data not stored in the terminal in server, The data-acknowledge message of corresponding data inquiry request is then sent to terminal.
In force, after terminal to server sends data interrogation request, server can be with the data of receiving terminal transmission Inquiry request, and then, server may determine that the data that whether there is in server and do not stored in terminal, if deposited in server The data not stored in the terminal, then server can to terminal send corresponding data inquiry request data-acknowledge message, with Just after terminal receives data-acknowledge message, determine to deposit the data not stored in the terminal in server.
In step 107, when the data not stored in the terminal for receiving server transmission, to what is do not stored in terminal Data are stored.
In force, the situation for the data not stored in terminal is sent to terminal for server, server is sent out to terminal After the data not stored in holding of making arrangements for his funeral, terminal can receive the data not stored in the terminal of server transmission, and then, terminal can To be stored to the data not stored in terminal.
In the present solution, terminal and server supports two kinds of login modes, i.e., common login mode and secure log side at the same time Formula, when current login mode is secure log mode, data that terminal can not stored into server download terminal, when working as When preceding login mode is common login mode, data that terminal cannot not stored into server download terminal, no matter currently Login mode is secure log mode or common login mode, what terminal can be not backed up into server upload server Data.In this way, when receive identifying code terminal not user at one's side when, terminal can also be successfully logged onto server, so as to reality The backup of existing data in terminal.When current login mode is common login mode, the number in terminal downloads server is not allowed According to it is thus possible to improve security.
In the embodiment of the present disclosure, when server receives the data download request of terminal transmission, if the current of terminal steps on Record mode is secure log mode, then server can send the data not stored in terminal to terminal, if current login side Formula is common login mode, and the data not stored in terminal are no longer sent to terminal, wherein, common login mode is not carry out two The login mode of step card, secure log mode are to carry out the login mode of two step cards.In this way, when terminal is common login side During formula, server does not allow the personal data stored in terminal downloads server, it is thus possible to improve security.
Disclosure further example embodiment provides a kind of server, as shown in figure 3, the server includes:
Receiving module 310, the data download request sent for receiving terminal;
Sending module 320, if the current login mode for the terminal is secure log mode, to the terminal The data not stored in the terminal are sent, wherein, the secure log mode is to carry out the login mode of two step cards;If The current login mode of the terminal is common login mode, then the number not stored in the terminal is no longer sent to the terminal According to, wherein, the common login mode is the login mode for not carrying out two step cards.
Optionally, the receiving module 310, is additionally operable to:
The data upload requests that the terminal is sent are received, wherein, carried in the data upload requests to be backed up Data;
The data to be backed up carried in the data upload requests are stored.
Optionally, the sending module 320, is additionally operable to:
When receiving the data interrogation request that the terminal is sent, if there are do not stored in the terminal in server Data, then the data-acknowledge message of the corresponding data interrogation request is sent to the terminal.
Based on identical technical concept, disclosure further example embodiment provides a kind of terminal, as shown in figure 4, should Terminal includes:
Determining module 410, for determining to deposit the data not stored in the terminal in server;
Sending module 420, if being secure log mode for current login mode, data are sent to the server Download request, wherein, the secure log mode is to carry out the login mode of two step cards;If current login mode is common Login mode, then no longer send data download request to the server, wherein, the common login mode is not carry out two steps The login mode of verification;
Memory module 430, for when receive server transmission terminal in do not store data when, to not deposited in terminal The data of storage are stored.
Optionally, the sending module 420, is additionally operable to:
When the data being not backed up in detecting in terminal there are the server, send data to the server and upload Request, wherein, data to be backed up are carried in the data upload requests.
Optionally, the determining module 410, is used for:
Often reach the default inquiry cycle, data interrogation request is sent to the server;
When receiving the data-acknowledge message for the correspondence data interrogation request that the server is sent, determine described The data not stored in the terminal are deposited in server.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
In the embodiment of the present disclosure, when server receives the data download request of terminal transmission, if the current of terminal steps on Record mode is secure log mode, then server can send the data not stored in terminal to terminal, if current login side Formula is common login mode, and the data not stored in terminal are no longer sent to terminal, wherein, common login mode is not carry out two The login mode of step card, secure log mode are to carry out the login mode of two step cards.In this way, when terminal is common login side During formula, server does not allow the personal data stored in terminal downloads server, it is thus possible to improve security.
It should be noted that:Above-described embodiment provide carries out data synchronization device progress data synchronization when, only with The division progress of above-mentioned each function module, can be as needed and by above-mentioned function distribution by not for example, in practical application Same function module is completed, i.e., the internal structure of terminal or server is divided into different function modules, to complete to retouch above The all or part of function of stating.In addition, the device for the carry out data synchronization that above-described embodiment provides is synchronous with carrying out data Embodiment of the method belongs to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
The another exemplary embodiment of the disclosure show it is a kind of carry out data synchronization system, the system comprises terminal with Server, wherein:The server, server as described in Figure 3;The terminal, terminal as described in Figure 4.
In the embodiment of the present disclosure, when server receives the data download request of terminal transmission, if the current of terminal steps on Record mode is secure log mode, then server can send the data not stored in terminal to terminal, if current login side Formula is common login mode, and the data not stored in terminal are no longer sent to terminal, wherein, common login mode is not carry out two The login mode of step card, secure log mode are to carry out the login mode of two step cards.In this way, when terminal is common login side During formula, server does not allow the personal data stored in terminal downloads server, it is thus possible to improve security.
Fig. 5 is a kind of block diagram of the device 1900 of carry out data synchronization according to an exemplary embodiment.For example, dress Put 1900 and may be provided as a server.With reference to Fig. 5, device 1900 includes processing component 1922, it further comprises one Or multiple processors, and as the memory resource representated by memory 1932, can holding by processing component 1922 for storing Capable instruction, such as application program.The application program stored in memory 1932 can include one or more each A module for corresponding to one group of instruction.In addition, processing component 1922 is configured as execute instruction, it is same to perform above-mentioned carry out data The method of step.
Device 1900 can also include a power supply module 1926 and be configured as the power management of executive device 1900, one Wired or wireless network interface 1950 is configured as device 1900 being connected to network, and input and output (I/O) interface 1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Device 1900 can include memory, and either one of them or one of more than one program Procedure above is stored in memory, and be configured to by one either more than one processor perform it is one or one Procedure above includes the instruction for being used for being operated below:
The data download request that receiving terminal is sent;
If the current login mode of the terminal is secure log mode, sent to the terminal in the terminal not The data of storage, wherein, the secure log mode is to carry out the login mode of two step cards;
If the current login mode of the terminal is common login mode, no longer the terminal is sent to the terminal In the data that do not store, wherein, the common login mode is the login mode for not carrying out two step cards.
Optionally, the method further includes:
The data upload requests that the terminal is sent are received, wherein, carried in the data upload requests to be backed up Data;
The data to be backed up carried in the data upload requests are stored.
Optionally, the method further includes:
When receiving the data interrogation request that the terminal is sent, if there are do not stored in the terminal in server Data, then the data-acknowledge message of the corresponding data interrogation request is sent to the terminal.
In the embodiment of the present disclosure, when server receives the data download request of terminal transmission, if the current of terminal steps on Record mode is secure log mode, then server can send the data not stored in terminal to terminal, if current login side Formula is common login mode, and the data not stored in terminal are no longer sent to terminal, wherein, common login mode is not carry out two The login mode of step card, secure log mode are to carry out the login mode of two step cards.In this way, when terminal is common login side During formula, server does not allow the personal data stored in terminal downloads server, it is thus possible to improve security.
The another exemplary embodiment of the disclosure shows a kind of structure diagram of terminal.The terminal can be mobile phone etc..
With reference to Fig. 6, terminal 600 can include following one or more assemblies:Processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor component 614, and Communication component 616.
The integrated operation of the usual control terminal 600 of processing component 602, such as with display, call, data communication, phase The operation that machine operates and record operation is associated.Treatment element 602 can refer to including one or more processors 620 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 602 can include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 can include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in terminal 600.These data are shown Example includes the instruction of any application program or method for being operated in terminal 600, and contact data, telephone book data, disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 606 provides electric power for the various assemblies of terminal 600.Electric power assembly 606 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for audio output apparatus 600.
Multimedia component 608 is included in the screen of one output interface of offer between the terminal 600 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or sliding action Border, but also detect and the duration and pressure associated with the touch or slide operation.In certain embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When terminal 600 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive exterior multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when audio output apparatus 600 is in operator scheme, during such as call model, logging mode and speech recognition mode, wheat Gram wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or warp Sent by communication component 616.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor component 614 includes one or more sensors, and the state for providing various aspects for terminal 600 is commented Estimate.For example, sensor component 614 can detect opening/closed mode of terminal 600, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 600, and sensor component 614 can be with 600 1 components of detection terminal 600 or terminal Position change, the existence or non-existence that user contacts with terminal 600,600 orientation of terminal or acceleration/deceleration and terminal 600 Temperature change.Sensor component 614 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor component 614 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between terminal 600 and other equipment.Terminal 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 600 can be believed by one or more application application-specific integrated circuit (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 604 of instruction, above-metioned instruction can be performed to complete the above method by the processor 620 of terminal 600.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that terminal is able to carry out the method for carrying out data synchronization, and this method includes:
Determine to deposit the data not stored in the terminal in server;
If current login mode is secure log mode, data download request is sent to the server, wherein, institute Secure log mode is stated to carry out the login mode of two step cards;
If current login mode is common login mode, data download request no longer is sent to the server, its In, the common login mode is the login mode for not carrying out two step cards;
When the data not stored in the terminal for receiving server transmission, the data not stored in the terminal are carried out Storage.
Optionally, the method further includes:
When the data being not backed up in detecting in terminal there are the server, send data to the server and upload Request, wherein, data to be backed up are carried in the data upload requests.
Optionally, the data not stored in the terminal are deposited in the definite server, including:
Often reach the default inquiry cycle, data interrogation request is sent to the server;
When receiving the data-acknowledge message for the correspondence data interrogation request that the server is sent, determine described The data not stored in the terminal are deposited in server.
In the embodiment of the present disclosure, when server receives the data download request of terminal transmission, if the current of terminal steps on Record mode is secure log mode, then server can send the data not stored in terminal to terminal, if current login side Formula is common login mode, and the data not stored in terminal are no longer sent to terminal, wherein, common login mode is not carry out two The login mode of step card, secure log mode are to carry out the login mode of two step cards.In this way, when terminal is common login side During formula, server does not allow the personal data stored in terminal downloads server, it is thus possible to improve security.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (17)

  1. A kind of 1. method for carrying out data synchronization, it is characterised in that the described method includes:
    The data download request that receiving terminal is sent;
    If the current login mode of the terminal is secure log mode, sends in the terminal to the terminal and do not store Data, wherein, the secure log mode for carry out two step cards login mode;
    If the current login mode of the terminal is common login mode, no longer sent to the terminal in the terminal not The data of storage, wherein, the common login mode is the login mode for not carrying out two step cards.
  2. 2. according to the method described in claim 1, it is characterized in that, the method further includes:
    The data upload requests that the terminal is sent are received, wherein, data to be backed up are carried in the data upload requests;
    The data to be backed up carried in the data upload requests are stored.
  3. 3. method according to claim 1 or 2, it is characterised in that the method further includes:
    When receiving the data interrogation request that the terminal is sent, if there are the number not stored in the terminal in server According to then to the data-acknowledge message of the corresponding data interrogation request of terminal transmission.
  4. A kind of 4. method for carrying out data synchronization, it is characterised in that the described method includes:
    Determine to deposit the data not stored in the terminal in server;
    If current login mode is secure log mode, data download request is sent to the server, wherein, the peace Full login mode is the login mode for carrying out two step cards;
    If current login mode is common login mode, data download request no longer is sent to the server, wherein, institute It is the login mode for not carrying out two step cards to state common login mode;
    When the data not stored in the terminal for receiving the server transmission, the data not stored in the terminal are carried out Storage.
  5. 5. according to the method described in claim 4, it is characterized in that, the method further includes:
    When the data being not backed up in detecting in terminal there are the server, sending that data upload to the server please Ask, wherein, data to be backed up are carried in the data upload requests.
  6. 6. method according to claim 4 or 5, it is characterised in that deposit in the definite server and do not store in the terminal Data, including:
    Often reach the default inquiry cycle, data interrogation request is sent to the server;
    When receiving the data-acknowledge message for the correspondence data interrogation request that the server is sent, the service is determined The data not stored in the terminal are deposited in device.
  7. 7. a kind of server, it is characterised in that the server includes:
    Receiving module, the data download request sent for receiving terminal;
    Sending module, if the current login mode for the terminal is secure log mode, institute is sent to the terminal The data not stored in terminal are stated, wherein, the secure log mode is to carry out the login mode of two step cards;If the end The current login mode at end is common login mode, then the data not stored in the terminal are no longer sent to the terminal, its In, the common login mode is the login mode for not carrying out two step cards.
  8. 8. server according to claim 7, it is characterised in that the receiving module, is additionally operable to:
    The data upload requests that the terminal is sent are received, wherein, data to be backed up are carried in the data upload requests;
    The data to be backed up carried in the data upload requests are stored.
  9. 9. the server according to claim 7 or 8, it is characterised in that the sending module, is additionally operable to:
    When receiving the data interrogation request that the terminal is sent, if there are the number not stored in the terminal in server According to then to the data-acknowledge message of the corresponding data interrogation request of terminal transmission.
  10. 10. a kind of terminal, it is characterised in that the terminal includes:
    Determining module, for determining to deposit the data not stored in the terminal in server;
    Sending module, if being secure log mode for current login mode, sending data download to the server please Ask, wherein, the secure log mode is to carry out the login mode of two step cards;If current login mode is common login side Formula, then no longer send data download request to the server, wherein, the common login mode is not carry out two step cards Login mode;
    Memory module, for when receiving the data not stored in the terminal that the server sends, in the terminal not The data of storage are stored.
  11. 11. terminal according to claim 10, it is characterised in that the sending module, is additionally operable to:
    When the data being not backed up in detecting in terminal there are the server, sending that data upload to the server please Ask, wherein, data to be backed up are carried in the data upload requests.
  12. 12. the terminal according to claim 10 or 11, it is characterised in that the determining module, is used for:
    Often reach the default inquiry cycle, data interrogation request is sent to the server;
    When receiving the data-acknowledge message for the correspondence data interrogation request that the server is sent, the service is determined The data not stored in the terminal are deposited in device.
  13. 13. a kind of server, it is characterised in that the server includes processor and memory, is stored with the memory At least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the institute Code set or instruction set is stated to be loaded by the processor and performed to realize the carry out data as described in claims 1 to 3 is any Synchronous method.
  14. 14. a kind of computer-readable recording medium, it is characterised in that at least one instruction, extremely is stored with the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by processor and performed to realize the method for the carry out data synchronization as described in claims 1 to 3 is any.
  15. 15. a kind of terminal, it is characterised in that the terminal includes processor and memory, is stored with least in the memory One instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the generation Code collection or instruction set are loaded by the processor and performed to realize that the carry out data as described in claim 4 to 6 is any are synchronous Method.
  16. 16. a kind of computer-readable recording medium, it is characterised in that at least one instruction, extremely is stored with the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by processor and performed to realize the method for the carry out data synchronization as described in claim 4 to 6 is any.
  17. A kind of 17. system for carrying out data synchronization, it is characterised in that the system comprises terminal and server, wherein:
    The server, the server as described in any claim in the claim 7-9;The terminal, such as described power Profit requires the terminal described in any claim in 10-12.
CN201711265221.1A 2017-12-05 2017-12-05 Method, device and system for data synchronization Active CN108011882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711265221.1A CN108011882B (en) 2017-12-05 2017-12-05 Method, device and system for data synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711265221.1A CN108011882B (en) 2017-12-05 2017-12-05 Method, device and system for data synchronization

Publications (2)

Publication Number Publication Date
CN108011882A true CN108011882A (en) 2018-05-08
CN108011882B CN108011882B (en) 2020-11-27

Family

ID=62056609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711265221.1A Active CN108011882B (en) 2017-12-05 2017-12-05 Method, device and system for data synchronization

Country Status (1)

Country Link
CN (1) CN108011882B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991633A (en) * 2023-08-29 2023-11-03 北京星汉博纳医药科技有限公司 Data backup processing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161369A1 (en) * 2005-04-21 2011-06-30 Fiducci Thomas E Data backup, storage, transfer and retrieval system, method and computer program product
CN103139372A (en) * 2012-11-15 2013-06-05 无锡成电科大科技发展有限公司 Backup method of user information
CN103685169A (en) * 2012-09-06 2014-03-26 盛趣信息技术(上海)有限公司 Logging in method and system
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data
CN107291577A (en) * 2017-06-19 2017-10-24 腾讯科技(深圳)有限公司 file backup method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161369A1 (en) * 2005-04-21 2011-06-30 Fiducci Thomas E Data backup, storage, transfer and retrieval system, method and computer program product
CN103685169A (en) * 2012-09-06 2014-03-26 盛趣信息技术(上海)有限公司 Logging in method and system
CN103139372A (en) * 2012-11-15 2013-06-05 无锡成电科大科技发展有限公司 Backup method of user information
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data
CN107291577A (en) * 2017-06-19 2017-10-24 腾讯科技(深圳)有限公司 file backup method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991633A (en) * 2023-08-29 2023-11-03 北京星汉博纳医药科技有限公司 Data backup processing method, device and equipment
CN116991633B (en) * 2023-08-29 2024-05-31 北京星汉博纳医药科技有限公司 Data backup processing method, device and equipment

Also Published As

Publication number Publication date
CN108011882B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN104780155B (en) Apparatus bound method and device
CN111758095A (en) Method and terminal for quickly opening application or application function
CN105072178B (en) Cell-phone number binding information acquisition methods and device
CN104732380A (en) Method and device for conducting account transfer processing
EP3179397A1 (en) Methods and devices for managing automatic parallel login and logout in several applications
CN104008348A (en) Application program control method, application program control device and terminal
CN106254467A (en) Sharing files method and device
CN106454392A (en) Live broadcast processing method, device and terminal
CN104539812B (en) Recommendation information acquisition methods, terminal and server
CN105631254B (en) Unlocking method and tripper
CN108022349A (en) Information input method, equipment, smart lock and storage medium
CN107230060A (en) The method and apparatus that a kind of account is reported the loss
CN108804244A (en) Data transmission method for uplink, device and storage medium
CN106096009A (en) Method for generating message and device
CN107748991A (en) Account safety management method and device
CN109814942A (en) A kind of parameter processing method and device
CN104125267A (en) Account protection method, device and terminal equipment
CN107395624A (en) Information processing method and device
CN103916471A (en) Information display method and device
CN107071008A (en) Localization method, device and the equipment of terminal device
CN104125268B (en) Document down loading method, device, routing device and terminal device
CN106778198A (en) Perform the safety certifying method and device of operation
CN108011882A (en) A kind of methods, devices and systems for carrying out data synchronization
CN105809052A (en) Binding information recording method and apparatus
CN104486390B (en) The method and device of data sharing

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