WO2018049939A1 - 数据迁移方法及相关产品 - Google Patents

数据迁移方法及相关产品 Download PDF

Info

Publication number
WO2018049939A1
WO2018049939A1 PCT/CN2017/095314 CN2017095314W WO2018049939A1 WO 2018049939 A1 WO2018049939 A1 WO 2018049939A1 CN 2017095314 W CN2017095314 W CN 2017095314W WO 2018049939 A1 WO2018049939 A1 WO 2018049939A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
type
target data
list
terminal device
Prior art date
Application number
PCT/CN2017/095314
Other languages
English (en)
French (fr)
Inventor
周璇
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049939A1 publication Critical patent/WO2018049939A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a data migration method and related products.
  • terminals such as mobile phones, tablets, etc.
  • the function of moving the mobile phone when the user changes the mobile phone is provided on the market. This function can copy the entire old mobile phone data, software, etc. to the new mobile phone intact, thus providing convenience for the user to change the machine.
  • the embodiment of the invention provides a data migration method and related products, which can completely migrate data.
  • a first aspect of the embodiments of the present invention provides a data migration method, including:
  • the second data list, the second type of target data is shared by the first data list and the second data list;
  • a second aspect of the embodiments of the present invention provides a data migration apparatus, including:
  • An obtaining unit configured to acquire a first data list in the mobile terminal and a second data list in the terminal device
  • a first matching unit configured to match the first data list with the second data list, Obtaining the first type of target data and the second type of target data in the first data list, wherein the first type of target data does not have the second data list, and the second type of target data is The first data list and the second data list are shared;
  • a migration unit configured to transmit the first type of target data and the second type of target data to the terminal device.
  • a third aspect of the embodiments of the present invention provides a mobile terminal, including:
  • a processor and a memory wherein the processor performs some or all of the steps of the method described in the first aspect by invoking code or instructions in the memory.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium is configured to store a computer program, wherein the computer program causes a computer to perform the first aspect of the embodiment of the present invention.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in the first aspect of the invention.
  • the computer program product can be a software installation package.
  • FIG. 1 is a schematic diagram of a network architecture of a data migration system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a data migration method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart diagram of a second embodiment of a data migration method according to an embodiment of the present disclosure
  • FIG. 4a is a schematic structural diagram of an embodiment of a data migration apparatus according to an embodiment of the present invention.
  • FIG. 4b is a schematic structural diagram of a migration unit of the data migration apparatus described in FIG. 4a according to an embodiment of the present invention
  • FIG. 4c is a schematic structural diagram of a first transmission module of the migration unit depicted in FIG. 4b according to an embodiment of the present invention
  • FIG. 4d is another schematic structural diagram of a first transmission module of the migration unit depicted in FIG. 4b according to an embodiment of the present invention
  • FIG. 4e is another schematic structural diagram of the data migration apparatus described in FIG. 4a according to an embodiment of the present invention.
  • FIG. 4f is still another schematic structural diagram of the data migration apparatus described in FIG. 4a according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a data migration method and related products, which can completely migrate data.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the data described in the embodiments of the present invention may include applications (such as social applications, video applications, photo applications, game applications, etc.), folders, files (such as text files, video files, audio files, photos, etc.), cached data, Private data, etc., the above data are only examples, not exhaustive, including but not limited to the above data.
  • the mobile terminal or the terminal device described in the embodiments of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or
  • a smart phone such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a tablet computer such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a palmtop computer such as a Samsung Galaxy Tabs
  • a notebook computer such as an iPad, Samsung Galaxy Tabs, etc.
  • MID Mobile Internet Devices
  • the wearable device and the like are merely examples, and are not exhaustive, including but not limited to the above-described mobile terminal or terminal device.
  • the terminal device mentioned in the embodiment of the present invention may be the same as the mobile terminal, for example, the terminal device is a mobile phone, and the mobile terminal is another mobile phone; the terminal device may also be
  • the data transmission channel described in the embodiments of the present invention may include, but is not limited to, hotspot, Bluetooth, infrared, Wireless Fidelity (Wi-Fi), wired, etc., specifically, the hotspot is activated at the mobile terminal, and the terminal device is connected.
  • the mobile terminal can establish a data transmission channel between the two; when the mobile terminal starts Bluetooth, the terminal device connects to the mobile terminal, and a data transmission channel can be established between the two; the infrared terminal is activated at the mobile terminal, and the terminal device is connected to the mobile terminal, A data transmission channel can be established between the two; a certain Wi-Fi is connected to the mobile terminal, and the terminal device is indirectly connected to the mobile terminal, and a data transmission channel can be established between the two; the cable is performed between the mobile terminal and the terminal device by wire Connection, a data transmission channel can be established between the two.
  • FIG. 1 is a schematic diagram of a network architecture of a data migration system, where the network architecture may include: a mobile terminal and a terminal device.
  • the communication connection between the mobile terminal and the terminal device can be established through a Wireless Fidelity (Wi-Fi) network, a mobile communication network (such as 2G, 3G, 4G, 5G, etc.) or a wired network.
  • Wi-Fi Wireless Fidelity
  • the mobile terminal may obtain the first data list in the mobile terminal and the second data list in the terminal device, and match the first data list with the second data list to obtain the first type of target data in the first data list.
  • a second type of target data wherein the first type of target data does not have a second data list, and the second type of target data is shared by the first data list and the second data list, and the first type of target data and the second type of target data are Transfer to the terminal device.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a data migration method according to an embodiment of the present invention.
  • the data migration method described in this embodiment includes the following steps:
  • the data in the mobile terminal may be referred to as first data, which may include a data list, that is, a first data list, where the first data list includes multiple different data items, and each data item may correspond to an application or file.
  • the second data may be stored in the terminal device, and the second data list may also include a plurality of different data items, and each data item may correspond to a certain application or file.
  • the mobile terminal may receive the migration instruction, and execute the step 201 in response to the migration instruction, where the migration instruction is input by the user at the mobile terminal, or input by the terminal device, and sent to the mobile terminal.
  • the mobile terminal may establish a communication connection with the terminal device by using the at least one data transmission channel.
  • a data transmission channel between the mobile terminal and the terminal device is established through Bluetooth, and at the same time, a data transmission channel between the mobile terminal and the terminal device is established through Wi-Fi.
  • the first data list can be matched with the second data list, and the first data can be divided into the first type of target data and the second type of target data, and the first type of target data cannot be found in the second data list, and
  • the second type of target data may be common to the first data list and the second data list.
  • the mobile terminal may sequentially transmit the first type target data and the second type target data to the terminal device, or the mobile terminal may use the dual process or the dual thread to transmit the first type target data and the second type target data to the terminal device. That is, one process or thread sends the first type of target data, and another process or thread sends the second target data, and the above two processes or dual threads can be executed in parallel.
  • the first type of target data and the second type of target data are The transmission to the terminal device can be implemented as follows:
  • Data compression is performed on the first type of target data and the second type of target data, and the first type of target data and the second type of target data after data compression are sent to the terminal device.
  • the mobile terminal can perform data compression on the first type of target data and the second type of target data. After the data is compressed, the memory size of the first type of target data and the second type of target data is reduced. Further, the data is compressed. The first type of target data and the second type of target data are sent to the terminal device, so that the data transmission efficiency can be improved.
  • the foregoing step of transmitting the first type of target data and the second type of target data to the terminal device may include the following steps:
  • the first type of target data may be first transmitted to the terminal device, and the second type of target data may be compared with the version format of the mobile terminal and the terminal device, and if the version in the mobile terminal is higher than the version in the terminal device, the The second type of target data is transmitted to the terminal device, and if the version in the mobile terminal is lower than or equal to the version in the terminal device, the second type of target data is not transmitted to the terminal device.
  • the transmitting the first type of target data to the terminal device may include the following steps:
  • the first type of target data may be divided into P data sets according to the transmission rate of the P data transmission channels, that is, the transmission rate is large, and the corresponding data set is The occupied memory is large, and the transmission rate is small, and the corresponding data set occupies less memory.
  • the first type of target data can be reasonably utilized by using multiple data transmission channels, thereby improving data transmission efficiency.
  • the target data can be divided into P data sets, that is, the security of the data transmission channel, and the corresponding data set occupies a large memory, and the security of the data transmission channel is low.
  • the corresponding data set occupies less memory. That is, the data transmission channel with high security transmits more of the first type of target data, and the data transmission channel with low security transmits less of the first type of target data.
  • dividing the first type of target data into multiple data sets may be implemented as follows:
  • the data type may be at least one of the following: picture, video, audio, word, text, excel, etc.
  • the mobile terminal may obtain the data type included in the first type of target data, and obtain multiple data types, according to multiple data.
  • the type divides the target data into multiple data sets.
  • each data type can correspond to one data set.
  • the transmitting the first type of target data to the terminal device may include the following steps:
  • the first type of target data may be divided into multiple data sets, and the transmission priority of the multiple data sets may be determined according to the memory size of each data set, for example, the memory is large, the transmission priority is high, and the memory is small. The transmission priority is low, and thus, the transmission priority of each data set can be determined. Then, the multiple data sets can be transmitted to the terminal device according to the transmission priority of each data set in the multiple data sets.
  • determining a transmission priority of each data set in the multiple data sets may be implemented as follows:
  • Determining a frequency of use of the plurality of data sets in the mobile terminal determining a transmission priority of each data set in the plurality of data sets according to the usage frequency.
  • the mobile terminal can determine the frequency of use of each data set in the plurality of data sets in the mobile terminal
  • the rate in turn, can determine the transmission priority of each data set in multiple data sets according to the frequency of use. For example, the higher the frequency of use, the higher the transmission priority.
  • the first data list in the mobile terminal and the second data list in the terminal device Obtaining, by the embodiment of the present invention, the first data list in the mobile terminal and the second data list in the terminal device; matching the first data list with the second data list to obtain the first type of target data in the first data list And a second type of target data, wherein the first type of target data does not have a second data list, and the second type of target data is shared by the first data list and the second data list, and the first type of target data and the second type of target data are Transfer to the terminal device.
  • the data existing in the first data list and not in the second data list can be transmitted to the terminal device, and the data shared in the first data list and the second data list can be transmitted to the terminal device, which can be completely realized.
  • Migrate data the data existing in the first data list and not in the second data list can be transmitted to the terminal device, and the data shared in the first data list and the second data list can be transmitted to the terminal device, which can be completely realized.
  • FIG. 3 it is a schematic flowchart of a second embodiment of a data migration method according to an embodiment of the present invention.
  • the data migration method described in this embodiment includes the following steps:
  • N is an integer greater than 1.
  • the mobile terminal may determine N applications currently running in the mobile terminal.
  • the N applications may include system applications, or general applications, such as a photo application, a shopping application, etc., usually, N Is an integer greater than 1.
  • the mobile terminal can monitor each open application, so that N applications currently running in the mobile terminal can be directly determined.
  • the N application must include the system application and the driver application.
  • the system application is to ensure the normal operation of the operating system, and the driver application is the driver to run.
  • the N applications include other conventional applications.
  • a conventional application can be considered as an application that does not affect the operation of the operating system after the application is closed, and can also be understood as a third-party application.
  • the preset application list may be set in advance in the mobile terminal, and the preset application list may include at least one regular application.
  • the N applications can be matched with the preset application list one by one, that is, any one of the N applications is matched with the preset application list, and then another application of the N applications and the preset application are added.
  • the list is matched, and so on, it can be determined which of the N applications are present in the preset application list and which are not present in the preset application list.
  • N applications include: QQ, WeChat, Taobao, Baidu map
  • the preset application list includes: Taobao, Baidu map, Meituan, Beauty camera, then, when the N applications are matched with the preset application list, Taobao and Baidu maps can be found in the preset application list, while QQ and WeChat do not exist in the preset application list.
  • the M applications that are included in the N applications are found in the preset application list, the M applications are closed, where the M is an integer greater than 0 and smaller than the N.
  • the M applications may be closed, where the M is greater than 0 and less than N.
  • the integer the load of the mobile terminal can be reduced, the processing efficiency of the mobile terminal can be improved, and the migration efficiency can be improved.
  • the first data list in the mobile terminal and the second data list in the terminal device Obtaining, by the embodiment of the present invention, the first data list in the mobile terminal and the second data list in the terminal device; matching the first data list with the second data list to obtain the first type of target data in the first data list And the second type of target data, wherein the first type of target data does not have the second data list, and the second type of target data is shared by the first data list and the second data list, and can be turned off and the mobile terminal is running and belongs to the preset
  • the application of the application list transmits the first type of target data and the second type of target data to the terminal device.
  • the data existing in the first data list and not in the second data list can be transmitted to the terminal device, and the data shared in the first data list and the second data list can be transmitted to the terminal device, which can be completely realized.
  • Migrate data At the same time, the load on the mobile terminal can be reduced, and the data migration efficiency is improved.
  • FIG. 4 is a schematic structural diagram of an embodiment of a data migration apparatus according to an embodiment of the present invention.
  • the data migration device described in this embodiment includes: an obtaining unit 401, a first matching list Element 402 and migration unit 403 are as follows:
  • the obtaining unit 401 is configured to acquire a first data list in the mobile terminal and a second data list in the terminal device;
  • a first matching unit 402 configured to match the first data list with the second data list to obtain first type target data and second type target data in the first data list, where The second type of target data does not exist in the second type of data, and the second type of target data is shared by the first data list and the second data list;
  • the migration unit 403 is configured to transmit the first type of target data and the second type of target data to the terminal device.
  • the migration unit 403 is specifically configured to:
  • Data compression is performed on the first type of target data and the second type of target data, and the first type of target data and the second type of target data after data compression are sent to the terminal device.
  • the migration unit 403 of the data migration apparatus described in FIG. 4a includes: a first transmission module 4031 and a second transmission module 4032, as follows:
  • the first transmission module 4031 is configured to transmit the first type of target data to the terminal device
  • a second transmission module 4032 configured to: in the first version of the second type of target data in the first data list is higher than a second version in the second data list, the second The class target data is transmitted to the terminal device.
  • the first transmission module 4031 may include: a first division module 501, a startup module 502, and a third transmission.
  • Module 503 is as follows:
  • a first dividing module 501 configured to divide the first type of target data into the plurality of data sets
  • the startup module 502 is configured to start a plurality of data transmission channels between the mobile terminal and the terminal device;
  • the third transmission module 503 is configured to transmit the multiple data sets to the terminal device by using the multiple data transmission channels, where the plurality of data transmission channels are in one-to-one correspondence with the plurality of data sets.
  • the first dividing module 501 is specifically configured to:
  • the first transmission module 4031 may include: a second division module 504, a determination module 505, and a fourth transmission.
  • Module 506 is as follows:
  • a second dividing module 504 configured to divide the first type of target data into multiple data sets
  • a determining module 505 configured to determine a transmission priority of each data set in the multiple data sets
  • the fourth transmission module 506 is configured to transmit the multiple data sets to the terminal device according to a transmission priority of each data set in the multiple data sets.
  • the determining module 505 is specifically configured to:
  • FIG. 4e is a modified structure of FIG. 4a, and the data migration apparatus described in FIG. 4a may further include: a determining unit 404, a second matching unit 405, and a closing unit 406, as follows:
  • a determining unit 404 configured to match, by the first matching unit 402, the first data list with the second data list to obtain a first type of target data and a second class in the first data list After the target data, determining N applications currently running in the mobile terminal, the N being an integer greater than one;
  • a second matching unit 405, configured to match the N applications with a preset application list
  • the closing unit 406 is configured to: if the second matching unit 405 matches that the M applications include the M application, the M applications are closed, and the migration unit 403 Transmitting the first type of target data and the second type of target data to the terminal device, where the M is an integer greater than 0 and less than the N.
  • FIG. 4f is a modified structure of FIG. 4a, and the data migration apparatus described in FIG. 4a may further include: a connecting unit 407, as follows:
  • the connecting unit 407 is configured to establish a communication connection between the mobile terminal and the terminal device by using at least one data transmission channel.
  • the first data list in the mobile terminal and the second data list in the terminal device are obtained by using the data migration device described in the embodiment of the present invention; the first data list is matched with the second data list to obtain the first data.
  • the first type of target data and the second type of target data in the list of which, the first The second target data is not shared by the class target data, and the second target data is shared by the first data list and the second data list, and the first type target data and the second type target data are transmitted to the terminal device.
  • the data existing in the first data list and not in the second data list can be transmitted to the terminal device, and the data shared in the first data list and the second data list can be transmitted to the terminal device, which can be completely realized.
  • Migrate data is matched with the second data list to obtain the first data.
  • the data migration device described in the device embodiment of the present invention is presented in the form of a functional unit.
  • the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the function of the obtaining unit 401 for acquiring the first data list in the mobile terminal and the second data list in the terminal device may be implemented by the mobile terminal shown in FIG. 5, and may be specifically adopted by the processor 3000.
  • the executable program code in the memory 4000 is called to obtain a first data list in the mobile terminal and a second data list in the terminal device.
  • FIG. 5 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and The memory 4000 is connected by a bus 5000.
  • the input device 1000 may be a touch panel, a physical button, or a mouse.
  • the output device 2000 described above may specifically be a display screen.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a magnetic disk memory.
  • the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
  • the processor 3000 is configured to:
  • the second data list, the second type of target data is shared by the first data list and the second data list;
  • the foregoing processor 3000 transmits the first type of target data and the second type of target data to the terminal device, including:
  • Transmitting the second type of target data to the terminal in a first version of the second type of target data in the first data list is higher than a second version in the second data list device.
  • the foregoing processor 3000 transmits the first type of target data to the terminal device, including:
  • the foregoing processor 3000 divides the first type of target data into the multiple data sets, including:
  • the first type of target data is divided into the plurality of data sets according to the plurality of data types.
  • the foregoing processor 3000 transmits the first type of target data to the terminal device, including:
  • the processor 3000 determines a transmission priority of each data set in the multiple data sets.
  • Predecessor including:
  • the foregoing processor 3000 transmits the first type of target data and the second type of target data to the terminal device, including:
  • Data compression is performed on the first type of target data and the second type of target data, and the first type of target data and the second type of target data after data compression are sent to the terminal device.
  • processor 3000 is further configured to:
  • a communication connection between the mobile terminal and the terminal device is established through at least one data transmission channel.
  • the processor 3000 is configured to match the first data list with the second data list to obtain the first type of target data and the second type of target data in the first data list. And then, according to the result of the allocating, and before the transmitting the first type of target data and the second type of target data to the terminal device,
  • N is an integer greater than one
  • the M applications that are included in the N applications are present in the preset application list, the M applications are closed, and the first type of target data and the second type of target data are transmitted.
  • the M is an integer greater than 0 and less than the N.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data migration methods described in the foregoing method embodiments.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Any or all of the steps of any data migration method.
  • embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种数据迁移方法及相关产品,其中,所述方法包括:获取移动终端中的第一数据列表及终端设备中的第二数据列表(201);将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有(202);将所述第一类目标数据和所述第二类目标数据传输给所述终端设备(203)。

Description

数据迁移方法及相关产品
本发明要求2016年9月14日递交的发明名称为“一种数据迁移方法及移动终端”的申请号201610826546.1的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及互联网技术领域,具体涉及一种数据迁移方法及相关产品。
背景技术
随着信息技术快速发展,终端(如手机、平板电脑等等)更新换代越来越频繁。目前,市场上提供给用户换手机时,使用手机搬家的功能。该功能可以将整个旧手机资料,软件等全部原封不动的拷贝到新手机,从而,为用户换机提供方便。
发明内容
本发明实施例提供了一种数据迁移方法及相关产品,可以完整地迁移数据。
本发明实施例第一方面提供了一种数据迁移方法,包括:
获取移动终端中的第一数据列表及终端设备中的第二数据列表;
将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有;
将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
本发明实施例第二方面提供了一种数据迁移装置,包括:
获取单元,用于获取移动终端中的第一数据列表及终端设备中的第二数据列表;
第一匹配单元,用于将所述第一数据列表与所述第二数据列表进行匹配, 以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有;
迁移单元,用于将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
本发明实施例第三方面提供了一种移动终端,包括:
处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行第一方面所描述的方法的部分或者全部步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种数据迁移系统的网络架构示意图;
图2是本发明实施例提供的一种数据迁移方法的第一实施例流程示意图;
图3是本发明实施例提供的一种数据迁移方法的第二实施例流程示意图;
图4a是本发明实施例提供的一种数据迁移装置的实施例结构示意图;
图4b是本发明实施例提供的图4a所描述的数据迁移装置的迁移单元的结构示意图;
图4c是本发明实施例提供的图4b所描述的迁移单元的第一传输模块的结构示意图;
图4d是本发明实施例提供的图4b所描述的迁移单元的第一传输模块的又一结构示意图;
图4e是本发明实施例提供的图4a所描述的数据迁移装置的又一结构示意图;
图4f是本发明实施例提供的图4a所描述的数据迁移装置的又一结构示意图;
图5是本发明实施例提供的一种移动终端的实施例结构示意图。
具体实施方式
在手机搬家应用中,相关技术中的方法在迁移过程中,会发生如下现象,以新旧手机为例,存有相同的应用软件或者文档时,会用旧手机的文件覆盖新手机的文件或者应用,因此,可能会造成不必要数据损失,如何解决现有技术中数据迁移不完整的问题亟待解决。本发明实施例提供了一种数据迁移方法及相关产品,可以完整地迁移数据。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所描述的数据可以包括应用(如社交应用、视频应用、拍照应用、游戏应用等)、文件夹、文件(如文本文件、视频文件、音频文件、照片等等)、缓存数据、私密数据等,上述数据仅是举例,而非穷举,包含但不限于上述数据。
本发明实施例所描述的移动终端或者终端设备可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述仅是举例,而非穷举,包含但不限于上述移动终端或者终端设备。当然,本发明实施例中所提及的终端设备可与移动终端相同,例如,终端设备为手机,移动终端为另一手机;终端设备也可与移动终端不相同,例如,终端设备为手机,移动终端为平板电脑。
本发明实施例所描述的数据传输通道可包括但不仅限于:热点、蓝牙、红外、无线保真(Wireless Fidelity,Wi-Fi)、有线等等,具体地,在移动终端启动热点,终端设备连接该移动终端,两者之间可建立数据传输信道;在移动终端启动蓝牙,终端设备连接该移动终端,两者之间可建立数据传输信道;在移动终端启动红外,终端设备连接该移动终端,两者之间可建立数据传输信道;在移动终端均连接某一Wi-Fi,终端设备间接连接该移动终端,两者之间可建立数据传输信道;在移动终端与终端设备之间通过有线进行连接,两者之间可建立数据传输信道。
请参见图1,图1为本发明实施例提供了一种数据迁移系统的网络架构,该网络构架可包括:移动终端和终端设备。其中,移动终端与终端设备之间可通过无线保真(Wireless Fidelity,Wi-Fi)网络、移动通信网络(如2G、3G、4G、5G等等)、有线网络建立通信连接。例如,移动终端可获取移动终端中的第一数据列表及终端设备中的第二数据列表,将第一数据列表与第二数据列表进行匹配,以得到第一数据列表中的第一类目标数据和第二类目标数据,其中,第一类目标数据不存在第二数据列表,第二类目标数据为第一数据列表和第二数据列表共有,将第一类目标数据和第二类目标数据传输给终端设备。
基于图1所描述的数据迁移系统的网络架构,请参阅图2,为本发明实施例提供的一种数据迁移方法的第一实施例流程示意图。本实施例中所描述的数据迁移方法,包括以下步骤:
201、获取移动终端中的第一数据列表及终端设备中的第二数据列表。
其中,移动终端中的数据可称为第一数据,其可包含一个数据列表,即第一数据列表,该第一数据列表中包含多个不同数据项,每一数据项可对应某一个应用或者文件。终端设备中可存储有第二数据,其对应一个第二数据列表,该第二数据列表也可以包含多个不同数据项,每一数据项可对应某一个应用或者文件。
可选地,移动终端可接收迁移指令,响应该迁移指令执行步骤201,其中,该迁移指令由用户在该移动终端进行输入,或者,由终端设备输入,并发送给该移动终端。
可选地,在执行步骤201之前,移动终端可通过上述至少一个数据传输通道与终端设备建立通信连接。例如,通过蓝牙建立移动终端与终端设备之间的数据传输通道,同时,又通过Wi-Fi建立移动终端与终端设备之间的数据传输通道。
202、将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有。
其中,可将第一数据列表与第二数据列表进行匹配,可将第一数据分为第一类目标数据和第二类目标数据,第一类目标数据在第二数据列表中无法找到,而第二类目标数据可为第一数据列表和第二数据列表共有。
203、将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
其中,移动终端可依次将第一类目标数据和第二类目标数据传输给终端设备,或者,移动终端可采用双进程或者双线程将第一类目标数据和第二类目标数据传输给终端设备,即一个进程或者线程发送第一类目标数据,另一个进程或者线程发送第二目标数据,上述双进程或者双线程可并行执行。
可选地,上述步骤203中,将所述第一类目标数据和所述第二类目标数据 传输给所述终端设备,可按照如下方式实施:
对所述第一类目标数据和所述第二类目标数据进行数据压缩,并将数据压缩之后的所述第一类目标数据和所述第二类目标数据发送给所述终端设备。
其中,移动终端可以对第一类目标数据和第二类目标数据进行数据压缩,在数据压缩之后,第一类目标数据和第二类目标数据的内存大小会降低,进一步地,将该数据压缩之后的第一类目标数据和第二类目标数据发送给终端设备,如此,可提升数据传输效率。
可选地,上述将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,可包括如下步骤:
31)、将所述第一类目标数据传输给所述终端设备;
32)、在所述第二类目标数据在所述第一数据列表中的第一版本高于其对应在所述第二数据列表中的第二版本,将所述第二类目标数据传输给所述终端设备;
33)、在所述第二类目标数据在所述第一数据列表中的第一版本低于或者等同于其对应在所述第二数据列表中的第二版本,不向所述终端设备传输所述第二类目标数据。
其中,可先将第一类目标数据传输给终端设备,对于第二类目标数据可比对移动终端与终端设备中的版本形式,若移动终端中的版本高于终端设备中的版本,则可将第二类目标数据传输给终端设备,若移动终端中的版本低于或等同于终端设备中的版本,则不向终端设备传输该第二类目标数据。
进一步可选地,上述将所述第一类目标数据传输给所述终端设备,可包含如下步骤:
311)、将所述第一类目标数据分为所述多个数据集;
312)、启动所述移动终端与所述终端设备之间的多个数据传输通道;
313)、通过所述多个数据传输通道将所述多个数据集传输给所述终端设备,其中,所述多个数据传输通道与所述多个数据集一一对应。
上述可以P个数据传输通道加以说明,P为大于1的整数,可根据P个数据传输通道的传输速率将第一类目标数据分为P个数据集,即传输速率大,则对应的数据集的占用内存大,传输速率小,则对应的数据集的占用内存小。如 此,可合理地利用多个数据传输通道传输第一类目标数据,如此,可提升数据传输效率。当然,也可以根据每一数据传输通道的安全性,将目标数据分成P个数据集,即数据传输通道的安全性,则对应的数据集的占用内存大,数据传输通道的安全性低,则对应的数据集的占用内存小。即安全性高的数据传输通道多传输些第一类目标数据,安全性低的数据传输通道少传输些第一类目标数据。
可选地,上述步骤311中,将所述第一类目标数据分成多个数据集,可按照如下方式实施:
获取所述第一类目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述第一类目标数据分成所述多个数据集。
其中,数据类型可为以下至少一种:图片、视频、音频、word、文本、excel等等,移动终端可获取第一类目标数据中包含的数据类型,得到多个数据类型,根据多个数据类型将目标数据分成多个数据集,当然,每一数据类型可对应一个数据集。
进一步可选地,上述将所述第一类目标数据传输给所述终端设备,可包含如下步骤:
314)、将所述第一类目标数据分成多个数据集;
315)、确定所述多个数据集中的每一数据集的传输优先级;
316)、根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
其中,可将第一类目标数据分成多个数据集,可根据每一数据集的内存大小确定该多个数据集的传输优先级,例如,内存大的,传输优先级高,内存小的,传输优先级低,如此,可确定每一数据集的传输优先级,那么,可根据该多个数据集中的每一数据集的传输优先级传输该多个数据集至终端设备。
可选地,上述步骤315,确定所述多个数据集中的每一数据集的传输优先级,可按照如下方式实施:
确定所述多个数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
其中,移动终端可确定多个数据集中每一数据集在移动终端中的使用频 率,进而,可根据使用频率确定多个数据集中每一数据集的传输优先级,例如,使用频率越高,传输优先级越高。
通过本发明实施例获取移动终端中的第一数据列表及终端设备中的第二数据列表;将第一数据列表与第二数据列表进行匹配,以得到第一数据列表中的第一类目标数据和第二类目标数据,其中,第一类目标数据不存在第二数据列表,第二类目标数据为第一数据列表和第二数据列表共有,将第一类目标数据和第二类目标数据传输给终端设备。从而,可将存在于第一数据列表而不存在于第二数据列表中的数据发送至终端设备,并将第一数据列表和第二数据列表中共有的数据发送至终端设备,可实现完整地迁移数据。
与上述一致地,请参阅图3,为本发明实施例提供的一种数据迁移方法的第二实施例流程示意图。本实施例中所描述的数据迁移方法,包括以下步骤:
301、获取移动终端中的第一数据列表及终端设备中的第二数据列表。
302、将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有。
303、确定所述移动终端中当前正在运行的N个应用,所述N为大于1的整数。
其中,移动终端可确定该移动终端中当前正在运行的N个应用,当然,该N个应用可包含系统应用,或者,一般的应用,如:拍照应用,购物应用等等,通常情况下,N为大于1的整数。
可选地,移动终端可对每一开启的应用进行监听,从而,可直接确定该移动终端中当前正在运行的N个应用。
可以理解的是,N个应用中必然包含系统应用和驱动应用,系统应用是为了保证操作系统正常运行,驱动应用是驱动程序进行运行,当然,N个应用中还包括其他常规应用,在此,常规应用可认为是,关闭了该应用后,不会影响到操作系统的运作的应用,也可以理解为第三方应用。
304、将所述N个应用与预设应用列表进行匹配。
其中,预设应用列表可以预先在移动终端中进行设置,该预设应用列表中可包含至少一个常规应用。可将N个应用与预设应用列表进行一一匹配,即先将N个应用中的任一应用与预设应用列表进行匹配,然后,再将N个应用中的另一应用与预设应用列表进行匹配,以此类推,可以确定出N个应用中哪些应用存在于预设应用列表中,哪些不存在于预设应用列表中。
例如,N个应用包括:QQ、微信、淘宝、百度地图,预设应用列表包括:淘宝、百度地图、美团、美颜相机,那么,在将该N个应用与预设应用列表进行匹配时,可得到淘宝、百度地图存在于预设应用列表中,而QQ、微信不存在于预设应用列表中。
305、若匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,关闭所述M个应用,其中,所述M为大于0且小于所述N的整数。
可选地,若N个应用与预设应用列表匹配之后,得到该N个应用中的M个应用存在于预设应用列表中,则可关闭该M个应用,该M为大于0且小于N的整数。如此,可降低移动终端的负荷,提高移动终端的处理效率,可提升迁移效率。
306、将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
通过本发明实施例获取移动终端中的第一数据列表及终端设备中的第二数据列表;将第一数据列表与第二数据列表进行匹配,以得到第一数据列表中的第一类目标数据和第二类目标数据,其中,第一类目标数据不存在第二数据列表,第二类目标数据为第一数据列表和第二数据列表共有,可关闭掉移动终端中正在运行且属于预设应用列表的应用,并将第一类目标数据和第二类目标数据传输给终端设备。从而,可将存在于第一数据列表而不存在于第二数据列表中的数据发送至终端设备,并将第一数据列表和第二数据列表中共有的数据发送至终端设备,可实现完整地迁移数据。同时,可降低移动终端的负荷,提高了数据迁移效率。
与上述一致地,以下为实施上述数据迁移方法的装置,具体如下:
请参阅图4a,为本发明实施例提供的一种数据迁移装置的实施例结构示意图。本实施例中所描述的数据迁移装置,包括:获取单元401、第一匹配单 元402和迁移单元403,具体如下:
获取单元401,用于获取移动终端中的第一数据列表及终端设备中的第二数据列表;
第一匹配单元402,用于将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有;
迁移单元403,用于将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
可选地,所述迁移单元403具体用于:
对所述第一类目标数据和所述第二类目标数据进行数据压缩,并将数据压缩之后的所述第一类目标数据和所述第二类目标数据发送给所述终端设备。
可选地,如图4b,图4a中所描述的数据迁移装置的迁移单元403包括:第一传输模块4031和第二传输模块4032,具体如下:
第一传输模块4031,用于将所述第一类目标数据传输给所述终端设备;
第二传输模块4032,用于在所述第二类目标数据在所述第一数据列表中的第一版本高于其对应在所述第二数据列表中的第二版本,将所述第二类目标数据传输给所述终端设备。
进一步可选地,如图4c所示,图4c所描述的迁移单元403的第一传输模块4031的结构示意图,第一传输模块4031可包括:第一划分模块501、启动模块502和第三传输模块503,具体如下:
第一划分模块501,用于将所述第一类目标数据分为所述多个数据集;
启动模块502,用于启动所述移动终端与所述终端设备之间的多个数据传输通道;
第三传输模块503,用于通过所述多个数据传输通道将所述多个数据集传输给所述终端设备,其中,所述多个数据传输通道与所述多个数据集一一对应。
可选地,所述第一划分模块501具体用于:
获取所述第一类目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述第一类目标数据分成所述多个数据集。
进一步可选地,如图4d所示,图4d所描述的迁移单元403的第一传输模块4031的结构示意图,第一传输模块4031可包括:第二划分模块504、确定模块505和第四传输模块506,具体如下:
第二划分模块504,用于将所述第一类目标数据分成多个数据集;
确定模块505,用于确定所述多个数据集中的每一数据集的传输优先级;
第四传输模块506,用于根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
可选地,所述确定模块505具体用于:
确定所述多个数据集中每一数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
可选地,如图4e,图4e为图4a的一种变型结构,图4a中所描述的数据迁移装置还可包括:确定单元404、第二匹配单元405和关闭单元406,具体如下:
确定单元404,用于在所述第一匹配单元402将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据之后,确定所述移动终端中当前正在运行的N个应用,所述N为大于1的整数;
第二匹配单元405,用于将所述N个应用与预设应用列表进行匹配;
关闭单元406,用于若所述第二匹配单元405匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,关闭所述M个应用,由所述迁移单元403将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,其中,所述M为大于0且小于所述N的整数。
可选地,如图4f,图4f为图4a的一种变型结构,图4a中所描述的数据迁移装置还可包括:连接单元407,具体如下:
连接单元407,用于通过至少一个数据传输通道建立移动终端与终端设备之间的通信连接。
通过本发明实施例所描述的数据迁移装置,可获取移动终端中的第一数据列表及终端设备中的第二数据列表;将第一数据列表与第二数据列表进行匹配,以得到第一数据列表中的第一类目标数据和第二类目标数据,其中,第一 类目标数据不存在第二数据列表,第二类目标数据为第一数据列表和第二数据列表共有,将第一类目标数据和第二类目标数据传输给终端设备。从而,可将存在于第一数据列表而不存在于第二数据列表中的数据发送至终端设备,并将第一数据列表和第二数据列表中共有的数据发送至终端设备,可实现完整地迁移数据。
可以理解的是,上述本实施例的数据迁移装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
需要注意的是,本发明装置实施例所描述的数据迁移装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
举例来说,上述获取单元401,用于获取移动终端中的第一数据列表及终端设备中的第二数据列表的功能可以由图5所示的移动终端来实现,具体可以通过处理器3000通过调用存储器4000中的可执行程序代码,实现获取移动终端中的第一数据列表及终端设备中的第二数据列表。
请参阅图5,为本发明实施例提供的一种移动终端的实施例结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。
上述输出设备2000具体可为显示屏。
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:
上述处理器3000,用于:
获取移动终端中的第一数据列表及终端设备中的第二数据列表;
将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有;
将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
可选地,上述处理器3000将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,包括:
将所述第一类目标数据传输给所述终端设备;
在所述第二类目标数据在所述第一数据列表中的第一版本高于其对应在所述第二数据列表中的第二版本,将所述第二类目标数据传输给所述终端设备。
可选地,上述处理器3000将所述第一类目标数据传输给所述终端设备,包括:
将所述第一类目标数据分为所述多个数据集;
启动所述移动终端与所述终端设备之间的多个数据传输通道;
通过所述多个数据传输通道将所述多个数据集传输给所述终端设备,其中,所述多个数据传输通道与所述多个数据集一一对应。
可选地,上述处理器3000将所述第一类目标数据分为所述多个数据集,包括:
获取所述第一类目标数据中包含的数据类型,得到多个数据类型;
根据所述多个数据类型将所述第一类目标数据分成所述多个数据集。
可选地,上述处理器3000将所述第一类目标数据传输给所述终端设备,包括:
将所述第一类目标数据分成多个数据集;
确定所述多个数据集中的每一数据集的传输优先级;
根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
可选地,上述处理器3000确定所述多个数据集中的每一数据集的传输优 先级,包括:
确定所述多个数据集中每一数据集在所述移动终端中的使用频率;
根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
可选地,上述处理器3000将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,包括:
对所述第一类目标数据和所述第二类目标数据进行数据压缩,并将数据压缩之后的所述第一类目标数据和所述第二类目标数据发送给所述终端设备。
可选地,上述处理器3000还具体用于:
通过至少一个数据传输通道建立移动终端与终端设备之间的通信连接。
可选地,上述处理器3000,在所述将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据之后,以及所述按照所述分配的结果,并通过所述将所述第一类目标数据和所述第二类目标数据传输给所述终端设备之前,还具体用于:
确定所述移动终端中当前正在运行的N个应用,所述N为大于1的整数;
将所述N个应用与预设应用列表进行匹配;
若匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,关闭所述M个应用,执行所述将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,其中,所述M为大于0且小于所述N的整数。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括” (comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。
本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖 本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (20)

  1. 一种数据迁移方法,其特征在于,包括:
    获取移动终端中的第一数据列表及终端设备中的第二数据列表;
    将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有;
    将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,包括:
    将所述第一类目标数据传输给所述终端设备;
    在所述第二类目标数据在所述第一数据列表中的第一版本高于其对应在所述第二数据列表中的第二版本,将所述第二类目标数据传输给所述终端设备。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述第一类目标数据传输给所述终端设备,包括:
    将所述第一类目标数据分为所述多个数据集;
    启动所述移动终端与所述终端设备之间的多个数据传输通道;
    通过所述多个数据传输通道将所述多个数据集传输给所述终端设备,其中,所述多个数据传输通道与所述多个数据集一一对应。
  4. 根据权利要求3所述的方法,其特征在于,所述将所述第一类目标数据分为所述多个数据集,包括:
    获取所述第一类目标数据中包含的数据类型,得到多个数据类型;
    根据所述多个数据类型将所述第一类目标数据分成所述多个数据集。
  5. 根据权利要求2所述的方法,其特征在于,所述将所述第一类目标数据传输给所述终端设备,包括:
    将所述第一类目标数据分成多个数据集;
    确定所述多个数据集中的每一数据集的传输优先级;
    根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
  6. 根据权利要求5所述的方法,其特征在于,所述确定所述多个数据集中的每一数据集的传输优先级,包括:
    确定所述多个数据集中每一数据集在所述移动终端中的使用频率;
    根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
  7. 根据权利1-6任一项所述的方法,其特征在于,所述将所述第一类目标数据和所述第二类目标数据传输给所述终端设备,包括:
    对所述第一类目标数据和所述第二类目标数据进行数据压缩,并将数据压缩之后的所述第一类目标数据和所述第二类目标数据发送给所述终端设备。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:
    通过至少一个数据传输通道建立移动终端与终端设备之间的通信连接。
  9. 根据权利要求1-7任一项所述的方法,其特征在于,在所述将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据之后,以及所述按照所述分配的结果,并通过所述将所述第一类目标数据和所述第二类目标数据传输给所述终端设备之前,所述方法还包括:
    确定所述移动终端中当前正在运行的N个应用,所述N为大于1的整数;
    将所述N个应用与预设应用列表进行匹配;
    若匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,关闭所述M个应用,执行所述将所述第一类目标数据和所述第二类目标数据传 输给所述终端设备,其中,所述M为大于0且小于所述N的整数。
  10. 一种数据迁移装置,其特征在于,包括:
    获取单元,用于获取移动终端中的第一数据列表及终端设备中的第二数据列表;
    第一匹配单元,用于将所述第一数据列表与所述第二数据列表进行匹配,以得到所述第一数据列表中的第一类目标数据和第二类目标数据,其中,所述第一类目标数据不存在所述第二数据列表,所述第二类目标数据为所述第一数据列表和所述第二数据列表共有;
    迁移单元,用于将所述第一类目标数据和所述第二类目标数据传输给所述终端设备。
  11. 根据权利要求10所述的数据迁移装置,其特征在于,所述迁移单元包括:
    第一传输模块,用于将所述第一类目标数据传输给所述终端设备;
    第二传输模块,用于在所述第二类目标数据在所述第一数据列表中的第一版本高于其对应在所述第二数据列表中的第二版本,将所述第二类目标数据传输给所述终端设备。
  12. 根据权利要求11所述的数据迁移装置,其特征在于,所述第一传输模块包括:
    第一划分模块,用于将所述第一类目标数据分为所述多个数据集;
    启动模块,用于启动所述移动终端与所述终端设备之间的多个数据传输通道;
    第三传输模块,用于通过所述多个数据传输通道将所述多个数据集传输给所述终端设备,其中,所述多个数据传输通道与所述多个数据集一一对应。
  13. 根据权利要求12所述的数据迁移装置,其特征在于,所述第一划分模块具体用于:
    获取所述第一类目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述第一类目标数据分成所述多个数据集。
  14. 根据权利要求11所述的数据迁移装置,其特征在于,所述第一传输模块包括:
    第二划分模块,用于将所述第一类目标数据分成多个数据集;
    确定模块,用于确定所述多个数据集中的每一数据集的传输优先级;
    第四传输模块,用于根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
  15. 根据权利要求14所述的数据迁移装置,其特征在于,所述确定模块具体用于:
    确定所述多个数据集中每一数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
  16. 根据权利10-15任一项所述的数据迁移装置,其特征在于,所述迁移单元具体用于:
    对所述第一类目标数据和所述第二类目标数据进行数据压缩,并将数据压缩之后的所述第一类目标数据和所述第二类目标数据发送给所述终端设备。
  17. 根据权利10-16任一项所述的数据迁移装置,其特征在于,所述数据迁移装置还包括:
    连接单元,用于通过至少一个数据传输通道建立移动终端与终端设备之间的通信连接。
  18. 一种移动终端,其特征在于,包括:
    处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如权利要求1至9任意一项所述的方法。
  19. 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2017/095314 2016-09-14 2017-07-31 数据迁移方法及相关产品 WO2018049939A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826546.1 2016-09-14
CN201610826546.1A CN106383731B (zh) 2016-09-14 2016-09-14 一种数据迁移方法及移动终端

Publications (1)

Publication Number Publication Date
WO2018049939A1 true WO2018049939A1 (zh) 2018-03-22

Family

ID=57935769

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095314 WO2018049939A1 (zh) 2016-09-14 2017-07-31 数据迁移方法及相关产品

Country Status (2)

Country Link
CN (1) CN106383731B (zh)
WO (1) WO2018049939A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484325A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据迁移方法及移动终端
CN106383731B (zh) * 2016-09-14 2019-08-27 Oppo广东移动通信有限公司 一种数据迁移方法及移动终端
CN113572797B (zh) * 2020-04-29 2024-05-31 阿里巴巴集团控股有限公司 数据处理方法、装置、系统及电子设备
CN114205227A (zh) * 2021-12-10 2022-03-18 珠海格力电器股份有限公司 设备的同步方法和装置、存储介质、电子装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902562A (zh) * 2012-12-26 2014-07-02 腾讯科技(深圳)有限公司 一种终端数据库升级方法及相关装置
CN105141648A (zh) * 2014-06-09 2015-12-09 西安中兴新软件有限责任公司 一种通讯录更新方法和终端
CN106383731A (zh) * 2016-09-14 2017-02-08 广东欧珀移动通信有限公司 一种数据迁移方法及移动终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739704A (zh) * 2011-04-02 2012-10-17 中兴通讯股份有限公司 一种对等网络中数据迁移的方法及系统
CN105094960A (zh) * 2015-07-20 2015-11-25 努比亚技术有限公司 基于双通道的数据加载装置和方法
CN105491113B (zh) * 2015-11-25 2019-03-12 小米科技有限责任公司 迁移方法、装置及终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902562A (zh) * 2012-12-26 2014-07-02 腾讯科技(深圳)有限公司 一种终端数据库升级方法及相关装置
CN105141648A (zh) * 2014-06-09 2015-12-09 西安中兴新软件有限责任公司 一种通讯录更新方法和终端
CN106383731A (zh) * 2016-09-14 2017-02-08 广东欧珀移动通信有限公司 一种数据迁移方法及移动终端

Also Published As

Publication number Publication date
CN106383731A (zh) 2017-02-08
CN106383731B (zh) 2019-08-27

Similar Documents

Publication Publication Date Title
WO2018049933A1 (zh) 数据迁移方法及相关产品
AU2020200339B2 (en) Activity continuation between electronic devices
US9600223B2 (en) Method for sharing screen and electronic device thereof
EP3160150A1 (en) Electronic device and method for executing function using speech recognition thereof
US9380123B2 (en) Activity continuation between electronic devices
US20170235435A1 (en) Electronic device and method of application data display therefor
CN108702480B (zh) 电子设备和用于驱动其显示器的方法
CN107786794B (zh) 向应用提供由图像传感器获取的图像的电子装置和方法
WO2018049939A1 (zh) 数据迁移方法及相关产品
KR101933557B1 (ko) 액티비티 협력을 위한 동반 애플리케이션
US10181203B2 (en) Method for processing image data and apparatus for the same
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
EP2631901A2 (en) Apparatus and method for displaying an image on a sink device
WO2022116425A1 (zh) 数据血缘关系解析方法、系统、计算机设备及存储介质
US10146413B2 (en) Method and apparatus for displaying screen in electronic devices
AU2021229220B2 (en) Image processing method and device
WO2018049932A1 (zh) 数据迁移方法及相关产品
US20160381291A1 (en) Electronic device and method for controlling display of panorama image
US20150063778A1 (en) Method for processing an image and electronic device thereof
KR102137686B1 (ko) 컨텐츠 무결성 제어 방법 및 그 전자 장치
US10042856B2 (en) Method and electronic device for processing data
US20150293691A1 (en) Electronic device and method for selecting data on a screen
WO2018049941A1 (zh) 数据迁移方法及相关产品
KR102185131B1 (ko) 썸네일 생성 방법 및 그 전자 장치
WO2018049910A1 (zh) 数据迁移方法及相关产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850141

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850141

Country of ref document: EP

Kind code of ref document: A1