CN106547485B - Data migration method and device - Google Patents

Data migration method and device Download PDF

Info

Publication number
CN106547485B
CN106547485B CN201610915921.XA CN201610915921A CN106547485B CN 106547485 B CN106547485 B CN 106547485B CN 201610915921 A CN201610915921 A CN 201610915921A CN 106547485 B CN106547485 B CN 106547485B
Authority
CN
China
Prior art keywords
migration
record
file
list
source terminal
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.)
Expired - Fee Related
Application number
CN201610915921.XA
Other languages
Chinese (zh)
Other versions
CN106547485A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610915921.XA priority Critical patent/CN106547485B/en
Publication of CN106547485A publication Critical patent/CN106547485A/en
Application granted granted Critical
Publication of CN106547485B publication Critical patent/CN106547485B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files

Landscapes

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

Abstract

The embodiment of the invention discloses a data migration method, which comprises the following steps: after accessing a migration source terminal, acquiring a file list on the migration source terminal; acquiring a first migration record stored locally, determining an untransmitted file in the file list according to the first migration record, and adding the file to the untransmitted list; reading the file on the migration source terminal according to the non-transmission list and storing the file to the local; and updating the first migration record. In addition, the embodiment of the invention also discloses a data migration device. By adopting the embodiment of the invention, the operation flexibility of data migration can be improved.

Description

Data migration method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data migration method and apparatus.
Background
With the development of terminal technology, the update speed of intelligent terminals such as smart phones, tablet computers and the like is faster and faster, and when a user changes a mobile phone, the user does not want all data on the original old mobile phone to disappear along with the change of the mobile phone, and wants to copy part of data on the old mobile phone to a new mobile phone, so that a plurality of suppliers or application markets provide the function of moving the mobile phone at present, that is, the data, software, settings and the like on the whole old mobile phone can be copied to the new mobile phone without any change, and convenience is provided for the user in the process of changing the mobile phone.
Generally, data transfer on new and old mobile phones is realized through WIFI, bluetooth or other data connections, while data volume on old mobile phones is generally large, time consumed for data transmission in the moving process of mobile phones is long, data connections such as WIFI or bluetooth cannot be disconnected in the process, and once the data connections are disconnected, the situation that data are accidentally damaged may occur, so that part of data cannot be normally used. That is to say, in the technical scheme of the mobile phone moving process, the data transfer is easy to occur due to the long transmission time and the transmission connection can not be disconnected in the middle, so that the problem of incomplete data transmission is easily caused.
Disclosure of Invention
The embodiment of the invention provides a data migration method, which can solve the technical problem that the integrity of data transmission is insufficient due to the fact that data transmission time is too long and connection cannot be disconnected in the midway in the moving process of a mobile phone.
A method of data migration, comprising:
after accessing a migration source terminal, acquiring a file list on the migration source terminal;
acquiring a first migration record stored locally, determining an untransmitted file in the file list according to the first migration record, and adding the file to the untransmitted list;
reading the file on the migration source terminal according to the non-transmission list and storing the file to the local;
and updating the first migration record.
Optionally, in an embodiment, before the step of determining, according to the migration record, an untransmitted file in the file list and adding the file to the untransmitted list, the method further includes:
acquiring a second migration record on the migration source terminal;
judging whether the first migration record is consistent with the second migration record;
and if so, executing the step of determining the non-transferred files in the file list according to the first migration record and adding the non-transferred files to the non-transferred list.
Optionally, in one embodiment, after the step of determining whether the first migration record and the second migration record are consistent, the method further includes:
when the first migration record is inconsistent with the second migration record, acquiring a storage file list of a local stored file;
judging whether the storage file list is consistent with the transmitted files in the first migration record or not;
and when the storage file list is consistent with the transferred files in the first transfer record, executing the step of determining the non-transferred files in the file list according to the first transfer record and adding the non-transferred files to the non-transferred list.
Optionally, in an embodiment, after the step of determining whether the storage file list is consistent with the transferred file in the first migration record, the method further includes:
and when the storage file list is not consistent with the transmitted files in the first migration record, judging whether the storage file list is consistent with the transmitted files in the second migration record, and when the storage file list is consistent with the transmitted files in the second migration record, determining the untransmitted files in the file list according to the second migration record and adding the untransmitted files to the untransmitted list.
Optionally, in one embodiment, the method further includes:
when the first migration record is not stored in the local, reading the file on the migration source terminal according to the file list and storing the file in the local;
and generating a migration record, wherein the migration record is used for recording a data migration record for storing the file on the migration source terminal to the local, and the migration record is stored to the local as a first migration record.
Optionally, in one embodiment, after the generating the migration record, the method further includes:
sending the migration record serving as a second migration record to the migration source terminal;
and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
In addition, a data migration device is also provided.
A data migration apparatus, comprising:
the file list acquisition module is used for acquiring a file list on a migration source terminal after the migration source terminal is accessed;
the non-transmission list determining module is used for acquiring a first migration record stored locally, determining a non-transmission file in the file list according to the first migration record and adding the non-transmission file to the non-transmission list;
the data migration module is used for reading the file on the migration source terminal according to the non-transmission list and storing the file to the local;
and the first migration record updating module is used for updating the first migration record.
Optionally, in one embodiment, the apparatus further includes a migration record checking module, configured to obtain a second migration record on the migration source terminal; judging whether the first migration record is consistent with the second migration record; and when the first migration record is consistent with the second migration record, calling the non-transmission list determining module.
Optionally, in one embodiment, the migration record checking module is further configured to, when the first migration record is inconsistent with the second migration record, obtain a storage file list of a local stored file; judging whether the storage file list is consistent with the transmitted files in the first migration record or not; and when the storage file list is consistent with the transferred files in the first migration record, calling the non-transferred list determining module.
Optionally, in an embodiment, the migration record checking module is further configured to determine whether the storage file list is consistent with the transferred file in the second migration record when the storage file list is inconsistent with the transferred file in the first migration record, and determine an untransmitted file in the file list according to the second migration record and add the untransmitted file to the untransmitted list when the storage file list is consistent with the transferred file in the second migration record.
Optionally, in one embodiment, the apparatus further includes a migration record creating module, configured to, when the first migration record is not stored locally, read a file on the migration source terminal according to the file list and store the file in the local; and generating a migration record, wherein the migration record is used for recording a data migration record for storing the file on the migration source terminal to the local, and the migration record is stored to the local as a first migration record.
Optionally, in one embodiment, the apparatus further includes a second migration record updating module, configured to send the migration record to the migration source terminal as a second migration record; and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
After the data migration method and the data migration device are adopted, when data migration is carried out between a target migration terminal and a migration source terminal, the data migration situation between the two terminals is recorded by using the migration records, and after the data migration is interrupted and the data migration is initiated again, the files which are transmitted and the files which are not transmitted are determined according to the original migration records, so that the original data migration is continued. That is to say, even if the data migration is suspended in the data migration process, the original unfinished data migration can be continued next time according to the migration record, so that the operation flexibility in the data migration process is increased, the defect of insufficient data integrity caused by the suspension of the data migration in the data migration process is avoided, and the integrity of the migration data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram illustrating a data migration method, according to one embodiment;
FIG. 2 is a schematic diagram of a data migration apparatus according to an embodiment;
fig. 3 is a schematic structural diagram of a computer device for executing the foregoing data migration method in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this embodiment, a data migration method is proposed, which may be implemented by relying on a computer program that can run on a computer system based on von neumann architecture, which may be a data migration application between a terminal and a terminal, such as an application for changing a machine, an application for moving a mobile phone, etc. The computer system may be a server or a terminal, such as a smart phone, a tablet computer, a personal computer, etc., running the computer program.
Specifically, as shown in fig. 1, the data migration method includes the following steps S102 to S108:
step S102: and after accessing the migration source terminal, acquiring a file list on the migration source terminal.
In this embodiment, the execution terminal is a target migration terminal for data migration, that is, in this embodiment, data on the migration source terminal is transferred to the local target migration terminal, for example, in the process of data migration, data on an old mobile phone is copied to a new mobile phone without being changed, the old mobile phone is the migration source terminal, and the new mobile phone is the target migration terminal.
Before data migration, a communication connection between the migration terminal and the target migration source terminal needs to be established, for example, the communication connection between the target migration terminal and the migration source terminal may be bluetooth, wifi, NFC, or wired connection, that is, data on the migration source terminal may be migrated to the local target migration terminal through the communication connection.
For example, in one embodiment, after entering a data migration application installed on a terminal, such as "mobile phone moving", respectively, in a new mobile phone as a target migration terminal and an old mobile phone as a migration source terminal, a direct communication connection between the new mobile phone and the old mobile phone may be established.
It should be noted that, in this embodiment, after the communication connection between the target migration terminal and the migration source terminal is established, the user may preview the data on the old mobile phone on the new mobile phone. Specifically, after the target migration terminal accesses the migration source terminal, the target migration terminal obtains a file list on the migration source terminal through a communication connection with the migration source terminal, where the file list is a file list of all files to be migrated.
Step S104: and acquiring a first migration record stored locally, determining the file which is not transmitted in the file list according to the first migration record, and adding the file to the file list which is not transmitted.
In this embodiment, if data migration is performed between the target migration terminal and the migration source terminal before data migration is performed this time, and data migration is terminated or is not completely completed due to disconnection of communication connection or active termination of data migration by a user, in this case, a migration record is generated on the local target migration terminal and corresponds to a history of data migration between the previous target migration terminal and the previous migration source terminal. According to the migration record, the data which has been migrated between the target migration terminal and the migration source terminal and the data which has not been migrated can be determined.
The migration record stored in the local target migration terminal is a first migration record, the transferred file subjected to data migration in the file list and the non-transferred file not subjected to data migration in the file list are determined in the file list on the acquired migration source terminal according to the first migration record, and after the non-transferred file in the file list is determined, all the non-transferred files are added to the non-transferred list.
It should be noted that, in this embodiment, the non-transmission list may also be displayed on the display interface of the target migration terminal, for example, a non-transmission list display component is displayed in a corresponding operation interface, where the non-transmission list display component is used to display a transmission list corresponding to a file that has not been subjected to data migration. After the data migration of one of the untransferred files is completed, the file is deleted from the untransferred list.
Step S106: and reading the file on the migration source terminal according to the non-transmission list and storing the file to the local.
And according to each untransmitted file contained in the untransmitted list, reading the untransmitted files from the migration source terminal one by one, and storing the read untransmitted files locally in the migration terminal through the communication connection between the target migration terminal and the migration source terminal, namely finishing the data migration of the untransmitted files.
Step S108: and updating the first migration record.
In this embodiment, each time data migration of one file is completed, a record corresponding to the corresponding data migration is updated in the first migration record, that is, the first migration record is a migration progress of the data migration described in real time.
It should be noted that, in the above operation steps, all cases refer to a case where the first migration record is stored in the local target migration terminal, and if the first migration record is not stored locally (that is, data migration has not been performed between the previous target migration terminal and the migration source terminal), it is not necessary to determine an untransmitted file in the file list according to the first migration record, but all files in the file list are determined as untransmitted files.
Specifically, in an embodiment, the method further includes: when the first migration record is not stored in the local, reading the file on the migration source terminal according to the file list and storing the file in the local; and generating a migration record, wherein the migration record is used for recording a data migration record for storing the file on the migration source terminal to the local, and the migration record is stored to the local as a first migration record.
That is, if data migration is performed between the target migration terminal and the migration source terminal for the first time, data migration is performed one by one directly according to the file list on the migration source terminal acquired in step S102, and a migration record is generated at the same time to record the data migration progress and the specific migration data situation between the target migration terminal and the migration source terminal.
Note that the migration record is stored not only in the target migration terminal but also in the migration source terminal.
Specifically, in an embodiment, after the generating the migration record, the method further includes: sending the migration record serving as a second migration record to the migration source terminal; and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
That is, when the migration record is generated, the migration record is also sent to the migration source terminal, and is stored by the migration source terminal, and when the migration record is updated each time, the migration record stored in the migration source terminal is updated synchronously, that is, the synchronicity of the migration records on the migration source terminal and the migration record on the target migration terminal is ensured.
Further, in order to improve the preparation and integrity of the migration-resumed data when the migration is resumed in the data migration process, it is also necessary to verify the migration records respectively stored in the target migration terminal and the migration source terminal.
Specifically, before the step of determining the untransmitted file in the file list according to the migration record and adding the file to the untransmitted list, the method further includes: acquiring a second migration record on the migration source terminal; judging whether the first migration record is consistent with the second migration record; and if so, executing the step of determining the non-transferred files in the file list according to the first migration record and adding the non-transferred files to the non-transferred list.
That is, only when the second migration record stored on the migration source terminal is consistent with the first migration record stored on the local target migration terminal, the above step of determining the untransmitted file in the file list according to the first migration record and adding the file to the untransmitted list is directly performed, in this case, because the first migration record is consistent with the second migration record, the effect of taking the first migration record or the second migration record as the basis for determining the untransmitted file is consistent.
Further, if the second migration record stored on the migration source terminal is not consistent with the first migration record stored on the local target migration terminal, further determination needs to be made to determine whether the second migration record is based on the first migration record or the second migration record in the process of determining that the file is not transferred.
Specifically, after the step of determining whether the first migration record and the second migration record are consistent, the method further includes: when the first migration record is inconsistent with the second migration record, acquiring a storage file list of a local stored file; judging whether the storage file list is consistent with the transmitted files in the first migration record or not; when the storage file list is consistent with the transferred files in the first transfer record, executing the step of determining the non-transferred files in the file list according to the first transfer record and adding the non-transferred files to the non-transferred list; and when the storage file list is not consistent with the transmitted files in the first migration record, judging whether the storage file list is consistent with the transmitted files in the second migration record, and when the storage file list is consistent with the transmitted files in the second migration record, determining the untransmitted files in the file list according to the second migration record and adding the untransmitted files to the untransmitted list.
That is, if the second migration record stored in the migration source terminal does not coincide with the first migration record stored in the local target migration terminal, it is necessary to determine whether any one of the second migration record stored in the migration source terminal and the transferred file recorded in the first migration record stored in the local target migration terminal is consistent with the file stored in the local target migration terminal, which means that the migration record is consistent with the file stored in the target migration terminal, and therefore, the untransmitted file in the file list acquired in the step S102 should be determined according to the migration record.
In an embodiment, as shown in fig. 2, a data migration apparatus is further provided, which includes a file list obtaining module 102, an untransferred list determining module 104, a data migration module 106, and a first migration record updating module 108, where:
a file list obtaining module 102, configured to obtain a file list on a migration source terminal after accessing the migration source terminal;
a non-transmission list determining module 104, configured to obtain a first migration record stored locally, determine a non-transmission file in the file list according to the first migration record, and add the non-transmission file to the non-transmission list;
the data migration module 106 is configured to read a file on the migration source terminal according to the non-transmission list and store the file locally;
a first migration record updating module 108, configured to update the first migration record.
Optionally, in an embodiment, as shown in fig. 2, the apparatus further includes a migration record checking module 110, configured to obtain a second migration record on the migration source terminal; judging whether the first migration record is consistent with the second migration record; and when the first migration record is consistent with the second migration record, calling the non-transmission list determining module.
Optionally, in an embodiment, the migration record checking module 110 is further configured to, when the first migration record is inconsistent with the second migration record, obtain a storage file list of a local stored file; judging whether the storage file list is consistent with the transmitted files in the first migration record or not; when the storage file list is consistent with the transferred files in the first migration record, the non-transferred list determination module 104 is invoked.
Optionally, in an embodiment, the migration record checking module 110 is further configured to determine whether the storage file list is consistent with the transferred file in the second migration record when the storage file list is inconsistent with the transferred file in the first migration record, and determine an untransmitted file in the file list according to the second migration record and add the untransmitted file to the untransmitted list when the storage file list is consistent with the transferred file in the second migration record.
Optionally, in an embodiment, as shown in fig. 2, the apparatus further includes a migration record creating module 112, configured to, when no first migration record is stored in the local, read a file on the migration source terminal according to the file list and store the file in the local; and generating a migration record, wherein the migration record is used for recording a data migration record for storing the file on the migration source terminal to the local, and the migration record is stored to the local as a first migration record.
Optionally, in an embodiment, as shown in fig. 2, the apparatus further includes a second migration record updating module 114, configured to send the migration record to the migration source terminal as a second migration record; and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
After the data migration method and the data migration device are adopted, when data migration is carried out between a target migration terminal and a migration source terminal, the data migration situation between the two terminals is recorded by using the migration records, and after the data migration is interrupted and the data migration is initiated again, the files which are transmitted and the files which are not transmitted are determined according to the original migration records, so that the original data migration is continued. That is to say, even if the data migration is suspended in the data migration process, the original unfinished data migration can be continued next time according to the migration record, so that the operation flexibility in the data migration process is increased, the defect of insufficient data integrity caused by the suspension of the data migration in the data migration process is avoided, and the integrity of the migration data is improved.
In one embodiment, as shown in fig. 3, fig. 3 illustrates a terminal of a computer system based on von neumann architecture running the above-described data migration method. The computer system can be terminal equipment such as a smart phone, a tablet computer, a palm computer, a notebook computer or a personal computer. Specifically, an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included. The external input interface 1001 may optionally include at least a network interface 10012. Memory 1003 can include external memory 10032 (e.g., a hard disk, optical or floppy disk, etc.) and internal memory 10034. The output interface 1004 may include at least a display 10042 or the like.
In this embodiment, the method is executed based on a computer program, program files of the computer program are stored in the external memory 10032 of the computer system based on the von neumann system, and are loaded into the internal memory 10034 at the time of execution, and then are compiled into machine code and then transferred to the processor 1002 to be executed, so that the logical file list obtaining module 102, the untransmitted list determining module 104, the data migration module 106, the first migration record updating module 108, the migration record verifying module 110, the migration record creating module 112, and the second migration record updating module 114 are formed in the computer system based on the von neumann system. In the execution process of the data migration method, the input parameters are received through the external input interface 1001, transferred to the memory 1003 for caching, and then input to the processor 1002 for processing, and the processed result data is cached in the memory 1003 for subsequent processing or transferred to the output interface 1004 for outputting.
Specifically, in this embodiment, the processor 1002 is configured to perform the following operations:
after accessing a migration source terminal, acquiring a file list on the migration source terminal;
acquiring a first migration record stored locally, determining an untransmitted file in the file list according to the first migration record, and adding the file to the untransmitted list;
reading the file on the migration source terminal according to the non-transmission list and storing the file to the local;
and updating the first migration record.
In an optional embodiment, before the processor 1002 determines, according to the migration record, that the file in the file list is not transferred and adds the file to the non-transferred list, the processor 1002 is further configured to obtain a second migration record on the migration source terminal; judging whether the first migration record is consistent with the second migration record; and if so, executing the step of determining the non-transferred files in the file list according to the first migration record and adding the non-transferred files to the non-transferred list.
In an optional embodiment, after the processor 1002 determines whether the first migration record and the second migration record are consistent, the processor 1002 is further configured to obtain a storage file list of a local stored file when the first migration record and the second migration record are inconsistent; judging whether the storage file list is consistent with the transmitted files in the first migration record or not; and when the storage file list is consistent with the transferred files in the first transfer record, executing the step of determining the non-transferred files in the file list according to the first transfer record and adding the non-transferred files to the non-transferred list.
In an optional embodiment, after the processor 1002 determines whether the storage file list is consistent with the transferred file in the first migration record, the processor 1002 is further configured to determine whether the storage file list is consistent with the transferred file in the first migration record, and when the storage file list is not consistent with the transferred file in the second migration record, determine, according to the second migration record, an untransmitted file in the file list and add the untransmitted file to the untransmitted list.
In an optional embodiment, the processor 1002 is further configured to, when the first migration record is not stored locally, read a file on the migration source terminal according to the file list and store the file to the local; and generating a migration record, wherein the migration record is used for recording a data migration record for storing the file on the migration source terminal to the local, and the migration record is stored to the local as a first migration record.
In an optional embodiment, after the processor 1002 generates the migration record, the processor 1002 is further configured to send the migration record as a second migration record to the migration source terminal; and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (4)

1. A method of data migration, comprising: after a target migration terminal accesses a migration source terminal, acquiring a file list on the migration source terminal, wherein the migration source terminal and the target migration terminal are both provided with data migration applications, a user can preview data on the migration source terminal on the target migration terminal after a communication connection between the migration source terminal and the target migration terminal is established, wherein the data migration applications are mobile phone applications or mobile phone moving applications, in the process of data migration, the data on an old mobile phone is copied to a new mobile phone without being changed, the old mobile phone is the migration source terminal, and the new mobile phone is the target migration terminal;
acquiring a second migration record on the migration source terminal;
acquiring a first migration record of local storage, and judging whether the first migration record is consistent with the second migration record;
if the first migration record is consistent with the second migration record, determining the file which is not transmitted in the file list according to the first migration record and adding the file to the file list which is not transmitted;
when the first migration record is inconsistent with the second migration record, acquiring a storage file list of a local stored file; judging whether the storage file list is consistent with the transmitted files in the first migration record or not; when the storage file list is consistent with the transferred files in the first migration record, determining the non-transferred files in the file list according to the first migration record and adding the non-transferred files to the non-transferred list;
when the storage file list is inconsistent with the transmitted files in the first migration record, judging whether the storage file list is consistent with the transmitted files in the second migration record, and when the local storage file list is consistent with the transmitted files in the second migration record, determining the untransmitted files in the file list according to the second migration record and adding the untransmitted files to the untransmitted list; reading the file on the migration source terminal according to the non-transmission list and storing the file to the local;
updating the first migration record so that the migration progress of data migration is recorded in real time in the first migration record;
the method comprises the steps that the non-transmission list can be displayed on a display interface of a target migration terminal, a non-transmission list display component is displayed in a corresponding operation interface and used for displaying a transmission list corresponding to a file which is not subjected to data migration, and the file is deleted from the non-transmission list after the data migration of one non-transmission file is completed;
wherein the method further comprises:
when the first migration record is not stored in the local, reading the file on the migration source terminal according to the file list and storing the file in the local; the method comprises the steps that a first migration record is not stored locally, and the fact that data migration is not carried out between a target migration terminal and a migration source terminal in the past is indicated, and all files in a file list are judged to be untransmitted files without determining the untransmitted files in the file list according to the first migration record;
generating a migration record, wherein the migration record is used for recording a data migration record for storing a file on the migration source terminal to the local, and storing the migration record to the local as a first migration record;
wherein, after the generating the migration record, further comprising:
sending the migration record serving as a second migration record to the migration source terminal; and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
2. A data migration apparatus, comprising:
a file list obtaining module, configured to obtain a file list on a migration source terminal after accessing the migration source terminal, where the data migration apparatus is applied to a target migration terminal, and both the migration source terminal and the target migration terminal are installed with a data migration application, where after a communication connection between the migration source terminal and the target migration terminal is established, a user can preview data on the migration source terminal on the target migration terminal, the data migration application is a change machine application or a mobile phone moving application, and in a data migration process, data on an old mobile phone is copied to a new mobile phone without being changed, the old mobile phone is the migration source terminal, and the new mobile phone is the target migration terminal;
the non-transmission list determining module is used for acquiring a first migration record stored locally, determining a non-transmission file in the file list according to the first migration record and adding the non-transmission file to the non-transmission list;
the data migration module is used for reading the file on the migration source terminal according to the non-transmission list and storing the file to the local;
the first migration record updating module is used for updating the first migration record so that the migration progress of data migration is recorded in real time in the first migration record;
the device further comprises a migration record checking module, which is used for acquiring a second migration record on the migration source terminal; judging whether the first migration record is consistent with the second migration record; when the first migration record is consistent with the second migration record, calling the non-transmission list determining module;
the migration record checking module is further configured to obtain a storage file list of a locally stored file when the first migration record is inconsistent with the second migration record; judging whether the storage file list is consistent with the transmitted files in the first migration record or not; when the storage file list is consistent with the transferred files in the first migration record, calling the non-transferred list determining module;
the migration record checking module is further configured to determine whether the stored file list is consistent with the transferred file in the second migration record when the stored file list is inconsistent with the transferred file in the first migration record, and determine an untransmitted file in the file list according to the second migration record and add the untransmitted file to the untransmitted list when the local stored file list is consistent with the transferred file in the second migration record;
the device also comprises a migration record creating module, which is used for reading the file on the migration source terminal according to the file list and storing the file to the local when the first migration record is not stored in the local; generating a migration record, wherein the migration record is used for recording a data migration record for storing a file on the migration source terminal to the local, and the migration record is stored to the local as a first migration record, where the local does not store the first migration record, and indicates that data migration has not been performed between the target migration terminal and the migration source terminal before, and all files in the file list are determined to be untransmitted files without determining the untransmitted files in the file list according to the first migration record;
the method comprises the steps that the non-transmission list can be displayed on a display interface of a target migration terminal, a non-transmission list display component is displayed in a corresponding operation interface and used for displaying a transmission list corresponding to a file which is not subjected to data migration, and the file is deleted from the non-transmission list after the data migration of one non-transmission file is completed;
the device further comprises a second migration record updating module, which is used for sending the migration record serving as a second migration record to the migration source terminal; and monitoring whether the migration record has an update event, and when the update event of the migration record is monitored, sending the updated migration record serving as an updated second migration record to the migration source terminal, wherein the migration source terminal updates the second migration record according to the received updated second migration record.
3. A terminal capable of implementing the data migration method according to claim 1, wherein the terminal comprises: an external input interface, a processor, a memory and an output interface;
wherein the memory stores a computer program;
the processor is configured to execute the computer program stored in the memory to perform the data migration method of claim 1.
4. A computer storage medium storing a computer program, wherein the computer program is executed by a processor to perform the data migration method of claim 1.
CN201610915921.XA 2016-10-20 2016-10-20 Data migration method and device Expired - Fee Related CN106547485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610915921.XA CN106547485B (en) 2016-10-20 2016-10-20 Data migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610915921.XA CN106547485B (en) 2016-10-20 2016-10-20 Data migration method and device

Publications (2)

Publication Number Publication Date
CN106547485A CN106547485A (en) 2017-03-29
CN106547485B true CN106547485B (en) 2020-09-08

Family

ID=58391979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610915921.XA Expired - Fee Related CN106547485B (en) 2016-10-20 2016-10-20 Data migration method and device

Country Status (1)

Country Link
CN (1) CN106547485B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517269B (en) * 2017-09-07 2020-09-08 深圳市酷开网络科技有限公司 Remote synchronous push file caching method and system based on VR equipment
CN112000614A (en) * 2019-05-27 2020-11-27 北京白帽汇科技有限公司 Method and device for quickly and accurately migrating distributed system files
CN116048848A (en) * 2022-05-16 2023-05-02 荣耀终端有限公司 Data transmission method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009111492A4 (en) * 2008-03-04 2009-11-05 Apple Inc. Data synchronization protocol
CN102495906A (en) * 2011-12-23 2012-06-13 天津神舟通用数据技术有限公司 Incremental data migration method capable of realizing breakpoint transmission
CN103019827A (en) * 2012-12-28 2013-04-03 盘石软件(上海)有限公司 Breakpoint re-copying method for medium data
CN105376277A (en) * 2014-08-25 2016-03-02 Tcl集团股份有限公司 Data synchronization method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610225B (en) * 2008-06-20 2012-01-25 华为技术有限公司 Method, system and device for synchronous processing
CN102594874B (en) * 2008-06-20 2014-12-17 华为技术有限公司 Synchronization processing method and device
CN101656652A (en) * 2008-08-21 2010-02-24 中国移动通信集团公司 Content synchronization method, equipment and system for dynamic content delivery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009111492A4 (en) * 2008-03-04 2009-11-05 Apple Inc. Data synchronization protocol
CN102495906A (en) * 2011-12-23 2012-06-13 天津神舟通用数据技术有限公司 Incremental data migration method capable of realizing breakpoint transmission
CN103019827A (en) * 2012-12-28 2013-04-03 盘石软件(上海)有限公司 Breakpoint re-copying method for medium data
CN105376277A (en) * 2014-08-25 2016-03-02 Tcl集团股份有限公司 Data synchronization method and device

Also Published As

Publication number Publication date
CN106547485A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
WO2018049888A1 (en) Application data migration method and device
WO2020216204A1 (en) Information acquisition method and apparatus
CN109388620A (en) A kind of method and the first electronic equipment of striding equipment access data
CN110865837B (en) Method and terminal for system upgrade
US20160234340A1 (en) Systems and methods for adaptive cloning of mobile devices
CN106547485B (en) Data migration method and device
CN112165704A (en) Information sharing method, earphone box and computer readable storage medium
CN111198777A (en) Data processing method, device, terminal and storage medium
CN111459523A (en) Image quality chip software upgrading method and device, electronic equipment and storage medium
CN106775445B (en) Data migration method and device
CN109246467A (en) Label is to the method, apparatus of sharing video frequency, video camera and smart phone
CN106484779B (en) File operation method and device
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN112711955A (en) NFC information transmission method, NFC information transmission device and NFC terminal
JP2019220152A (en) Image filtering methods, electronic devices, and recording media
CN114928620A (en) User information synchronization method, device, equipment, storage medium and program product
CN111026504B (en) Processing method and device for configuring instruction for acquiring processor information in virtual machine, CPU chip, system on chip and computer
CN112306723B (en) Operation information acquisition method and device applied to applet
CN110086880B (en) Method and apparatus for creating instances of network requests
CN115437551A (en) Data cloning method, device, storage medium and computer program product
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN111367898A (en) Data processing method, device, system, electronic equipment and storage medium
CN111771191A (en) Cross-domain inline event handler
CN113641966B (en) Application integration method, system, equipment and medium

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200908

CF01 Termination of patent right due to non-payment of annual fee