CN116049096B - Data migration method, electronic equipment and storage medium - Google Patents

Data migration method, electronic equipment and storage medium Download PDF

Info

Publication number
CN116049096B
CN116049096B CN202210482834.5A CN202210482834A CN116049096B CN 116049096 B CN116049096 B CN 116049096B CN 202210482834 A CN202210482834 A CN 202210482834A CN 116049096 B CN116049096 B CN 116049096B
Authority
CN
China
Prior art keywords
data
migration
identifier
electronic device
migration data
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.)
Active
Application number
CN202210482834.5A
Other languages
Chinese (zh)
Other versions
CN116049096A (en
Inventor
郎如辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210482834.5A priority Critical patent/CN116049096B/en
Publication of CN116049096A publication Critical patent/CN116049096A/en
Application granted granted Critical
Publication of CN116049096B publication Critical patent/CN116049096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data migration method, electronic equipment and a storage medium, which relate to the technical field of electronics and can improve data migration efficiency; the method comprises the following steps: the first electronic device receives first migration information from the second electronic device, the first migration information including: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; the second electronic device determines according to the storage path of the corresponding first migration data in the first electronic device when the target path is identified; the first electronic equipment sequentially sends first migration data corresponding to each target path identifier to the second electronic equipment according to the target path identifiers of each first migration data in the M first migration data.

Description

Data migration method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a data migration method, an electronic device, and a storage medium.
Background
At present, the frequency of replacing electronic devices (such as computers) is higher and higher, but after replacing the electronic devices, applications (APP) used daily on old devices, important files, documents, other important contents and the like are not available on new devices. In order to solve the problem, the data in the old equipment can be cloned to the new equipment through data migration, so that the aim of changing machines is fulfilled.
Disclosure of Invention
The embodiment of the application provides a data migration method, electronic equipment and a storage medium, which can improve data migration efficiency.
The embodiment of the application adopts the following technical scheme:
in a first aspect, a data migration method is provided, and the method is applied to a first electronic device; the first electronic device is in communication connection with the second electronic device; the method comprises the following steps: the first electronic device receives first migration information from the second electronic device, the first migration information including: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; the second electronic device determines according to the storage path of the corresponding first migration data in the first electronic device when the target path is identified; the first electronic equipment sequentially sends first migration data corresponding to each target path identifier to the second electronic equipment according to the target path identifiers of each first migration data in the M first migration data.
Based on the first aspect, the first electronic device receives the first migration information from the second electronic device, and because the first migration information includes the data identifier of each first migration data in the M first migration data and the target path identifier of the first migration data indicated by the data identifier, the first electronic device can sequentially send the first migration data corresponding to each target path identifier to the second electronic device according to the target path identifiers of each first migration data in the M first migration data, that is, the target path identifiers of the first migration data sequentially sent by the first electronic device to the second electronic device are all the same; in addition, the target path identifier is used for indicating a storage path corresponding to the first migration data to be stored in the second electronic device, so that the storage paths of the first migration data which are sequentially sent to the second electronic device by the first electronic device and are stored on the second electronic device are consistent, and the second electronic device can sequentially store the first migration data under the same type of storage path, thereby solving the problem that when a new device stores migration data sent by an old device, the new device needs to jump between different storage partitions, and improving the efficiency of data migration.
In one possible design of the first aspect, before the first electronic device receives the first migration information from the second electronic device, the method further comprises: the first electronic device sends second migration information to the second electronic device, wherein the second migration information comprises a data identifier of each first migration data in N pieces of first migration data, and a storage path of the first migration data indicated by the data identifier in the first electronic device; n is a positive integer, N is greater than or equal to M.
In one possible design of the first aspect, the target path identification of the M first migration data includes: a first identifier and a second identifier; the first electronic device sequentially sends first migration data corresponding to each target path identifier to the second electronic device according to the target path identifier of each first migration data in the M first migration data, and the method comprises the following steps: the first electronic device sends first migration data corresponding to the first identifier to the second electronic device; after the first electronic device sends the first migration data corresponding to the first identifier, the first electronic device sends the first migration data corresponding to the second identifier to the second electronic device.
In the design manner, after the first electronic device sends the first migration data corresponding to the first identifier to the second electronic device, the first electronic device sends the first migration data corresponding to the second identifier to the second electronic device, that is, the first electronic device sends all the first migration data corresponding to one type of target path identifier first, and then sends all the first migration data corresponding to the other type of target path identifier, so that the data migration efficiency can be further improved.
In one possible design of the first aspect, the target path identification of the M first migration data includes: a first identifier and a second identifier; the first electronic device sequentially sends first migration data corresponding to each target path identifier to the second electronic device according to the target path identifier of each first migration data in the M first migration data, and the method comprises the following steps: the first electronic equipment sequentially adds the data identifiers of all the first migration data corresponding to the first identifier into a data queue to be migrated, and sequentially adds the data identifiers of all the first migration data corresponding to the second identifier into the data queue to be migrated; the first electronic device sends first migration data in the data queue to be migrated to the second electronic device according to the first-in first-out principle.
In the design mode, after the first electronic device adds the data identification of the first migration data corresponding to the first identification into the data queue to be migrated in sequence, the first electronic device sends the first migration data to the second electronic device after the first electronic device adds the first migration data into the data queue to be migrated due to the fact that the data queue to be migrated has a first-in-first-out principle, and therefore data migration efficiency is further improved.
In one possible design of the first aspect, the first identifier corresponds to a plurality of first migration data; the first electronic device sending first migration data corresponding to the first identifier to the second electronic device, including: the first electronic equipment runs a plurality of threads and respectively sends a plurality of first migration data corresponding to the first identification to the second electronic equipment.
In the design mode, the first electronic equipment can concurrently execute the first migration data corresponding to the first identifier sent to the new equipment by running a plurality of threads, so that the resource utilization rate is improved, and the data migration efficiency is further improved.
In a second aspect, a data migration method is provided and applied to a second electronic device, where the second electronic device is in communication connection with the first electronic device; the method comprises the following steps: the second electronic device sends first migration information to the first electronic device, wherein the first migration information comprises: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; the target path identification is determined by the second electronic device according to the storage path of the corresponding first migration data in the first electronic device; the second electronic equipment receives first migration data corresponding to each target path identifier sequentially sent by the first electronic equipment; and the second electronic equipment stores the received first migration data in the second electronic equipment according to the target path identification of the received first migration data.
Based on the second aspect, the second electronic device sends the first migration information to the first electronic device, and because the first migration information includes the data identifier of each first migration data in the M first migration data and the target path identifier of the first migration data indicated by the data identifier, the second electronic device can receive the target path identifier of each first migration data in the M first migration data, and sequentially send the first migration data corresponding to each target path identifier to the second electronic device, that is, the target path identifiers of the first migration data sent by the first electronic devices sequentially received by the second electronic device are all the same; in addition, the target path identifier is used for indicating a storage path corresponding to the first migration data to be stored in the second electronic device, so that the storage paths, which are sequentially received by the second electronic device and sent by the first electronic device, to be stored on the second electronic device are consistent, and the second electronic device can sequentially store the first migration data under the same type of storage path, thereby solving the problem that when a new device stores migration data sent by an old device, the new device needs to jump between different storage partitions, and improving the efficiency of data migration.
In one possible design of the second aspect, before the second electronic device sends the first migration information to the first electronic device, the method further includes: the second electronic equipment receives second migration information from the first electronic equipment, wherein the second migration information comprises a data identifier of each first migration data in N pieces of first migration data, and a storage path of the first migration data indicated by the data identifier in the first electronic equipment; n is a positive integer, N is greater than or equal to M; the second electronic device determines a target path identifier of each first migration data in the M first migration data according to the second migration information and a preset disk storage rule; the preset storage rule is used for indicating the corresponding relation between a storage path of the first migration data in the first electronic device and a path identifier of a storage path corresponding to the first migration data to be stored in the second electronic device.
In the design manner, since the preset disk storage rule is used for indicating the corresponding relation between the storage path of the first migration data in the first electronic device and the path identifier of the storage path corresponding to the first migration data to be stored in the second electronic device, the second migration information includes the data identifier of each first migration data in the N first migration data and the storage path of the first migration data indicated by the data identifier in the first electronic device, the second electronic device can determine the target path identifier of each first migration data in the M first migration data according to the preset disk storage rule according to the second migration information, which is beneficial to ensuring the accuracy of the target path identifier determined by the second electronic device.
In one possible design of the second aspect, the second electronic device determines, according to the second migration information and according to a preset inventory rule, a target path identifier of each first migration data in the M first migration data, including: the second electronic device displays a first interface, wherein the first interface is used for prompting a user to select one or more first migration data from N first migration data; and responding to the selection operation of the user on M pieces of first migration data in N pieces of first migration data on the first interface, and determining the target path identification of each piece of first migration data in the M pieces of first migration data according to a preset storage rule by the second electronic equipment according to the second migration information.
In the design manner, the second electronic device displays the first interface, and the first interface is used for prompting the user to select one or more first migration data from the N first migration data, so that the user can select the first migration data to be migrated on the first interface, and the user experience is improved.
In one possible design of the second aspect, before the second electronic device sends the first migration information to the first electronic device, the method further includes: the second electronic device sorts the target path identification of each first migration data in the M first migration data according to a preset sequence; wherein the target path identifiers of the same kind are arranged together.
In the design mode, the second electronic equipment sorts the target path identifiers of each first migration data in the M first migration data according to a preset sequence, so that the target path identifiers of the same kind are arranged together; on the basis, in the first migration information sent by the second electronic device to the first electronic device, the same kind of target path identifiers in the target path identifiers of the M first migration data are arranged together, so that the first electronic device is further ensured to sequentially send the first migration data corresponding to the same kind of target path identifiers to the second electronic device, and the data migration efficiency is further improved.
In a third aspect, an electronic device is provided, where the electronic device may be a first electronic device or a second electronic device; the electronic device has the functionality to implement the method of the first or second aspect described above. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a fourth aspect, an electronic device is provided, the electronic device being a first electronic device; the first electronic device includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the memory is for storing computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the first electronic device to perform the steps of: the first electronic device receives first migration information from the second electronic device, the first migration information including: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; the second electronic device determines according to the storage path of the corresponding first migration data in the first electronic device when the target path is identified; the first electronic equipment sequentially sends first migration data corresponding to each target path identifier to the second electronic equipment according to the target path identifiers of each first migration data in the M first migration data.
In one possible design of the fourth aspect, before the first electronic device receives the first migration information from the second electronic device, the computer instructions, when executed by the processor, cause the first electronic device to further perform the steps of: the first electronic device sends second migration information to the second electronic device, wherein the second migration information comprises a data identifier of each first migration data in N pieces of first migration data, and a storage path of the first migration data indicated by the data identifier in the first electronic device; n is a positive integer, N is greater than or equal to M.
In one possible design of the fourth aspect, the target path identification of the M first migration data includes: a first identifier and a second identifier; when executed by the processor, the computer instructions cause the first electronic device to specifically perform the steps of: the first electronic device sends first migration data corresponding to the first identifier to the second electronic device; after the first electronic device sends the first migration data corresponding to the first identifier, the first electronic device sends the first migration data corresponding to the second identifier to the second electronic device.
In one possible design of the fourth aspect, the target path identification of the M first migration data includes: a first identifier and a second identifier; when executed by the processor, the computer instructions cause the first electronic device to specifically perform the steps of: the first electronic equipment sequentially adds the data identifiers of all the first migration data corresponding to the first identifier into a data queue to be migrated, and sequentially adds the data identifiers of all the first migration data corresponding to the second identifier into the data queue to be migrated; the first electronic device sends first migration data in the data queue to be migrated to the second electronic device according to the first-in first-out principle.
In one possible design of the fourth aspect, the first identifier corresponds to a plurality of first migration data; when executed by the processor, the computer instructions cause the first electronic device to specifically perform the steps of: the first electronic equipment runs a plurality of threads and respectively sends a plurality of first migration data corresponding to the first identification to the second electronic equipment.
In a fifth aspect, an electronic device is provided, the electronic device being a second electronic device; the second electronic device includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the memory is for storing computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the second electronic device to perform the steps of: the second electronic device sends first migration information to the first electronic device, wherein the first migration information comprises: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; the target path identification is determined by the second electronic device according to the storage path of the corresponding first migration data in the first electronic device; the second electronic equipment receives first migration data corresponding to each target path identifier sequentially sent by the first electronic equipment; and the second electronic equipment stores the received first migration data in the second electronic equipment according to the target path identification of the received first migration data. A step of
In one possible design of the fifth aspect, before the second electronic device sends the first migration information to the first electronic device, the computer instructions, when executed by the processor, cause the second electronic device to further perform the steps of: the second electronic equipment receives second migration information from the first electronic equipment, wherein the second migration information comprises a data identifier of each first migration data in N pieces of first migration data, and a storage path of the first migration data indicated by the data identifier in the first electronic equipment; n is a positive integer, N is greater than or equal to M; the second electronic device determines a target path identifier of each first migration data in the M first migration data according to the second migration information and a preset disk storage rule; the preset storage rule is used for indicating the corresponding relation between a storage path of the first migration data in the first electronic device and a path identifier of a storage path corresponding to the first migration data to be stored in the second electronic device.
In one possible design of the fifth aspect, the computer instructions, when executed by the processor, cause the second electronic device to specifically perform the steps of: the second electronic device displays a first interface, wherein the first interface is used for prompting a user to select one or more first migration data from N first migration data; and responding to the selection operation of the user on M pieces of first migration data in N pieces of first migration data on the first interface, and determining the target path identification of each piece of first migration data in the M pieces of first migration data according to a preset storage rule by the second electronic equipment according to the second migration information.
In one possible design of the fifth aspect, before the second electronic device sends the first migration information to the first electronic device, the computer instructions, when executed by the processor, cause the second electronic device to further perform the steps of: the second electronic device sorts the target path identification of each first migration data in the M first migration data according to a preset sequence; wherein the target path identifiers of the same kind are arranged together.
In a sixth aspect, there is provided a computer readable storage medium having stored therein computer instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects above; or performing the method of any of the second aspects above.
In a seventh aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects above; or performing the method of any of the second aspects above.
The technical effects caused by any one of the design manners of the third aspect to the seventh aspect may be referred to as the technical effects caused by the different design manners of the first aspect or the second aspect, and are not repeated herein.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a data migration method in the related art according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a data migration method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 5 is a first interface diagram of a data migration method according to an embodiment of the present disclosure;
FIG. 6 is a second interface schematic diagram of a data migration method according to an embodiment of the present disclosure;
fig. 7 is an interface schematic diagram III of a data migration method according to an embodiment of the present application;
fig. 8 is an interface schematic diagram of a data migration method according to an embodiment of the present application;
fig. 9 is a second flow chart of a data migration method according to an embodiment of the present application;
fig. 10 is an interface schematic diagram of a data migration method according to an embodiment of the present application;
fig. 11 is a flowchart of a data migration method according to an embodiment of the present application;
fig. 12 is a sixth interface schematic diagram of a data migration method according to an embodiment of the present application;
fig. 13 is a flow chart diagram of a data migration method according to an embodiment of the present application;
Fig. 14 is a flowchart fifth of a data migration method according to an embodiment of the present application;
fig. 15 is a flowchart sixth of a data migration method provided in the embodiment of the present application;
fig. 16 is a flow chart seventh of a data migration method provided in the embodiment of the present application;
FIG. 17 is a schematic diagram of a data queue to be migrated according to an embodiment of the present disclosure;
fig. 18 is a schematic flow diagram eight of a data migration method according to an embodiment of the present application;
fig. 19 is an interface schematic diagram seven of a data migration method according to an embodiment of the present application;
fig. 20 is an interface schematic diagram eight of a data migration method according to an embodiment of the present application;
fig. 21 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the embodiments of the present application, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In order to clearly illustrate the technical solutions provided by the embodiments of the present application, concepts that may appear in some subsequent embodiments will be first described.
Message queue (Message queue): is a communication mode between processes or between different threads of the same process. The message queue can be used as a container for storing the message in the transmission process, and a process with writing permission on the message queue can add new message into the message queue; a process having read rights to the message queue may then read the message from the message queue. Where the message queue has a first-in first-out principle, i.e. the message that first enters the message queue is read (or sent) first.
The process comprises the following steps: is the basic unit of resource allocation and scheduling by an operating system (such as an android system) regarding one running activity of an application program on a certain data set. Each process occupies an address space, and an application program runs on an operating system in the form of one or more processes to realize corresponding functions.
Thread: is an entity of a process that is a smaller, independently operable basic unit than the process. A thread may share all of the resources owned by a process with other threads that belong to the same process. One thread may create and cancel another thread and multiple threads in the same process may execute concurrently.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application. As shown in connection with fig. 1, the scenario includes a first electronic device and a second electronic device; the first electronic device may be an old device, and the second electronic device may be a new device. The old device and the new device may be communicatively coupled via a wireless or wired connection. The wired communication connection may be, for example, a universal serial bus (universal serial bus, USB) connection; the wireless connection may be, for example, a wireless fidelity (wireless fidelity, wi-Fi) connection, a bluetooth (bluetooth) connection, a bluetooth mesh connection, a peer-to-peer (P2P) connection, etc. Fig. 1 illustrates an example of a notebook computer as a first electronic device and a second electronic device.
Generally, in order to improve the use experience of a user, the electronic device may respond to the operation of the user to select to migrate all or part of the data stored on the old device to the new device, so as to facilitate the user to continue to use daily important applications, files and the like on the new device. The data stored on the old device may include, for example: video, pictures, documents, APP, and other device configuration. However, in the process of migrating data from the old device to the new device, since each data will be stored in a different storage partition (or hard disk partition) on the new device, when the new device stores the data migrated from the old device, the new device needs to store between the different storage partitions, which results in time consuming process of migrating data from the old device to the new device.
In some embodiments, as shown in FIG. 2, assume that the storage partition of the new device includes a C disk, a D disk, and an E disk; wherein different types of data may be stored in different memory partitions, such as storing operating systems, application programs, or data files. The individual data in the old device may include, for example, data a, data B, data C, and the like. Wherein data a will be stored on the D disk on the new device, data B will be stored on the C disk on the new device, and data C will be stored on the D disk on the new device. On this basis, after the new device receives each data sent by the old device, the new device stores the data according to the storage partition on the old device where the data is to be stored on the new device. For example, the new device stores data a on the D disk, data B on the C disk, and data C on the D disk. In this way, when the new device stores data according to the storage partition of the old device, the new device needs to jump between different storage partitions (such as the C disk and the D disk), that is, the new device stores the data a on the D disk, then stores the data B on the C disk, and then stores the data C on the D disk, so that the process of migrating the data from the old device to the new device is time-consuming, and the user experience is affected.
In some embodiments, the related art may perform data migration in the form of a file when migrating data on an old device to a new device. For example, data a, data B, and data C are data in the same file. On this basis, the data a, the data B and the data C are identical in storage path on the old device (i.e., in the same storage partition of the old device) for the data in the same file. However, the target storage paths of the data a, the data B, and the data C are different, that is, the storage paths of the data a, the data B, and the data C to be stored on the new device are different. In this way, when an old device migrates data to a new device in the form of a file, it may cause a jump between different memory partitions of the new device for data in the same file.
The embodiment of the application provides a data migration method, which can quickly migrate a plurality of first migration data stored on old equipment to new equipment, and improves the efficiency of data migration. Specifically, the old device can sequentially send the first migration data under each target path to the new device according to the storage path (i.e. the target path) of the first migration data on the new device, so that the old device sequentially sends the first migration data to the new device, and the target paths of the first migration data are consistent, and the new device can store the first migration data in the same storage partition according to the first migration data sequentially sent by the old device, thereby improving the efficiency of data migration.
Illustratively, as shown in FIG. 3, data A will be stored on the D-disk on the new device, data B will be stored on the C-disk on the new device, and data C will be stored on the D-disk on the new device. On this basis, the old device sequentially transmits data a and data C to the new device, and then transmits data B again. Thus, the new device may first store data A and data C on the D-disk, and then store data B on the C-disk.
The data migration method provided by the embodiment of the application can be applied to the communication system described in fig. 1. The first electronic device and the second electronic device shown in the communication system may be, for example, one of a notebook computer, a tablet computer, a large-screen display device, a desktop, a laptop, a handheld computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, and the like, and the specific form of the electronic device is not particularly limited in the embodiments of the present application.
As shown in fig. 4, a schematic structural diagram of the electronic device 100 is shown, and the electronic device 100 may be, for example, the first electronic device and the second electronic device described in the foregoing embodiments. Wherein the electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
It is to be understood that the structure illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of electronic devices can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, audio, video, etc. files are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may include a storage program area and a storage data area by executing instructions stored in the internal memory 121, and the internal memory 121 may include a storage program area and a storage data area.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device. The electronic device may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of hardware and software.
The following describes a specific implementation procedure of the data migration method provided in the embodiment of the present application with reference to the accompanying drawings.
In the embodiment of the application, the old device and the new device can perform data migration through a data migration application or an application with a data migration function. It should be appreciated that prior to the old device and the new device performing data migration, the old device and the new device first establish a communication connection, and then the old device and the new device initiate a data migration function to perform data migration.
Taking the old device and the new device with data migration applications installed thereon as an example for illustration, in some embodiments, the old device and the new device automatically launch the data migration applications to launch the data migration functions when the old device and the new device are powered on. In other embodiments, the home page of the computer manager application of the old device and the new device includes a data migration setting item, and the old device and the new device may initiate a data migration function in response to a user operating the data migration setting item. In still other embodiments, a data migration application is installed on desktops of the old device and the new device, and the old device and the new device may initiate data migration functions in response to user operations on the data migration application.
Taking the example where the home page of the computer manager application of the old device and the new device includes a data migration setting item as an illustration, the old device and the new device display an interface 201 as shown in (1) of fig. 5 in response to a user's operation of the data migration setting item, the interface 201 including a start control. Wherein the launch control may be, for example, "immediate migration". The old device and the new device then display an interface 202 as shown in fig. 5 (2) in response to the user's operation of the launch control, the interface 202 including first prompting information for prompting the user for data migration user protocols. For example, the first prompt information may be: the service needs to turn on WLAN and Bluetooth, and occupies WLAN channels in the migration process, so that the network cannot be accessed temporarily, the service can automatically recover after the migration is completed, and 'consent' is clicked, namely, consent to the content and data migration user protocol is indicated.
Still as with interface 202 shown in fig. 5 (2), in some embodiments, the interface 202 further includes an consent control and a cancel control, the old device and the new device opening a data migration function in response to a user operation of the consent control; the old device and the new device exit the data migration in response to a user operation to cancel the control.
When the old device and the new device respond to the user's operation of the consent control, the old device and the new device display an interface 203 as shown in (3) of fig. 5, the interface 203 including a first icon and a second icon; wherein the first icon is used to indicate a new device and the second icon is used to indicate an old device. Illustratively, the old device responds to the operation of the user on the second icon, and selects the old device as the local device to serve as a data sender; and the new device responds to the operation of the user on the first icon, and selects the local device as the new device to serve as a data receiving party.
Also shown as interface 203 in fig. 5 (3), in some embodiments, the interface 203 further includes a second hint information that is used to hint the installation path of the data migration application to the user. The second prompt information may be, for example: please go to official website: http:// www.xxx.com downloads the install data migration application. In some embodiments, interface 203 further includes an exit control, which the old device and the new device exit data migration functionality in response to user operation of the exit control.
In some embodiments, the old device displays an interface 204 as shown in fig. 6 (1) in response to a user operation of the second icon; the interface 204 is the interface where the old device waits to be discovered. Illustratively, the old device sends a broadcast to the new device, and the "old device" in the display interface 204 is waiting for a reminder to be found. In some embodiments, interface 204 also includes a third hint information that is used to hint to the user to launch the data migration application on the new device. The third prompt information may be, for example: a data migration application is launched on the new device, selecting "this is the new device". If the new device does not install the data migration application, please go to the official website: http:// www.xxx.com downloads the install data migration application. In some embodiments, interface 204 also includes a prompt for "WLAN channel is occupied during migration, device cannot use network". In other embodiments, interface 204 also includes a "cancel" control; on this basis, the old device exits the data migration in response to a user operation of the "cancel" control.
In other embodiments, the new device displays an interface 205 as shown in fig. 6 (2) in response to a user operation of the first icon; the interface 205 is the interface where the new device is looking for the old device. Illustratively, the new device receives the broadcast sent by the old device and displays a prompt in interface 205 that device … is being looked up. In some embodiments, interface 205 also includes fourth hints information for prompting the user to launch a data migration application on the old device. The fourth prompt information may be, for example: a data migration application is launched on the old device, selecting "this is the old device". If the old device does not install the data migration application, please go to the official website: http:// www.xxx.com downloads the install data migration application. In some embodiments, interface 205 also includes a "continue" control and a "cancel" control. It should be noted that when the new device does not find the old device, the "continue" control is not clickable. If the user clicks the cancel control, the new device responds to the operation of the cancel control by the user, and the new device exits from data migration.
In some embodiments, after the new device finds the old device, the new device responds to the user's operation of the "continue" control in interface 205, the old device and the new device display a connection authentication interface, and if the connection authentication passes, the old device and the new device establish a communication connection. On this basis, the old device and the new device can perform data migration.
Illustratively, the old device and the new device may perform connection authentication by checking the connection code. For example, in response to operation of the "continue" control in user interface 205, the new device displays interface 206 as shown in FIG. 7 (1), which interface 206 includes a connection check code. The connection check code may be, for example, "078913". In some embodiments, interface 206 also includes a prompt such as "please see if the following connection code is displayed on the old device". In other embodiments, the interface 206 also includes a "cancel" control, e.g., the new device exits the data migration in response to a user's operation of the "cancel" control.
Accordingly, the old device displays an interface 207 as shown in fig. 7 (2), the interface 207 including a connection check code. The connection check code may be, for example, "078913". In some embodiments, interface 207 also includes a prompt such as "find that a new device is requesting a connection to the local, please confirm whether the following connections are consistent. In other embodiments, interface 207 also includes a "continue" control and a "cancel" control; under the condition that the connection check code on the old equipment is consistent with the connection check code on the new equipment, if the old equipment responds to the operation of the 'continue' control by the user, the old equipment and the new equipment are in communication connection; if the old device responds to the user operation of the "cancel" control, the old device exits the data migration.
Illustratively, in response to a user's operation of the "continue" control, the old device and the new device display an interface 208 as shown in FIG. 8, the interface 208 being the interface to which the old device and the new device are being connected. For example, as shown in FIG. 8, the interface 208 may include, for example, a prompt for "in connection" and a "cancel" control. In some embodiments, the old or new device exits the data migration in response to a user operation of a "cancel" control.
In connection with the above-described embodiments and the interfaces shown in fig. 5-8, data migration between the old device and the new device may begin after the old device establishes a communication connection with the new device. The process of data migration between the old device and the new device may be implemented, for example, in conjunction with the flow diagram shown in fig. 9 and the method described in the embodiments below. Specifically, as shown in fig. 9, the process of the data migration method may include S301 to S305.
S301, the old device sends migration information I to the new device.
The first migration information comprises a data identifier of each first migration data in the N first migration data and a storage path of the first migration data on the old equipment, wherein the storage path is indicated by the data identifier; n is a positive integer. In the embodiment of the present application, the first migration information may also be referred to as second migration information.
Wherein the data identification refers to a unique identification code capable of characterizing the first migration data. By way of example, the data identification may be, for example, a file name of the first migration data.
It should be noted that, the N pieces of first migration data may be stored on the old device in the form of pictures, videos, and documents, for example. In some embodiments, a portion of at least one first migration data of the N first migration data is stored under a first storage path of the old device, and another portion is stored under a second storage path of the old device, i.e., at least one first migration data is stored under a different storage path of the old device. Illustratively, the N first migration data includes data a, a portion of which is stored on the old device along a path C: and the storage path of the other part on the old equipment is D/AAA/t.txt. Wherein the storage path of the first migration data on the old device may also be referred to as the source path of the first migration data.
Illustratively, suppose that the N first migration data includes data a, data b, and data c, where migration information sent by the old device to the new device is shown in table 1 below.
TABLE 1
In other embodiments, at least two of the N first migration data are data within the same file. Illustratively, data a, data b, and data c may be data within the same file; thus, the storage paths for data a, data b, and data c on the old device are the same, but the target paths on the new device may not be the same.
In some embodiments, the old device displays interface 209 as shown in FIG. 10 while the old device sends migration information one to the new device; the interface 209 includes a progress bar for the old device to send migration information one to the new device, as well as a "cancel" control. Meanwhile, a prompt interface for successful connection is displayed on a display screen of the new equipment. The progress bar is used for prompting a user of the progress of the old equipment for sending migration information I to the new equipment.
In some embodiments, the old device exits the data migration in response to a user operation of a "cancel" control.
S302, the new device determines a target path identifier of each first migration data in M first migration data according to a preset disk storage rule according to first migration information.
The preset storage rule is used for indicating a corresponding relation between a storage path of the first migration data on the old device and a path identifier (such as path type) of a storage path corresponding to the first migration data to be stored in the new device. In addition, the target path identification is used to indicate a storage path in which the corresponding first migration data is to be stored in the new device. M is a positive integer, M is less than or equal to N.
In the embodiment of the application, the storage path where the first migration data is to be stored in the new device may also be referred to as a target path. In addition, in this embodiment, m=n.
Illustratively, assume that the M first migration data includes data a, data b, and data c; on this basis, the preset inventory rules are shown in table 2 below.
First migration data Data identification Source Path Target path Target path identification
Data a a1 C:\\AAA\t.txt C:\\AAA\t.txt 1
a2 D:\\AAA\t.txt E:\\BBB\t.txt 3
Data b b E:\\BBB\t.txt F:\\AAA\t.txt 4
Data c c F:\\111\t.txt C:\\AAA\t.txt 1
TABLE 2
It should be noted that the path identifier relates to a storage partition (or hard disk partition) on the new device. Exemplary, for example, storage partitions on new devices include C: \i.e., C disk, D: \i.e., D disk, E: \i.e., E disk, F: \i.e., F disk; the corresponding path identifications may be, for example, C: \1, D: \2, E: \3, F: \4.
For example, referring to table 2, for example, the target path corresponding to the data identifier a1 is C: AAA t.txt, that is, the data a indicated by the data identifier a1 is to be stored on the C disk of the new device, then the path identifier of the target path corresponding to the data identifier a1 is 1. Accordingly, the target path corresponding to the data identifier a2 is E: if the data a indicated by the data identifier a2 is to be stored on the E-disk of the new device, the path identifier of the target path corresponding to the data identifier a2 is 3. Correspondingly, the target path corresponding to the data identifier b is F: AAA t.txt, that is, the F disc to which the data b indicated by the data identifier b is to be stored on the new device, then the path identifier of the target path corresponding to the data identifier b is 4. Correspondingly, the target path corresponding to the data identifier C is C: AAA t.txt, i.e. the D disc where the data indicated by the data identifier b is to be stored on the new device, then the path identifier of the target path corresponding to the data identifier C is 2.
In some embodiments, a child partition is also included in the different memory partition. Taking the storage partition on the new device as C: \ (i.e., a C disk) as an example, the C disk may include, for example: c \AAA\, C \BBB\, C \DDD\and the like. Based on this, in order to further increase the efficiency of data migration, in some embodiments, path identifiers may be set according to the sub-partitions included in different storage partitions, i.e., the path identifiers correspond to the sub-partitions included in the storage partition on the new device.
Taking M first migration data as an example, the M first migration data includes data d, data e, and data f; on this basis, the preset inventory rules are shown in table 3 below.
First migration data Data identification Source Path Target path Target path identification
Data d d C:\\AAA\t.txt C:\\AAA\t.txt 1’
Data e e E:\\BBB\t.txt C:\\BBB\t.txt 1”
Data f f F:\\111\t.txt D:\\AAA\t.txt 2’
TABLE 3 Table 3
For example, referring to table 3, for example, the target path corresponding to the data identifier d is C: AAA t.txt, that is, the data d indicated by the data identifier d will be stored in the sub-partition C: \AAA\ in the C disk on the new device, then the path identifier of the target path corresponding to the data identifier d is 1'. Correspondingly, the target path corresponding to the data identifier e is C: and (3) BBB t.txt, namely, the data e indicated by the data identifier e is to be stored in the sub-partition C in the C disk on the new device, wherein the path identifier of the target path corresponding to the data identifier e is 1". Correspondingly, the target path corresponding to the data identifier f is D: AAA t.txt, that is, the sub-partition D in D disk indicated by data identifier f will be stored in new device AAA, then the path identifier of the target path corresponding to data identifier f is 2'.
And S303, the new equipment sends migration information II to the old equipment.
The migration information II comprises: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier. In the embodiment of the present application, the second migration information may also be referred to as first migration information.
Illustratively, assume that the M first migration data includes data a, data b, and data c, where migration information sent by the new device to the old device is shown in table 4 below.
First migration data Data identification Target path identification
Data a a1 1
a2 3
Data b b 4
Data c c 1
TABLE 4 Table 4
S304, the old equipment sequentially sends first migration data corresponding to each target path identifier to the new equipment according to the target path identifiers of the first migration data in the M pieces of first migration data.
In some embodiments, at least two first migration data of the M first migration data are data within the same file. On this basis, the storage paths of the at least two first migration data on the old device are identical, but the target paths of the at least two first migration data on the new device may be different.
Illustratively, in combination with the above table 4, the migration information two sent by the new device is received by the old device, where the migration information two includes the data identifier and the target path identifier of the data a, the data identifier and the target path identifier of the data b, and the data identifier and the target path identifier of the data c. On the basis, the old equipment sequentially sends first migration data corresponding to each target path identifier to the new equipment according to the target path identifiers of the data a, the data b and the data c.
For example, the old device transmits a part of data a and data c corresponding to the target path identifier 1 to the new device, then transmits another part of data a corresponding to the target path identifier 3, and finally transmits data b corresponding to the target path identifier 4. It should be understood that each target path identifier corresponds to at least one first migration data of the M first migration data.
In this way, the target path identifiers of the first migration data sent by the old device to the new device in turn are consistent, i.e. the target paths of the first migration data stored on the new device by the old device to the new device in turn are consistent, so that the new device can store the first migration data in the same storage partition of the new device according to the target path identifiers of the first migration data, thereby improving the efficiency of data migration.
In addition, when at least two first migration data are data in the same file and the target paths of the at least two first migration data are different, the old equipment also sends the first migration data corresponding to each target path identifier to the new equipment, namely, the data in the same file are separately sent, so that the efficiency of data migration is further improved.
S305, the new device stores the received first migration data in the new device according to the target path identification of the received first migration data.
The new device stores the received first migration data in the target path corresponding to the target path identifier. For example, referring to Table 2, the target path corresponding to target path identification 1 includes C: \AAA\t.txt, so that the new device may store the first migration data (e.g., a portion of the data in data a) indicated by target path identification 1 under target path C: \AAA\t.txt. As also shown in table 2, the target path corresponding to the target path identifier 1 further includes C: AAA t.txt such that the new device may store the first migration data (e.g., data C) indicated by target path identification 1 in target path C: AAA t.txt.
In this way, the new device can store the first migration data corresponding to the same target path identifier in one storage partition according to the target path identifier of the received first migration data, and then store the first migration data corresponding to the other target path identifier in the other storage partition, thereby solving the problem that the new device needs to jump between different storage partitions when storing the migration data sent by the old device, and improving the efficiency of data migration.
In some embodiments, as shown in fig. 11 in conjunction with fig. 9, after S301, that is, after the old device sends migration information one to the new device, the data migration method further includes:
s3011, the new device displays the first interface.
The first interface is used for selecting one or more first migration data from the N first migration data.
Illustratively, as shown in FIG. 12, after the new device receives migration information one sent by the old device, the new device displays an interface 210 (i.e., a first interface); the interface 210 includes the name of the storage partition of the old device and a data identification (e.g., file name) of the N first migration data stored under the storage partition of the old device. In some embodiments, the interface 210 further includes hints for the storage space size of the new device, hints for the file size of the selected first migration data, hints for the number of selected first migration data, hints for the expected migration duration, and the like. In some embodiments, interface 210 also includes a "begin migration" control and a "cancel" control.
S3012, the new device determines M pieces of first migration data according to a selection operation of a user on M pieces of first migration data in N pieces of first migration data on a first interface.
Illustratively, as shown in FIG. 12, interface 210 includes a "local disk C" selection and a "local disk D" selection; wherein, the selection items of the local disk D comprise a My file selection item and a My Drive selection item; the My File sub-selections include "index" and "image" files. For example, the new device responds to a selection operation of the user selection item "local disk C" in the interface 210, and "local disk C" is selected. Accordingly, the new device may also select M first migration data from the N first migration data in response to a user selection operation of other options in the interface 210.
In some embodiments, as shown in fig. 13 in conjunction with fig. 11, after S302, that is, after the new device determines, according to the migration information one, the target path identifier of each first migration data in M first migration data according to the preset inventory rule, the data migration method further includes:
s3021, the new device sorts the target path identifiers of each first migration data in the M first migration data according to a preset sequence.
Wherein the target path identifiers of the same kind are arranged together.
In some embodiments, the preset order may be, for example, a small to large order; or may be in order from large to small.
Illustratively, as shown in connection with Table 4 above, the target path identification includes: target path identification 1, target path identification 3, target path identification 4, and target path identification 1. Taking the order of the preset order from small to large as an example, the new device orders the target path identifiers of each first migration data in the M first migration data according to the preset order, and then the order of the target path identifiers is the target path identifier 1, the target path identifier 3 and the target path identifier 4.
On the basis, in the migration information II sent by the new equipment to the old equipment, the target path identifiers are arranged according to the preset sequence, so that the old equipment can send first migration data corresponding to the same target path identifier to the new equipment according to the arranged sequence of the target path identifiers, and the data migration efficiency can be further improved.
In some embodiments, the target path identification of the M first migration data includes: a first identifier and a second identifier; as shown in fig. 14, according to the target path identifier of each first migration data in the M first migration data, the old device sequentially sends first migration data corresponding to each target path identifier to the new device, including:
S3041, the old equipment sends first migration data corresponding to the first identification to the new equipment.
S3042, after the old equipment sends the first migration data corresponding to the first identifier, the old equipment sends the first migration data corresponding to the second identifier to the new equipment.
For example, as shown in the above table 4, assuming that the first identifier is the target path identifier 1 and the second identifier is the target path identifier 2, on the basis of this, the old device selects the first migration data corresponding to the target path identifier 1 according to the target path identifiers of the M first migration data, and sends the first migration data corresponding to the target path identifier 1 to the new device. And then, the old equipment selects the second migration data corresponding to the target path identifier 2 and sends the first migration data corresponding to the target path identifier 2 to the new equipment.
In this way, the old device can ensure that the first migration data sequentially sent to the new device is the first migration data corresponding to the same target path identifier, so that the new device can store the first migration data corresponding to the same target path identifier first, and the data migration efficiency is improved.
Illustratively, the first identifier corresponds to a plurality of first migration data; on this basis, the old device can run a plurality of threads and respectively send a plurality of first migration data corresponding to the first identifier to the new device.
For example, as shown in FIG. 15, the old device runs thread A, thread B, and thread C; the old equipment operating thread A acquires first migration data corresponding to the first identifier, the operating thread B acquires first migration data corresponding to the first identifier, and the operating thread C acquires first migration data corresponding to the first identifier. And then, the old equipment simultaneously runs the thread A, the thread B and the thread C and sends first migration data corresponding to the first identifier to the new equipment.
Correspondingly, the second identifier corresponds to a plurality of first threads; on this basis, the old device can run a plurality of threads and respectively send a plurality of first migration data corresponding to the second identifier to the new device.
In this way, the old device can concurrently execute the first migration data corresponding to the first identifier sent to the new device by running a plurality of threads, thereby improving the resource utilization rate and further improving the data migration efficiency.
In other embodiments, the target path identification of the M first migration data includes: a first identifier and a second identifier; as shown in fig. 16, according to the target path identifier of each first migration data in the M first migration data, the old device sequentially sends first migration data corresponding to each target path identifier to the new device, including:
S304a, after the old equipment sequentially adds the data identifiers of all the first migration data corresponding to the first identifiers into the data queue to be migrated, sequentially adds the data identifiers of all the first migration data corresponding to the second identifiers into the data queue to be migrated.
It should be noted that, the explanation of the data queue to be migrated may refer to the explanation of the message queue in the above embodiment, which is not described herein.
And S304b, the old equipment sends the first migration data in the data queue to be migrated to the new equipment according to the first-in first-out principle.
The data identifiers of all the first migration data corresponding to the first identifiers are assumed to comprise: a1, a2, a3, b1, and b2; the data identifier of the first migration data corresponding to the second identifier comprises: b3, b4, c1, etc. For example, as shown in fig. 17, after the old device adds the data identifiers a1, a2, a3, b1 and b2 of the first migration data corresponding to the first identifier to the data queue to be migrated, the old device adds the data identifiers b3, b4 and c1 of the first migration data corresponding to the second identifier to the data queue to be migrated.
It should be appreciated that the data queue to be migrated has a first-in first-out principle, i.e., data that enters the queue first-out. In other words, the old device transmits data (data indicated by the data identifier a 1) that first entered the data queue to be migrated to the new device, and after the data indicated by the data identifier a1 is transmitted, the old device continues to transmit the data (data indicated by the data identifier a 2) of the data queue to be migrated to the new device. It should be noted that, every time the old device sends data of a data queue to be migrated to the new device, the data queue to be migrated will be added with a new data identifier.
It should be noted that the target path identifier may further include a third identifier, a fourth identifier, and the like. On the basis, after the old equipment adds the data identifiers of all the first migration data corresponding to the second identifier into the data queue to be migrated, the old equipment adds the data identifiers of all the first migration data corresponding to the third identifier into the data queue to be migrated. Correspondingly, after the old equipment adds the data identifiers of all the first migration data corresponding to the third identifier into the data queue to be migrated, the old equipment adds the data identifiers of all the first migration data corresponding to the fourth identifier into the data queue to be migrated.
In some embodiments, after the old device adds all the first migration data corresponding to the first identifier to the data queue to be migrated, the old device runs a plurality of threads and sends the first migration data corresponding to the first identifier to the new device in parallel. In this way, the old equipment runs a plurality of threads to send the first migration data corresponding to the first identifier to the new equipment in parallel, and the data migration efficiency is further improved.
For example, as shown in fig. 18, the step of the old device sequentially adding the data identifiers of all the first migration data corresponding to the first identifier to the to-be-migrated data queue includes:
S401, the old equipment acquires the target data identification.
The target data identifier is a data identifier corresponding to one of M pieces of first migration data.
S402, the old equipment judges whether the target data identifier is a data identifier corresponding to the last migration data in the M first migration data.
If the target data identifier is not the data identifier corresponding to the last migration data in the M first migration data, the old device executes S403; if the target migration data is the data identifier corresponding to the last migration data in the M first migration data, the old device executes S405.
It should be noted that, the data identifier corresponding to the last migration data refers to the data identifier corresponding to the last data in all the first migration data that is not processed (i.e. does not perform the step shown in fig. 18) by the old device in the M first migration data.
S403, the old equipment judges whether the target path identifier of the first migration data indicated by the target data identifier is identical to the preset path identifier.
The preset path identifier is an object path identifier corresponding to the first migration data in the M first migration data.
If the target path identifier of the first migration data indicated by the target data identifier is the same as the preset path identifier, the old device adds the target data identifier to the data list, and executes S404; if the target path identifier of the first migration data indicated by the target data identifier is different from the preset path identifier, the old device adds the data identifier of the first migration data included in the data list into the data queue to be migrated, updates the preset path identifier, and re-executes S401-S404.
S404, the old device judges whether the number of the data identifications included in the data list is greater than or equal to a threshold value.
If the number of the data identifiers included in the data list is greater than or equal to a threshold value, the old equipment adds the data identifiers included in the data list into a data queue to be migrated; if the number of data identifications included in the data list is smaller than the threshold value, the old device re-executes S401-S404.
In this embodiment, when the old device determines that the number of the data identifiers included in the data list is greater than or equal to the threshold, the old device adds the data identifiers included in the data list to the data queue to be migrated, so that resources of the data queue to be migrated can be effectively utilized, and efficiency of data migration is improved.
And S405, the old equipment adds the data identification included in the data list into a data queue to be migrated.
In some embodiments, after the old device adds the data identifier included in the data list to the data queue to be migrated, the old device empties the data list so that the old device stores the data identifier of the first migration data corresponding to the next target path identifier in the data list.
In summary, it can be seen that the old device can add the data identifier of the first migration data corresponding to the target path identifier of the same kind into the data queue to be migrated by judging the target path identifier corresponding to the first migration data indicated by the target data identifier and the preset path identifier; in this way, the old device can send the first migration data to the new device according to the data identification in the data queue to be migrated, so that the target path identifications of the first migration data which are sequentially sent to the new device are all the same, and the data migration efficiency is improved.
In some embodiments, as shown in connection with FIG. 12, the old device and the new device begin data migration in response to a user operation of an "open migration" control in the first interface. Illustratively, the old device and the new device display an interface 211 as shown in FIG. 19; the interface 211 includes prompt information for prompting the user for data migration progress. For example, interface 211 includes migration progress (e.g.,%), size of migrated data, migration rate, and remaining time, etc.
In some embodiments, when the old device migrates all of the M first migration data onto the new device, the old device and the new device display an interface 212 as shown in fig. 20; the interface 212 is an interface where the old device and the new device complete data migration. Illustratively, the interface 212 includes prompt information for prompting the user that the migration is complete, a migration duration, a size of the migration data, a number of files of the migration data, and the like. In other embodiments, interface 212 also includes a "complete" control. For example, the old device exits the data migration in response to a user operation of the "done" control; accordingly, the new device exits the data migration in response to user operation of the "done" control.
The data migration method provided by the embodiment of the application is applied to a first electronic device (namely old device), and the first electronic device is in communication connection with a second electronic device (namely new device); the method comprises the following steps:
s501, the first electronic device receives first migration information from the second electronic device.
Wherein the first migration information includes: a data identifier of each first migration data in the M first migration data and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; and when the target path is identified, the second electronic equipment determines according to the storage path of the corresponding first migration data in the first electronic equipment.
The first migration information may be, for example, migration information two described in the foregoing embodiment.
It should be noted that, for an example of the first electronic device receiving the first migration information from the second electronic device, reference may be made to table 4 and the above embodiments, and details are not repeated here.
S502, the first electronic equipment sequentially sends first migration data corresponding to each target path identifier to the second electronic equipment according to the target path identifiers of the first migration data in the M pieces of first migration data.
The illustration of S502 may refer to the illustration of S304 in the above embodiment, and will not be repeated here.
The data migration method provided by the embodiment of the application is applied to second electronic equipment (namely new equipment), and the first electronic equipment (namely old equipment) is in communication connection with the second electronic equipment; the method comprises the following steps:
s601, the second electronic device sends first migration information to the first electronic device.
Wherein the first migration information includes: a data identifier of each first migration data in the M first migration data and a target path identifier of the first migration data indicated by the data identifier, wherein the target path identifier is used for indicating a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; and when the target path is identified, the second electronic equipment determines according to the storage path of the corresponding first migration data in the first electronic equipment.
The first migration information may be, for example, migration information two described in the foregoing embodiment.
It should be noted that, for an example of the second electronic device sending the first migration information to the first electronic device, reference may be made to table 4 and the above embodiments, which are not described herein again.
S602, the second electronic equipment receives first migration data corresponding to each target path identifier sequentially sent by the first electronic equipment.
It should be noted that, for the illustration of S602, reference may be made to the illustration of S304 in the above embodiment, which is not repeated here.
S603, the second electronic device stores the received first migration data in the second electronic device according to the target path identification of the received first migration data.
It should be noted that, for the illustration of S603, reference may be made to the illustration of S305 in the above embodiment, which is not repeated here.
The embodiment of the application provides an electronic device, which can be a first electronic device or a second electronic device. The electronic device may include a display screen, a memory, and one or more processors; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the functions or steps performed by the old device and the new device in the above-described embodiments. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 4.
Embodiments of the present application also provide a chip system, as shown in fig. 21, the chip system 1800 includes at least one processor 1801 and at least one interface circuit 1802. The processor 1801 may be the processor 110 shown in fig. 4 in the above embodiment. Interface circuit 1802 may be, for example, an interface circuit between processor 110 and external memory 120; or as an interface circuit between the processor 110 and the internal memory 121.
The processor 1801 and interface circuit 1802 described above may be interconnected by wires. For example, interface circuit 1802 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 1802 may be used to send signals to other devices (e.g., processor 1801). The interface circuit 1802 may, for example, read instructions stored in a memory and send the instructions to the processor 1801. The instructions, when executed by the processor 1801, may cause the electronic device to perform the steps performed by the handset 180 in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
The embodiment of the application also provides a computer readable storage medium, which comprises computer instructions, when the computer instructions run on the electronic device, the electronic device is caused to execute the functions or steps executed by the mobile phone in the embodiment of the method.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the functions or steps performed by the mobile phone in the above-mentioned method embodiments.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The data migration method is characterized by being applied to first electronic equipment; the first electronic device is in communication connection with the second electronic device; the method comprises the following steps:
the first electronic device receives first migration information from the second electronic device, the first migration information including: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier, where the target path identifier is used to indicate a storage path of the corresponding first migration data to be stored in the second electronic device; m is a positive integer; the target path identification is determined by the second electronic device according to a storage path of corresponding first migration data in the first electronic device;
the first electronic equipment sequentially sends first migration data corresponding to each target path identifier to the second electronic equipment according to the target path identifiers of each first migration data in the M first migration data; wherein the target path identifiers of the same kind are arranged together.
2. The method of claim 1, wherein prior to the first electronic device receiving the first migration information from the second electronic device, the method further comprises:
the first electronic equipment sends second migration information to the second electronic equipment, wherein the second migration information comprises a data identifier of each first migration data in N pieces of first migration data, and a storage path of the first migration data indicated by the data identifier in the first electronic equipment; n is a positive integer, N is greater than or equal to M.
3. The method of claim 1 or 2, wherein the target path identification of the M first migration data comprises: a first identifier and a second identifier;
the first electronic device sequentially sends first migration data corresponding to each target path identifier to the second electronic device according to the target path identifier of each first migration data in the M first migration data, and the method comprises the following steps:
the first electronic device sends first migration data corresponding to the first identifier to the second electronic device;
and after the first electronic equipment transmits the first migration data corresponding to the first identifier, the first electronic equipment transmits the first migration data corresponding to the second identifier to the second electronic equipment.
4. The method of claim 1 or 2, wherein the target path identification of the M first migration data comprises: a first identifier and a second identifier;
the first electronic device sequentially sends first migration data corresponding to each target path identifier to the second electronic device according to the target path identifier of each first migration data in the M first migration data, and the method comprises the following steps:
the first electronic equipment sequentially adds the data identifiers of all the first migration data corresponding to the first identifier into a data queue to be migrated, and sequentially adds the data identifiers of all the first migration data corresponding to the second identifier into the data queue to be migrated;
and the first electronic equipment sends the first migration data in the data queue to be migrated to the second electronic equipment according to the first-in first-out principle.
5. The method of claim 3, wherein the first identifier corresponds to a plurality of first migration data;
the first electronic device sending first migration data corresponding to the first identifier to the second electronic device, including:
and the first electronic equipment runs a plurality of threads and respectively sends a plurality of first migration data corresponding to the first identifier to the second electronic equipment.
6. The data migration method is characterized by being applied to the second electronic equipment; the second electronic device is in communication connection with the first electronic device; the method comprises the following steps:
the second electronic equipment sorts the target path identification of each first migration data in the M first migration data according to a preset sequence; wherein, the target path identifiers of the same kind are arranged together; the target path identifier is used for indicating a storage path which corresponds to the first migration data and is to be stored in the second electronic device; m is a positive integer; the target path identification is determined by the second electronic device according to a storage path of corresponding first migration data in the first electronic device;
the second electronic device sends first migration information to the first electronic device, wherein the first migration information comprises: a data identifier of each first migration data in the M first migration data, and a target path identifier of the first migration data indicated by the data identifier;
the second electronic equipment receives first migration data corresponding to each target path identifier sequentially sent by the first electronic equipment;
and the second electronic equipment stores the received first migration data in the second electronic equipment according to the target path identification of the received first migration data.
7. The method of claim 6, wherein before the second electronic device sends the first migration information to the first electronic device, the method further comprises:
the second electronic equipment receives second migration information from the first electronic equipment, wherein the second migration information comprises a data identifier of each first migration data in N pieces of first migration data, and a storage path of the first migration data indicated by the data identifier in the first electronic equipment; n is a positive integer, N is greater than or equal to M;
the second electronic equipment determines a target path identifier of each first migration data in the M first migration data according to the second migration information and a preset inventory rule; the preset disk storage rule is used for indicating a corresponding relation between a storage path of the first migration data in the first electronic device and a path identifier of a storage path corresponding to the first migration data to be stored in the second electronic device.
8. The method of claim 7, wherein the determining, by the second electronic device according to the second migration information and the preset inventory rule, the target path identifier of each first migration data in the M first migration data includes:
The second electronic device displays a first interface, wherein the first interface is used for prompting a user to select one or more first migration data from the N first migration data;
and responding to the selection operation of the user on the first interface on the M pieces of first migration data in the N pieces of first migration data, and determining the target path identification of each piece of first migration data in the M pieces of first migration data according to the preset storage rule by the second electronic equipment according to the second migration information.
9. An electronic device, comprising: a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; when the processor executes the computer instructions, cause the electronic device to perform the method of any one of claims 1-5; or performing the method of any one of claims 6-8.
10. A computer-readable storage medium comprising computer instructions; when executed on an electronic device, the computer instructions cause the electronic device to perform the method of any one of claims 1-5; or performing the method of any one of claims 6-8.
CN202210482834.5A 2022-05-05 2022-05-05 Data migration method, electronic equipment and storage medium Active CN116049096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210482834.5A CN116049096B (en) 2022-05-05 2022-05-05 Data migration method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210482834.5A CN116049096B (en) 2022-05-05 2022-05-05 Data migration method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116049096A CN116049096A (en) 2023-05-02
CN116049096B true CN116049096B (en) 2024-04-16

Family

ID=86122605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210482834.5A Active CN116049096B (en) 2022-05-05 2022-05-05 Data migration method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116049096B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201426182Y (en) * 2009-05-22 2010-03-17 广东工业大学 Sensor network system based on mobile agent
CN101859263A (en) * 2010-06-12 2010-10-13 中国人民解放军国防科学技术大学 Quick communication method between virtual machines supporting online migration
CN102968281A (en) * 2012-11-26 2013-03-13 华为技术有限公司 Data migration method and device
CN102968498A (en) * 2012-12-05 2013-03-13 华为技术有限公司 Method and device for processing data
CN106507269A (en) * 2016-09-14 2017-03-15 广东欧珀移动通信有限公司 A kind of data migration method and terminal device
CN106527979A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Data migration method and device
CN107229674A (en) * 2017-04-26 2017-10-03 努比亚技术有限公司 A kind of data migration device, server and method
CN108664496A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 Data migration method and device
CN109635153A (en) * 2018-11-22 2019-04-16 腾讯音乐娱乐科技(深圳)有限公司 Migration path generation method, device and storage medium
CN111427514A (en) * 2020-03-27 2020-07-17 杭州宏杉科技股份有限公司 View migration method and device
CN113992663A (en) * 2021-12-29 2022-01-28 荣耀终端有限公司 Method for sending file, electronic device and readable storage medium
CN114036226A (en) * 2021-11-03 2022-02-11 北京金山云网络技术有限公司 Data synchronization method, device, equipment and storage medium
CN114153822A (en) * 2021-12-17 2022-03-08 阳光保险集团股份有限公司 Data migration method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8832334B2 (en) * 2012-08-09 2014-09-09 Hitachi, Ltd. Method and apparatus to migrate existing data among storage systems based on a traffic amount that does not exceed a preset threshold
CN107835986B (en) * 2016-06-30 2021-04-20 华为技术有限公司 Data operation method of electronic equipment and electronic equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201426182Y (en) * 2009-05-22 2010-03-17 广东工业大学 Sensor network system based on mobile agent
CN101859263A (en) * 2010-06-12 2010-10-13 中国人民解放军国防科学技术大学 Quick communication method between virtual machines supporting online migration
CN102968281A (en) * 2012-11-26 2013-03-13 华为技术有限公司 Data migration method and device
CN102968498A (en) * 2012-12-05 2013-03-13 华为技术有限公司 Method and device for processing data
CN106507269A (en) * 2016-09-14 2017-03-15 广东欧珀移动通信有限公司 A kind of data migration method and terminal device
CN106527979A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Data migration method and device
CN108664496A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 Data migration method and device
CN107229674A (en) * 2017-04-26 2017-10-03 努比亚技术有限公司 A kind of data migration device, server and method
CN109635153A (en) * 2018-11-22 2019-04-16 腾讯音乐娱乐科技(深圳)有限公司 Migration path generation method, device and storage medium
CN111427514A (en) * 2020-03-27 2020-07-17 杭州宏杉科技股份有限公司 View migration method and device
CN114036226A (en) * 2021-11-03 2022-02-11 北京金山云网络技术有限公司 Data synchronization method, device, equipment and storage medium
CN114153822A (en) * 2021-12-17 2022-03-08 阳光保险集团股份有限公司 Data migration method and device, electronic equipment and storage medium
CN113992663A (en) * 2021-12-29 2022-01-28 荣耀终端有限公司 Method for sending file, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN116049096A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US20230016915A1 (en) Method and apparatus for low energy discovery
US10631361B2 (en) Method and apparatus for providing user with information received by electronic device
US10045061B2 (en) Electronic device, adapter device, and video data processing method thereof
US10020832B2 (en) Method of controlling SIM card and SD card and electronic device for implementing the same
US20210389973A1 (en) Electronic device and method for operating the same
US9606957B2 (en) Electronic device and method of linking a task thereof
US9888277B2 (en) Content playback method and electronic device implementing the same
EP3018919B1 (en) Method of transmitting and receiving data of electronic device and electronic device using the method
CN114996168B (en) Multi-device cooperative testing method, testing device and readable storage medium
US9948732B2 (en) Method for providing status messaging service in electronic device and the electronic device thereof
CN112119623A (en) Method for sharing content based on account group and electronic device for performing the same
US20200201518A1 (en) Method for starting application and electronic device for implementing same
US10284614B2 (en) Method for downloading contents of electronic device and electronic device thereof
CN110413383B (en) Event processing method, device, terminal and storage medium
US20150063337A1 (en) Method for controlling transmission speed and electronic device thereof
CN116049096B (en) Data migration method, electronic equipment and storage medium
US10031734B2 (en) Device and method for generating application package
KR20210050398A (en) Electronic device for trnasmitting data to external electronic device not connected to the electronic device and method for the same
CN111782989B (en) Fast application association method and related device
KR102167646B1 (en) Electronic device and method for providing frame information
CN116049095A (en) Data migration method, electronic equipment and storage medium
US20150242370A1 (en) Method and apparatus for processing data
US9787816B2 (en) Method for reproducing contents and an electronic device thereof
CN116055443B (en) Method for identifying social scene, electronic equipment and computer readable storage medium
US20160359944A1 (en) Method for providing multimedia service and electronic device therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant