CN106453571A - Data migration method and terminal - Google Patents

Data migration method and terminal Download PDF

Info

Publication number
CN106453571A
CN106453571A CN201610913528.7A CN201610913528A CN106453571A CN 106453571 A CN106453571 A CN 106453571A CN 201610913528 A CN201610913528 A CN 201610913528A CN 106453571 A CN106453571 A CN 106453571A
Authority
CN
China
Prior art keywords
data
mark
terminal
transmission
receiving
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
CN201610913528.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610913528.7A priority Critical patent/CN106453571A/en
Publication of CN106453571A publication Critical patent/CN106453571A/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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a data migration method and a terminal. The method comprises that a data transmission request sent by a first terminal is received, and the data transmission request includes an identifier and the size of data to be transmitted; historical transmission records which include identifiers and the sizes of transmitted data are obtained; the identifier of the data to be transmitted is compared with those of the transmitted data to determine whether identical identifiers exist; if YES, data with the same identifiers is compared to determine whether the sizes are the same; and if the identifiers are the same but the sizes are different, a user is prompted to cover the data. Thus, part of the data can be identified and updated, the partially updated data is used to cover the original data, and user time is saved while the data consistency is ensured.

Description

A kind of method of Data Migration and terminal
Technical field
The present invention relates to field of terminal is and in particular to a kind of method of Data Migration and terminal.
Background technology
With the popularization of terminal (the such as electronic equipment such as smart mobile phone, Wearable, panel computer), terminal gradually becomes For an indispensable part in people's life so that people no matter go to everywhere can carried terminal.
But it is as the development of science and technology, the speed that terminal updates is quickly.When user starts with a new terminal, often for Convenient use is it is necessary to import to the data inside old terminal in new terminal.
It is pointed out that when data is imported toward new terminal by user from old terminal, if necessary to the number importing Excessive according to measuring, therefore this has migrated part A, and next time is migrating remaining part B;But, when migration next time, on The data of the part A of secondary migration has part to update, in order to ensure the uniformity of data it is necessary to part A migrates one again again Time, but so can waste the time of user, cause the user inconvenience.
Content of the invention
Embodiments provide a kind of method of Data Migration and terminal, be capable of identify that the data of renewal part, and Data using renewal part covers to original data, thus while ensureing data consistency, when saving user Between.
Embodiment of the present invention first aspect discloses a kind of method of Data Migration, and methods described includes:
Receive the data transfer request that first terminal sends, described request of data includes the mark of this time data waiting for transmission And size;
Obtain historic transmission record, described historic transmission record includes the mark of data and the size of transmission;
The mark of the mark of described this time data waiting for transmission and the data of described transmission is compared to determine be No have identical mark;
If there is identical mark, mark identical data is compared to determine size whether identical;
If mark identical size of data differs, prompt the user whether to carry out data cover.
Second aspect present invention discloses a kind of terminal, and described terminal includes:
Receiving unit, for receiving the data transfer request of first terminal transmission, described request of data includes this time to be passed The mark of defeated data and size;
Acquiring unit, for obtaining historic transmission record, described historic transmission record includes the mark of the data of transmission And size;
Comparing unit, for carrying out the mark of described this time data waiting for transmission with the mark of the data of described transmission Relatively to determine whether there is identical mark;
Described comparing unit, if being additionally operable to there is identical mark, mark identical data is compared to determine Whether size is identical;
Tip element, if differing for mark identical size of data, prompts the user whether to carry out data cover.
Third aspect present invention discloses a kind of terminal, and described terminal includes:
Be stored with the memory of executable program code;
The processor coupling with described memory;
Described processor calls the described executable program code of storage in described memory, and execution is as described in relation to the first aspect Method.
As can be seen that in the scheme of the embodiment of the present invention, receiving the data transfer request that first terminal sends, described data Request includes this time mark of data waiting for transmission and size;Obtain historic transmission record, described historic transmission record is included The mark of data of transmission and size;The described mark of this time data waiting for transmission and the mark of the data of described transmission are entered Row compares to determine whether there is identical mark;If exist identical mark, by mark identical data be compared with Determine whether size is identical;If mark identical size of data differs, prompt the user whether to carry out data cover.Thus can Know, by implementing the technical scheme that the present invention provides, be capable of identify that the data of renewal part, and the data pair using renewal part Original data is covered, thus while ensureing data consistency, saving user time.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment Accompanying drawing be briefly described it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for Data Migration provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another kind Data Migration provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another kind Data Migration provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another kind terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another kind terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of entity apparatus structural representation of terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of entity apparatus structural representation of mobile phone provided in an embodiment of the present invention.
Specific embodiment
Embodiments provide a kind of method of Data Migration and terminal, be capable of identify that the data of renewal part, and Data using renewal part covers to original data, thus while ensureing data consistency, when saving user Between.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is explicitly described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is the present invention one The embodiment divided, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing The every other embodiment being obtained under the premise of going out creative work, all should belong to the scope of protection of the invention.
Term " first ", " second " and " the 3rd " occurring in description of the invention, claims and accompanying drawing etc. is to use In the different objects of difference, and it is not intended to describe specific order.Additionally, term " comprising " and " having " and they are any Deformation is it is intended that cover non-exclusive comprising.For example contain the process of series of steps or unit, method, system, product Or equipment is not limited to step or the unit listed, but alternatively also include step or the unit do not listed, or can Selection of land is also included for these processes, method, product or the intrinsic other steps of equipment or unit.
Disclose a kind of method of Data Migration in one embodiment of the invention, methods described includes:Receive first The data transfer request that terminal sends, described request of data includes this time mark of data waiting for transmission and size;Obtain history Transmission log, described historic transmission record includes the mark of data and the size of transmission;By described this time data waiting for transmission Mark compare to determine if there is identical mark with the mark of the data of described transmission;If there is identical mark Know, then whether identical mark identical data is compared to determine size;If mark identical size of data differs, Prompt the user whether to carry out data cover.
Refer to Fig. 1, Fig. 1 is a kind of method of Data Migration that one embodiment of the invention provides.Wherein, as Fig. 1 institute Show, a kind of method of Data Migration that one embodiment of the present of invention provides includes herein below:
The data transfer request that S101, reception first terminal send, described request of data includes this time data waiting for transmission Mark and size;
Wherein it is desired to it is noted that the executive agent of the method is second terminal.Second terminal includes but is not limited to intelligence Mobile phone, panel computer, computer and Wearable etc..First terminal includes but is not limited to smart mobile phone, panel computer, meter Calculation machine and Wearable etc..
It is understood that first terminal and second terminal can set up connection by modes such as Wi-F i, bluetooths.Set up After connection, first terminal sends data transfer request to second terminal.Specifically, set up the method connecting to include:Receive institute State the connection request of first terminal transmission, described connection request includes the digital signature of described first terminal;Using default public affairs Key is verified to described digital signature;If being verified, setting up with described first terminal and being connected.If authentication failed, refuse Set up with described first terminal absolutely and be connected.
Wherein, data to be transmitted mark can be the title of the corresponding application program of data to be transmitted.For example, pass The data of defeated wechat, then will comprise " wechat " in this data transfer request.For example, the data of camera to be transmitted, So " camera " will be comprised in this data transfer request.For example, the data of transmission communication record, then this data passes " address list " will be wrapped in defeated request.
Wherein it is possible to be understood by, the mark of data waiting for transmission and size are one-to-one, the data of such as wechat For 500M, the data of camera is 300, and the data of video recorder is 1G, and the data of address list is 100M etc..
S102, acquisition historic transmission record, described historic transmission record includes the mark of data and the size of transmission;
For example, second terminal obtains nearest historic transmission record from storage medium or Cloud Server.Should Historic transmission record can be a list, and in this list, the form of the information of record can be title and the size of data.Than As, wechat, 400M etc..
S103, the mark of the mark of described this time data waiting for transmission and the data of described transmission is compared with true Surely whether there is identical mark;
For example, if this time data waiting for transmission be designated wechat, camera and address list, described transmitted number According to be designated wechat and camera.
So just the mark of described this time data waiting for transmission can be compared with the mark of the data of described transmission Relatively to determine whether there is identical mark.
If S104 has identical mark, mark identical data is compared to determine size whether identical;
If it is understood that mark is identical it is necessary to whether determination size of data is identical.The number of such as last time transmission According to be identified with wechat, specifically also have wechat, then the size of the data of last time wechat and the data of this wechat will be compared Whether identical.If last time is 400M, the size of the corresponding data of current wechat is 500M, then illustrate that size differs.
If S105 mark identical size of data differs, prompt the user whether to carry out data cover.
Wherein it is possible to be understood by, if receiving described user to agree to the instruction covering it is necessary to feed back to first terminal Agree to the instruction covering.But concrete implementation mode has a lot, such as again receive this data of wechat, then use this The data of the wechat that the data cover last time receiving receives.It is, of course, also possible to receiving the content that wechat increases newly, then will be new The content increasing stores in the corresponding file of wechat and updates, thus also playing the effect of covering thus data also can be completed Really.
Wherein it is possible to be understood by, if mark identical size of data is also identical, after judging last time transmission, this data is No be modified, without being modified, be not then transmitted.For example, the data that last time transmits wechat is 400M, and this is treated The data of wechat of transmission is also 400M, then determine the last modification time of this wechat whether the time of last time transmission it Before, if whether the last modification time of this wechat, before the time of last time transmission, avoids the need for again transmitting, if this is micro- Believe last modification time whether after the time of last time transmission, then prompt the user whether to need to cover.
For example, if receiving the instruction that described user agrees to cover, described mark identical data will be obtained The historical reception date;Send target identification and described date received to described first terminal so that described first terminal is by institute Data after stating the described date of acceptance of target identification is transmitted, and wherein, described target identification refers to described this time to be passed With identical mark already present in the data of described transmission in defeated data;Receive the data that described first terminal sends, And by under the path of mark described in described data Cun Chudao.
For example, agreeing to cover the instruction of secondary data in wechat if receiving user, sending to first terminal micro- The mark of letter and last time receive time of wechat data so that first terminal determine the described time after the number that increases newly of wechat According to, and described newly-increased data is transmitted;After second terminal receives newly-increased wechat data, by the wechat receiving number According to storage under the corresponding path of wechat or in file.
For example, receive, if then obtaining, the instruction that described user agrees to cover, same to described first terminal feedback Meaning receives mark identical data;Receive the described mark identical data of described first terminal feedback, and utilize described reception The described mark identical data arriving replaces the mark identical data of storage.
If in addition, it is necessary to it is noted that receiving the instruction that described user disagrees covering, then be accomplished by wechat Under data Cun Chudao others path, as long as this time the data of the path of wechat data storage and last time wechat data storage is not With the data cover of the wechat that would not be received last time.
For example, if receiving the instruction that described user disagrees covering, obtain preset path, and to described first Terminal sends the instruction agreeing to receiving data;Receive the data that described first terminal sends, and described mark identical data is deposited Storage is under described preset path so that mark identical data is not under same path.
For example, in another embodiment of the invention, second terminal receives the data transfer of first terminal transmission Request, described request of data includes the size of camera data and camera data;And address list data and address list data Size;Such as camera data is 1G, and address list data is 100M;
First terminal obtains historic transmission record, and described historic transmission record includes the mark of data of transmission and big Little;Such as, the data of transmission be designated camera data, the size of this camera data is 800M;
The mark of the mark of described this time data waiting for transmission and the data of described transmission is compared to determine be No have identical mark;It is ensured that the mark of the data of the mark of the data of last time transmission and this transmission is all wrapped Include camera;
If there is identical mark, mark identical data is compared to determine size whether identical;Can manage Solution, the size of the size of data of camera last time transmission and the data of this transmission differs;
If mark identical size of data differs, prompt the user whether to carry out data cover.
The mark of camera and address list if the instruction that the carrying out receiving user input covers, is sent to first terminal So that all data of camera and address list are all transmitted by first terminal;
After second terminal receives the data of address list, the data of this address list is stored;
After second terminal receives the data of camera, the data cover last time of the camera receiving from this receives Camera data.
As can be seen that in the scheme of the embodiment of the present invention, receiving the data transfer request that first terminal sends, described data Request includes this time mark of data waiting for transmission and size;Obtain historic transmission record, described historic transmission record is included The mark of data of transmission and size;The described mark of this time data waiting for transmission and the mark of the data of described transmission are entered Row compares to determine whether there is identical mark;If exist identical mark, by mark identical data be compared with Determine whether size is identical;If mark identical size of data differs, prompt the user whether to carry out data cover.Thus can Know, by implementing the technical scheme that the present invention provides, be capable of identify that the data of renewal part, and the data pair using renewal part Original data is covered, thus while ensureing data consistency, saving user time.
Refer to Fig. 2, Fig. 2 is a kind of method of Data Migration that one embodiment of the invention provides.Wherein, as Fig. 2 institute Show, a kind of method of Data Migration that one embodiment of the present of invention provides includes herein below:
The connection request that S201, the described first terminal of reception send, described connection request includes described first terminal Digital signature;
Wherein it is desired to it is noted that the executive agent of the method is second terminal.Second terminal includes but is not limited to intelligence Mobile phone, panel computer, computer and Wearable etc..First terminal includes but is not limited to smart mobile phone, panel computer, meter Calculation machine and Wearable etc..
It is understood that first terminal and second terminal can be set up even by modes such as Wi-F i, bluetooths;
S202, using default public key, described digital signature is verified;
It is understood that first terminal is arbitrarily encrypted in plain text using the private key pair that prestores, if second terminal can With prestoring, public key is decrypted, then explanation is verified.
If S203 is verified, sets up with described first terminal and be connected;
The data transfer request that S204, reception first terminal send, described request of data includes this time data waiting for transmission Mark and size;
Wherein, data to be transmitted mark can be the title of the corresponding application program of data to be transmitted.For example, pass The data of defeated wechat, then will comprise " wechat " in this data transfer request.For example, the data of camera to be transmitted, So " camera " will be comprised in this data transfer request.For example, the data of transmission communication record, then this data passes " address list " will be wrapped in defeated request.
Wherein it is possible to be understood by, the mark of data waiting for transmission and size are one-to-one, the data of such as wechat For 500M, the data of camera is 300, and the data of video recorder is 1G, and the data of address list is 100M etc..
S205, acquisition historic transmission record, described historic transmission record includes the mark of data and the size of transmission;
For example, second terminal obtains nearest historic transmission record from storage medium or Cloud Server.Should Historic transmission record can be a list, and in this list, the form of the information of record can be title and the size of data.Than As, wechat, 400M etc..
S206, the mark of the mark of described this time data waiting for transmission and the data of described transmission is compared with true Surely whether there is identical mark;
If it is understood that mark is identical it is necessary to whether determination size of data is identical.The number of such as last time transmission According to be identified with wechat, specifically also have wechat, then the size of the data of last time wechat and the data of this wechat will be compared Whether identical.
If S207 has identical mark, mark identical data is compared to determine size whether identical;
For example, if last time is 400M, the size of the corresponding data of current wechat is 500M, then illustrate size not Identical.
If S208 mark identical size of data differs, prompt the user whether to carry out data cover;
Therein, the mode of prompting can be voice message, and text prompt can also be vibration prompting etc..
If S209 receives the instruction that described user agrees to cover, the history of described mark identical data will be obtained Date received;
S210, send target identification and described date received to described first terminal so that described first terminal is by institute Data after stating the described date of acceptance of target identification is transmitted, and wherein, described target identification refers to described this time to be passed With identical mark already present in the data of described transmission in defeated data;
S211 receives the data that described first terminal sends, and by under the path of mark described in described data Cun Chudao;
If S212 receives the instruction that described user disagrees covering, obtain preset path, and to described first terminal Send the instruction agreeing to receiving data;
The data that S213, the described first terminal of reception send, and described mark identical data is stored in described default road So that mark identical data is not under same path under footpath.
As can be seen that having expanded checking first terminal identity and user's agreement covering in the scheme of the embodiment of the present invention Technical scheme step, thus guarantee information source reliability and cover scheme exploitativeness.
Refer to Fig. 3, Fig. 3 is a kind of method of Data Migration that one embodiment of the invention provides.Wherein, as Fig. 3 institute Show, a kind of method of Data Migration that one embodiment of the present of invention provides includes herein below:
The connection request that S301, the described first terminal of reception send, described connection request includes described first terminal Digital signature;
Wherein it is desired to it is noted that the executive agent of the method is second terminal.Second terminal includes but is not limited to intelligence Mobile phone, panel computer, computer and Wearable etc..First terminal includes but is not limited to smart mobile phone, panel computer, meter Calculation machine and Wearable etc..
It is understood that first terminal and second terminal can be set up even by modes such as Wi-F i, bluetooths;
S302, using default public key, described digital signature is verified;
It is understood that first terminal is arbitrarily encrypted in plain text using the private key pair that prestores, if second terminal can With prestoring, public key is decrypted, then explanation is verified.
If S303 is verified, sets up with described first terminal and be connected;
The data transfer request that S304, reception first terminal send, described request of data includes this time data waiting for transmission Mark and size;
Wherein, data to be transmitted mark can be the title of the corresponding application program of data to be transmitted.For example, pass The data of defeated wechat, then will comprise " wechat " in this data transfer request.For example, the data of camera to be transmitted, So " camera " will be comprised in this data transfer request.For example, the data of transmission communication record, then this data passes " address list " will be wrapped in defeated request.
Wherein it is possible to be understood by, the mark of data waiting for transmission and size are one-to-one, the data of such as wechat For 500M, the data of camera is 300, and the data of video recorder is 1G, and the data of address list is 100M etc..
S305, acquisition historic transmission record, described historic transmission record includes the mark of data and the size of transmission;
For example, second terminal obtains nearest historic transmission record from storage medium or Cloud Server.Should Historic transmission record can be a list, and in this list, the form of the information of record can be title and the size of data.Than As, wechat, 400M etc..
S306, the mark of the mark of described this time data waiting for transmission and the data of described transmission is compared with true Surely whether there is identical mark;
If it is understood that mark is identical it is necessary to whether determination size of data is identical.The number of such as last time transmission According to be identified with wechat, specifically also have wechat, then the size of the data of last time wechat and the data of this wechat will be compared Whether identical.
If S307 has identical mark, mark identical data is compared to determine size whether identical;
For example, if last time is 400M, the size of the corresponding data of current wechat is 500M, then illustrate size not Identical.
If S308 mark identical size of data differs, prompt the user whether to carry out data cover;
If S309 receives the instruction that described user agrees to cover, agree to receive mark to described first terminal feedback Identical data;
S310, the described mark identical data of reception described first terminal feedback, and using described in described receiving Mark identical data replaces the mark identical data of storage;
If S311 receives the instruction that described user disagrees covering, obtain preset path, and to described first terminal Send the instruction agreeing to receiving data;
The data that S312, the described first terminal of reception send, and described mark identical data is stored in described default road So that mark identical data is not under same path under footpath.
As can be seen that having expanded checking first terminal identity and user's agreement covering in the scheme of the embodiment of the present invention Technical scheme step, thus guarantee information source reliability and cover scheme exploitativeness.
Refer to Fig. 4, Fig. 4 is a kind of structural representation of terminal that one embodiment of the present of invention provides.Wherein, as schemed Shown in 4, a kind of terminal 400 that one embodiment of the present of invention provides, wherein, this terminal can be for smart mobile phone, flat board electricity The electronic equipments such as brain, intelligent wearable equipment.This terminal 400 includes receiving unit 401, acquiring unit 402, comparing unit 403 And Tip element 404.
Receiving unit 401, for receiving the data transfer request of first terminal transmission, described request of data includes this time treating The mark of data of transmission and size;
Acquiring unit 402, for obtaining historic transmission record, described historic transmission record includes the mark of the data of transmission Know and size;
Comparing unit 403, for by the mark of the mark of described this time data waiting for transmission and the data of described transmission It compare to determine if there is identical mark;
Comparing unit 403, if being additionally operable to there is identical mark, mark identical data is compared to determine greatly Little whether identical;
Tip element 404, if differing for mark identical size of data, prompts the user whether that carrying out data covers Lid.
Wherein, receiving unit 401, determining unit 402, transmitting element 403 and memory cell 404 can be used for executing reality Apply the method described in step S101 to S105 in example 1, specifically describe the description to methods described for the detailed in Example 1, here is no longer Repeat.
Refer to Fig. 5, Fig. 5 is a kind of structural representation of terminal that one embodiment of the present of invention provides.Wherein, as schemed Shown in 5, another kind of terminal 500 that one embodiment of the present of invention provides, wherein, this terminal can be for smart mobile phone, flat board The electronic equipments such as computer, intelligent wearable equipment.This terminal 500 includes receiving unit 501, acquiring unit 502, comparing unit 503rd, Tip element 504, the first transmitting element 505, the first memory cell 506, the 3rd transmitting element 507, the 3rd memory cell 508th, authentication unit 509 and connection unit 510.
Receiving unit 501, for receiving the connection request that described first terminal sends, described connection request includes described The digital signature of first terminal;
Authentication unit 509, for being verified to described digital signature using default public key;
Connection unit 510, if for being verified, is set up with described first terminal and is connected;
Receiving unit 501, for receiving the data transfer request of first terminal transmission, described request of data includes this time treating The mark of data of transmission and size;
Acquiring unit 502, for obtaining historic transmission record, described historic transmission record includes the mark of the data of transmission Know and size;
Comparing unit 503, for by the mark of the mark of described this time data waiting for transmission and the data of described transmission It compare to determine if there is identical mark;
Comparing unit 503, if being additionally operable to there is identical mark, mark identical data is compared to determine greatly Little whether identical;
Tip element 504, if differing for mark identical size of data, prompts the user whether that carrying out data covers Lid;
Acquiring unit 502, if being additionally operable to receive the instruction that described user agrees to cover, will obtain described mark identical Data the historical reception date;
First transmitting element 505, for sending target identification and described date received to described first terminal so that Data after the described date of acceptance of described target identification is transmitted by described first terminal, wherein, described target identification Refer to identify with identical already present in the data of described transmission in described this time data waiting for transmission;
Receiving unit 501, is additionally operable to receive the data that described first terminal sends;
First memory cell 506, for by under the path of mark described in described data Cun Chudao.
Acquiring unit 502, if disagree the instruction of covering for receiving described user, obtains preset path;
3rd transmitting element 507, for sending the instruction agreeing to receiving data to described first terminal;
Receiving unit 501, for receiving the data that described first terminal sends;
3rd memory cell 508, for being stored under described preset path described mark identical data so that identifying Identical data is not under same path.
Wherein, receiving unit 501, acquiring unit 502, comparing unit 503, Tip element 504, the first transmitting element 505, First memory cell 506, the 3rd transmitting element 507, the 3rd memory cell 508, authentication unit 509 and connection unit 510 are permissible For executing the method described in step S201 to S213 in embodiment 2, specifically describe detailed in Example 2 and methods described is retouched State, will not be described here.
Refer to Fig. 6, Fig. 6 is a kind of structural representation of terminal that one embodiment of the present of invention provides.Wherein, as schemed Shown in 6, another kind of terminal 600 that one embodiment of the present of invention provides, wherein, this terminal can be for smart mobile phone, flat board The electronic equipments such as computer, intelligent wearable equipment.This terminal 600 includes receiving unit 601, acquiring unit 602, comparing unit 603rd, Tip element 604, the second transmitting element 605, the second memory cell 606, the 3rd transmitting element 607, the 3rd memory cell 608th, authentication unit 609 and connection unit 610.
Receiving unit 601, for receiving the connection request that described first terminal sends, described connection request includes described The digital signature of first terminal;
Authentication unit 609, for being verified to described digital signature using default public key;
Connection unit 610, if for being verified, is set up with described first terminal and is connected;
Receiving unit 601, for receiving the data transfer request of first terminal transmission, described request of data includes this time treating The mark of data of transmission and size;
Acquiring unit 602, for obtaining historic transmission record, described historic transmission record includes the mark of the data of transmission Know and size;
Comparing unit 603, for by the mark of the mark of described this time data waiting for transmission and the data of described transmission It compare to determine if there is identical mark;
Comparing unit 603, if being additionally operable to there is identical mark, mark identical data is compared to determine greatly Little whether identical;
Tip element 604, if differing for mark identical size of data, prompts the user whether that carrying out data covers Lid;
Acquiring unit 602, if being additionally operable to receive the instruction that described user agrees to cover, will obtain described mark identical Data the historical reception date;
Second transmitting element 605, if the instruction covering for receiving described user to agree to, anti-to described first terminal Feedback is agreed to receive mark identical data;
Receiving unit 601, for receiving the described mark identical data of described first terminal feedback;
Second memory cell 606, for replacing the mark of storage using the described described mark identical data receiving Know identical data;
Acquiring unit 602, if disagree the instruction of covering for receiving described user, obtains preset path;
3rd transmitting element 607, for sending the instruction agreeing to receiving data to described first terminal;
Receiving unit 601, for receiving the data that described first terminal sends;
3rd memory cell 608, for being stored under described preset path described mark identical data so that identifying Identical data is not under same path.
Wherein, receiving unit 601, determining unit 602, transmitting element 603, memory cell 604 and authentication unit 605 can For the method described in step S301 to S312 in execution embodiment 3, specifically describe detailed in Example 3 and methods described is retouched State, will not be described here.
Refer to Fig. 7, in another embodiment of the present invention, provide a kind of second terminal.Described second terminal 700 is wrapped Include CPU701, memory 702, bus 703.Wherein, this terminal 700 can be smart mobile phone, panel computer, Intelligent worn device Etc. the electronic equipment with call function.
Wherein, CPU701 execution is stored in advance in the program in memory 702, and this implementation procedure specifically includes:
Receive the data transfer request that first terminal sends, described request of data includes the mark of this time data waiting for transmission And size;
Obtain historic transmission record, described historic transmission record includes the mark of data and the size of transmission;
The mark of the mark of described this time data waiting for transmission and the data of described transmission is compared to determine be No have identical mark;
If there is identical mark, mark identical data is compared to determine size whether identical;
If mark identical size of data differs, prompt the user whether to carry out data cover.
Optionally, described prompt the user whether to carry out data cover after, described implementation procedure also includes:
If receiving the instruction that described user agrees to cover, the historical reception day of described mark identical data will be obtained Phase;
Send target identification and described date received to described first terminal so that described first terminal is by described mesh Data after the described date of acceptance of mark mark is transmitted, and wherein, described target identification refers to described this time waiting for transmission With identical mark already present in the data of described transmission in data;
Receive the data that described first terminal sends, and by under the path of mark described in described data Cun Chudao.
Optionally, described prompt the user whether to carry out data cover after, described implementation procedure also includes:
If receiving the instruction that described user agrees to cover, agree to receive mark identical to described first terminal feedback Data;
Receive the described mark identical data of described first terminal feedback, and using the described described mark phase receiving Same data replaces the mark identical data of storage.
Optionally, described prompt the user whether to carry out data cover after, described implementation procedure also includes:
If receiving the instruction that described user disagrees covering, obtain preset path, and send to described first terminal Agree to the instruction of receiving data;
Receive the data that described first terminal sends, and by described mark identical data be stored under described preset path with So that mark identical data is not under same path.
Optionally, before the data transfer request that described reception first terminal sends, described implementation procedure also includes:
Receive the connection request that described first terminal sends, described connection request includes the numeral label of described first terminal Name;
Using default public key, described digital signature is verified;
If being verified, setting up with described first terminal and being connected.
As can be seen that in the scheme of the embodiment of the present invention, receiving the data transfer request that first terminal sends, described data Request includes this time mark of data waiting for transmission and size;Obtain historic transmission record, described historic transmission record is included The mark of data of transmission and size;The described mark of this time data waiting for transmission and the mark of the data of described transmission are entered Row compares to determine whether there is identical mark;If exist identical mark, by mark identical data be compared with Determine whether size is identical;If mark identical size of data differs, prompt the user whether to carry out data cover.Thus can Know, by implementing the technical scheme that the present invention provides, be capable of identify that the data of renewal part, and the data pair using renewal part Original data is covered, thus while ensureing data consistency, saving user time.
Refer to Fig. 8, Fig. 8 is the frame of the part-structure of mobile phone of terminal correlation that one embodiment of the present of invention provides Figure.With reference to Fig. 8, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 810, memory 820, input block 830, aobvious Show unit 840, sensor 850, voicefrequency circuit 860, Wireless Fidelity (Wireless Fidelity, WiFi) module 870, process The part such as device 880 and power supply 890.It will be understood by those skilled in the art that the handset structure shown in Fig. 8 do not constitute right The restriction of mobile phone, can include ratio and illustrate more or less of part, or combine some parts, or different part cloth Put.
With reference to Fig. 8, each component parts of mobile phone is specifically introduced:
RF circuit 810 can be used for reception and the transmission of information.Generally, RF circuit 810 include but is not limited to antenna, at least one Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 810 can also be communicated with network and other equipment by radio communication.Above-mentioned radio communication can use arbitrary communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division many Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 820 can be used for storing software program and module, and processor 880 is stored in memory 820 by operation Software program and module, thus executing various function application and the data processing of mobile phone.Memory 820 can mainly include Storing program area and storage data field, wherein, storing program area can application journey needed for storage program area, at least one function Sequence (such as Data Migration function, touch control operation detection function etc.) etc.;Storage data field can store according to mobile phone using being created Data (such as store path table data etc.) built etc..Additionally, memory 820 can include high-speed random access memory, also Nonvolatile memory can be included, for example, at least one disk memory, flush memory device or the storage of other volatile solid-state Device.
Input block 830 can be used for numeral or the character information of receives input, and produce with the user setup of mobile phone with And the key signals input that function control is relevant.Specifically, input block 830 may include fingerprint module 831 and other inputs set Standby 832.Fingerprint module 831, can gather user's finger print data thereon.Optionally, fingerprint module 831 may include optical profile type and refers to Line module, capacitance type fingerprint module and RF-type fingerprint module.It is tool as a example capacitance type fingerprint module by fingerprint module 831 Body includes induction electrode (n1 abnormal induction electrode and n2 normal induction electrode) and the signal being connected with described induction electrode Process circuit (such as amplifying circuit, noise suppression circuit, analog-to-digital conversion circuit, etc.).Except fingerprint module 831, input block 830 can also include other input equipments 832.Specifically, other input equipments 832 can include but is not limited to physical keyboard, One or more of function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 840 can be used for display and by the information of user input or is supplied to the information of user and the various of mobile phone Menu.Display unit 840 may include display screen 841, optionally, can adopt liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) aobvious to configure Display screen 841.Although in fig. 8, fingerprint module 831 and display screen 841 are to realize the defeated of mobile phone as two independent parts Enter and input function, but in some embodiments it is possible to will be integrated with display screen 841 for fingerprint module 831 and realize mobile phone Input and output function.
Mobile phone may also include at least one sensor 850, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light The brightness to adjust display screen 841 for the light and shade, proximity transducer can when mobile phone moves in one's ear, close display screen 841 and/or Backlight.As one kind of motion sensor, accelerometer sensor can detect the big of (generally three axles) acceleration in all directions Little, can detect that size and the direction of gravity when static, can be used for identifying application (such as horizontal/vertical screen switching, the phase of mobile phone attitude Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be described here.
Voicefrequency circuit 860, loudspeaker 881, microphone 882 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data receiving conversion can be transferred to loudspeaker 881, is converted to sound by loudspeaker 881 by road 860 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 882, turns after being received by voicefrequency circuit 860 It is changed to voice data, then after voice data output processor 880 is processed, through RF circuit 810 to be sent to such as another mobile phone, Or voice data is exported to memory 820 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 870 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 8 shows WiFi module 870, but it is understood that, it is simultaneously not belonging to must be configured into of mobile phone, can not change as needed completely Omit in the scope of the essence becoming invention.
Processor 880 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, leads to Cross and run or software program and/or module that execution is stored in memory 820, and call and be stored in memory 820 Data, the various functions of execution mobile phone and processing data, thus carry out integral monitoring to mobile phone.Optionally, processor 880 can wrap Include one or more processing units;Preferably, processor 880 can integrated application processor and modem processor, wherein, should Mainly process operating system, user interface and application program etc. with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 880.
Mobile phone also includes the power supply 890 (such as battery) powered to all parts it is preferred that power supply can pass through power supply pipe Reason system is logically contiguous with processor 880, thus realizing management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be described here.
In embodiment shown in aforementioned Fig. 1, Fig. 2 and Fig. 3, each step method flow process can structure based on this mobile phone real Existing.
In embodiment shown in aforementioned Fig. 4, Fig. 5 and Fig. 6, each unit function can the structure based on this mobile phone be realized.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
It should be understood that disclosed device in several embodiments provided herein, can be by another way Realize.For example, device embodiment described above is only the schematically division of for example described unit, is only one kind Division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly can in conjunction with or can To be integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed each other Coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or communication connection, It can be electrical or other form.
The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs 's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server or network equipment etc.) execution each embodiment methods described of the present invention whole or Part steps.And aforesaid storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that:It still can be to front State the technical scheme described in each embodiment to modify, or equivalent is carried out to wherein some technical characteristics;And these Modification or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (11)

1. a kind of method of Data Migration is it is characterised in that methods described includes:
Receive the data transfer request that first terminal sends, described request of data includes this time mark of data waiting for transmission and big Little;
Obtain historic transmission record, described historic transmission record includes the mark of data and the size of transmission;
The mark of described this time data waiting for transmission is compare to determine if to deposit with the mark of the data of described transmission In identical mark;
If there is identical mark, mark identical data is compared to determine size whether identical;
If mark identical size of data differs, prompt the user whether to carry out data cover.
2. method according to claim 1 it is characterised in that described prompt the user whether to carry out data cover after, institute Method of stating also includes:
If receiving the instruction that described user agrees to cover, the historical reception date of described mark identical data will be obtained;
Send target identification and described date received to described first terminal so that described first terminal is by described target mark Data after the described date of acceptance known is transmitted, and wherein, described target identification refers to described this time data waiting for transmission In with already present identical mark in the data of described transmission;
Receive the data that described first terminal sends, and by under the path of mark described in described data Cun Chudao.
3. method according to claim 1 it is characterised in that described prompt the user whether to carry out data cover after, institute Method of stating also includes:
If receiving the instruction that described user agrees to cover, agree to receive mark identical number to described first terminal feedback According to;
Receive the described mark identical data of described first terminal feedback, and using the described described mark identical receiving Data replaces the mark identical data of storage.
4. method according to claim 1 it is characterised in that described prompt the user whether to carry out data cover after, institute Method of stating also includes:
If receiving the instruction that described user disagrees covering, obtain preset path, and send agreement to described first terminal The instruction of receiving data;
Receive the data that described first terminal sends, and described mark identical data is stored under described preset path so that Mark identical data is not under same path.
5. according to the arbitrary described method of Claims 1-4 it is characterised in that the data that described reception first terminal sends passes Before defeated request, methods described also includes:
Receive the connection request that described first terminal sends, described connection request includes the digital signature of described first terminal;
Using default public key, described digital signature is verified;
If being verified, setting up with described first terminal and being connected.
6. a kind of terminal is it is characterised in that described terminal includes:
Receiving unit, for receiving the data transfer request of first terminal transmission, described request of data includes this time waiting for transmission The mark of data and size;
Acquiring unit, for obtaining historic transmission record, described historic transmission record includes the mark of data of transmission and big Little;
Comparing unit, for being compared the mark of described this time data waiting for transmission with the mark of the data of described transmission To determine whether there is identical mark;
Described comparing unit, if being additionally operable to there is identical mark, mark identical data is compared to determine size Whether identical;
Tip element, if differing for mark identical size of data, prompts the user whether to carry out data cover.
7. terminal according to claim 6 is it is characterised in that described terminal also includes the first transmitting element and the first storage Unit;
Described acquiring unit, if being additionally operable to receive the instruction that described user agrees to cover, will obtain described mark identical The historical reception date of data;
Described first transmitting element, for sending target identification and described date received to described first terminal so that described Data after the described date of acceptance of described target identification is transmitted by first terminal, and wherein, described target identification refers to With identical mark already present in the data of described transmission in described this time data waiting for transmission;
Described receiving unit, is additionally operable to receive the data that described first terminal sends;
Described first memory cell, for by under the path of mark described in described data Cun Chudao.
8. terminal according to claim 6 is it is characterised in that described terminal includes the second transmitting element and the second storage is single Unit;
Described second transmitting element, if the instruction covering for receiving described user to agree to, to described first terminal feedback Agree to receive mark identical data;
Described receiving unit, for receiving the described mark identical data of described first terminal feedback;
Described second memory cell, for replacing the mark phase of storage using the described described mark identical data receiving Same data.
9. terminal according to claim 6 is it is characterised in that described terminal also includes the 3rd transmitting element and the 3rd storage Unit;
Described acquiring unit, if disagree the instruction of covering for receiving described user, obtains preset path;
Described 3rd transmitting element, for sending the instruction agreeing to receiving data to described first terminal;
Described receiving unit, for receiving the data that described first terminal sends;
Described 3rd memory cell, for being stored under described preset path described mark identical data so that identifying identical Data not under same path.
10. according to the arbitrary described method of claim 6 to 9 it is characterised in that described terminal method also includes authentication unit and company Order unit;
Described receiving unit, for receiving the connection request that described first terminal sends, described connection request includes described the The digital signature of one terminal;
Described authentication unit, for being verified to described digital signature using default public key;
Described connection unit, if for being verified, is set up with described first terminal and is connected.
A kind of 11. terminals are it is characterised in that include:
Be stored with the memory of executable program code;
The processor coupling with described memory;
Described processor calls the described executable program code of storage in described memory, and execution such as claim 1 is to right Require the method described in 5 any one.
CN201610913528.7A 2016-10-19 2016-10-19 Data migration method and terminal Pending CN106453571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610913528.7A CN106453571A (en) 2016-10-19 2016-10-19 Data migration method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913528.7A CN106453571A (en) 2016-10-19 2016-10-19 Data migration method and terminal

Publications (1)

Publication Number Publication Date
CN106453571A true CN106453571A (en) 2017-02-22

Family

ID=58175956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610913528.7A Pending CN106453571A (en) 2016-10-19 2016-10-19 Data migration method and terminal

Country Status (1)

Country Link
CN (1) CN106453571A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019162779A1 (en) * 2018-02-21 2019-08-29 International Business Machines Corporation Data storage system performing data relocation based on temporal proximity of accesses
WO2020113435A1 (en) * 2018-12-04 2020-06-11 比特大陆科技有限公司 Record transmitting method and device
CN111831625A (en) * 2020-07-14 2020-10-27 深圳力维智联技术有限公司 Data migration method, data migration device and readable storage medium
CN114466067A (en) * 2021-12-21 2022-05-10 天翼云科技有限公司 Data migration method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609489A (en) * 2012-01-21 2012-07-25 华为技术有限公司 Method and terminal for automatically copying data
US20150227605A1 (en) * 2012-10-25 2015-08-13 Fujitsu Limited Information processing terminal, synchronization control method, and computer-readable recording medium
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609489A (en) * 2012-01-21 2012-07-25 华为技术有限公司 Method and terminal for automatically copying data
US20150227605A1 (en) * 2012-10-25 2015-08-13 Fujitsu Limited Information processing terminal, synchronization control method, and computer-readable recording medium
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019162779A1 (en) * 2018-02-21 2019-08-29 International Business Machines Corporation Data storage system performing data relocation based on temporal proximity of accesses
US10481823B2 (en) 2018-02-21 2019-11-19 International Business Machines Corporation Data storage system performing data relocation based on temporal proximity of accesses
GB2585285A (en) * 2018-02-21 2021-01-06 Ibm Data storage system performing data relocation based on temporal proximity of accesses
GB2585285B (en) * 2018-02-21 2021-08-04 Ibm Data storage system performing data relocation based on temporal proximity of accesses
WO2020113435A1 (en) * 2018-12-04 2020-06-11 比特大陆科技有限公司 Record transmitting method and device
CN111831625A (en) * 2020-07-14 2020-10-27 深圳力维智联技术有限公司 Data migration method, data migration device and readable storage medium
CN111831625B (en) * 2020-07-14 2024-03-12 深圳力维智联技术有限公司 Data migration method, data migration device, and readable storage medium
CN114466067A (en) * 2021-12-21 2022-05-10 天翼云科技有限公司 Data migration method and device and electronic equipment
CN114466067B (en) * 2021-12-21 2023-08-04 天翼云科技有限公司 Data migration method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN105005909A (en) Method and device for predicting lost users
CN105119806A (en) Message updating method and device
CN104735671A (en) Malicious call recognition method and device
CN105471931A (en) Method, device and system for querying service data
CN106775827A (en) A kind of application program update method and device, computer equipment
CN103716331A (en) Method, terminal, server and system for numerical value transfer
CN103455348A (en) Subarea adjustment method, device, terminal, server and system
CN104717341A (en) Message prompting method and terminal
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN106446111A (en) Data migration method and terminal
CN106412033A (en) Data migration method and terminal
CN106714333A (en) Data migration method and terminal
CN106453571A (en) Data migration method and terminal
CN106534288A (en) Data transmission method and mobile terminal
CN106469028A (en) A kind of data migration method and mobile terminal
CN103607431B (en) Mobile terminal resource processing method, device and equipment
CN106569916A (en) Data backup method and mobile terminal
CN103546203B (en) Thering is provided and acquisition methods, device of near field communication tag script
CN106656978A (en) Account login method and server
CN106487878A (en) A kind of method of Data Migration and terminal
CN104951324A (en) Method and device for acquiring application calling relation table
CN106657214A (en) Data migration method and terminal
CN104918130A (en) Methods for transmitting and playing multimedia information, devices and system
CN105354067A (en) Interface configuration method and device

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

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication