CN106547485A - Data migration method and device - Google Patents

Data migration method and device Download PDF

Info

Publication number
CN106547485A
CN106547485A CN201610915921.XA CN201610915921A CN106547485A CN 106547485 A CN106547485 A CN 106547485A CN 201610915921 A CN201610915921 A CN 201610915921A CN 106547485 A CN106547485 A CN 106547485A
Authority
CN
China
Prior art keywords
migration
record
file
source terminal
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610915921.XA
Other languages
Chinese (zh)
Other versions
CN106547485B (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

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

Abstract

The embodiment of the invention discloses a kind of data migration method, including:After migration source terminal is accessed, the listed files on the migration source terminal is obtained;The first locally stored migration record is obtained, not transmitting file and being added to non-transmission list in the listed files is determined according to the described first migration record;File on the migration source terminal is read according to the non-transmission list and stores local;Update the first migration record.Additionally, a kind of the embodiment of the invention also discloses data migration device.Using the embodiment of the present invention, the operating flexibility of Data Migration can be improved.

Description

Data migration method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data migration method and device.
Background technology
As the update speed of the intelligent terminal such as the development of terminal technology, smart mobile phone, panel computer is increasingly Hurry up, user is in hand-off machine, it is undesirable to which all data on old mobile phone originally are all vanished from sight with the replacing of mobile phone, wish Prestige copies the part information on old mobile phone in new cell-phone to, therefore, many suppliers or application market are both provided at present The function of mobile phone removal of home, you can so that data are all intact copies to by the data on whole old mobile phone, software, setting etc. New cell-phone gets on, and is user's provides convenient during changing planes.
In general, the data transfer on new and old mobile phone is realized by WIFI, bluetooth or other data cube computations, and Data volume on old mobile phone is generally large, and the time during mobile phone is moved spent by data transfer will be long, and The data cube computations such as above-mentioned WIFI or bluetooth can not be disconnected in the process, once disconnecting above-mentioned data cube computation, be then likely to occur number According to the situation of accidental damage, cause partial data normally cannot use.That is, in the technical scheme that mobile phone moves process Data Migration is because the data transfer that easily occurs caused by can not disconnecting transmission connection of transmission time length and midway is incomplete Problem.
The content of the invention
The embodiment of the present invention proposes a kind of data migration method, can solve during mobile phone is moved because data transfer Overlong time and midway can not disconnect the not enough technical problem of integrity of data transfer so as to caused easy appearance.
A kind of data migration method, including:
After migration source terminal is accessed, the listed files on the migration source terminal is obtained;
The first locally stored migration record is obtained, is determined in the listed files not according to the described first migration record Transmission file is simultaneously added to non-transmission list;
File on the migration source terminal is read according to the non-transmission list and stores local;
Update the first migration record.
Optionally, it is wherein in one embodiment, described to be determined in the listed files not according to the migration record Also include before the step of transmitting file and be added to non-transmission list:
Obtain the second migration record on the migration source terminal;
Judge whether the first migration record is consistent with the described second migration record;
If so, then perform not transmitting file and adding in the listed files according to the described first migration record determination The step of being added to non-transmission list.
Optionally, it is wherein in one embodiment, described to judge the first migration record with the described second migration record Whether also include after consistent step:
When the described first migration record records inconsistent with the described second migration, the storage of locally stored file is obtained Listed files;
Judge whether the storage file list is consistent with the file of transmission in the described first migration record;
When the storage file list is consistent with the file of transmission in the described first migration record, the basis is performed The first migration record determine in the listed files the step of not transmitting file and be added to non-transmission list.
Optionally, it is wherein in one embodiment, described to judge the storage file list with the described first migration record In transmit the whether consistent step of file after also include:
When the file of transmission in the storage file list with the described first migration record is inconsistent, deposit described in judgement Storage listed files with described second migration record in the file of transmission it is whether consistent, described storage file list with it is described When the file of transmission in second migration record is consistent, not passing in the listed files is determined according to the described second migration record Defeated file is simultaneously added to the non-transmission list.
Optionally, wherein in one embodiment, methods described also includes:
When first migration that is not stored with local is recorded, read on the migration source terminal according to the listed files File simultaneously stores local;
Migration record is generated, the migration is recorded arrives local by the file storage on the migration source terminal for recording Data Migration is recorded, using the migration record as the first migration record storage to locally.
Optionally, wherein in one embodiment, described generation after migration is recorded also includes:
Send the migration record as the second migration record to the migration source terminal;
Whether the monitoring migration record there is update event, when the update event of the migration record is monitored, will Migration record after renewal is sent to the migration source terminal, the migration source terminal root as the second migration record after updating The described second migration record is updated according to the second migration record after the renewal for receiving.
In addition, it is also proposed that a kind of data migration device.
A kind of data migration device, including:
Listed files acquisition module, for after migration source terminal is accessed, obtaining the file on the migration source terminal List;
Non- transmission list determining module, for obtaining the first locally stored migration record, according to the described first migration note Not not transmitting file and being added to non-transmission list in the record determination listed files;
Data Migration module, reads the file on the migration source terminal and stores for the non-transmission list according to and arrive Locally;
First migration record update module, for updating the first migration record.
Optionally, wherein in one embodiment, described device also includes migration record correction verification module, described for obtaining The second migration record on migration source terminal;Judge whether the first migration record is consistent with the described second migration record; When the first migration record records consistent with the described second migration, the non-transmission list determining module is called.
Optionally, wherein in one embodiment, the migration record correction verification module is additionally operable in the described first migration note When record records inconsistent with the described second migration, the storage file list of locally stored file is obtained;Judge the storage text Whether part list is consistent with the file of transmission in the described first migration record;Move with described first in the storage file list When the file of transmission in shifting record is consistent, the non-transmission list determining module is called.
Optionally, wherein in one embodiment, the migration record correction verification module is additionally operable to arrange in the storage file Table with described first migration record in the file of transmission it is inconsistent when, judge the storage file list with described second migrate Whether the file of transmission in record is consistent, the text of transmission in described storage file list with the described second migration record When part is consistent, not transmitting file and not transmitting described in being added in the listed files is determined according to the described second migration record List.
Optionally, wherein in one embodiment, described device also includes migration record creation module, in local When first migration that is not stored with is recorded, the file on the migration source terminal is read according to the listed files and this is stored Ground;Migration record is generated, the migration is recorded arrives local data by the file storage on the migration source terminal for recording Record is migrated, using the migration record as the first migration record storage to locally.
Optionally, wherein in one embodiment, described device also including the second migration record update module, for by institute State migration record to send to the migration source terminal as the second migration record;Whether the monitoring migration record there is renewal thing Part, the second migration note when the update event of the migration record is monitored, using the migration record after renewal as after updating Record is sent to the migration source terminal, and the migration source terminal is recorded to described the according to the second migration after the renewal for receiving Two migration records are updated.
After employing above-mentioned data migration method and device, migrate in target and enter line number between terminal and migration source terminal According to during migration, the Data Migration situation between two terminals is recorded with migration record, and after Data Migration is interrupted And when initiating Data Migration again, the file for having transmitted determined according to original migration record and is not also transmitted File, so as to continue original Data Migration.That is, even if Data Migration is aborted during Data Migration, under It is secondary the original Data Migration not completed to be continued according to migration record, increased the flexible operation in data migration process Property, and avoid during Data Migration because Data Migration is aborted the not enough defect of the data integrity for causing, Improve the integrity of migrating data.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 is a kind of schematic flow sheet of data migration method in one embodiment;
Fig. 2 is a kind of structural representation of data migration device in one embodiment;
Fig. 3 is the structural representation of the computer equipment of operation aforementioned data moving method in one embodiment.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In the present embodiment, it is proposed that a kind of data migration method, the realization of the method can be dependent on computer program, should Computer program is can run on the computer system based on von Neumann system, and the computer program can be terminal and end The application programs such as the Data Migration application program between end, application of for example changing planes, mobile phone removal of home application.The computer system can be with It is to run server or the terminals such as such as smart mobile phone of above computer program, panel computer, PC.
Specifically, as shown in figure 1, above-mentioned data migration method comprises the steps S102-S108:
Step S102:After migration source terminal is accessed, the listed files on the migration source terminal is obtained.
In the present embodiment, the target for performing terminal for Data Migration migrates terminal, that is to say, that in the present embodiment, By on the data conversion storage on migration source terminal to local target migration terminal, for example, during Data Migration is carried out, it is New cell-phone is copied to up by data on old mobile phone intact, old mobile phone as migrates source terminal, new cell-phone is target Migration terminal.
Before Data Migration is carried out, it is necessary first to the communication link set up between migration terminal and target migration source terminal Connect, for example, the communication connection between target migration terminal and migration source terminal can be bluetooth, wifi, NFC or wired company Connect, that is to say, that the Data Migration migrated on source terminal can be migrated to local target by terminal by above-mentioned communication connection Up.
For example, in one embodiment, in the new cell-phone that terminal is migrated as target and as the old of migration source terminal In mobile phone, after having respectively entered in such as " mobile phone removal of home " etc. the Data Migration application installed in terminal, can set up new and old Mobile phone is directly communicated to connect.
It should be noted that in the present embodiment, establishing the communication between target migration terminal and migration source terminal After connection, user can be in the data on the old mobile phone of preview on new cell-phone.Specifically, migration source is accessed in target migration terminal After terminal, target migrates terminal by migrating the communication connection between source terminal, obtains the file row on migration source terminal Table, this document list as need the listed files of the All Files of migration.
Step S104:The first locally stored migration record is obtained, the file is determined according to the described first migration record Not not transmitting file and being added to non-transmission list in list.
In the present embodiment, if before this carries out Data Migration, entering between target migration terminal and migration source terminal Went Data Migration, and Data Migration was because communication connection disconnects or the reason such as user's active termination Data Migration result in Data Migration terminates or Data Migration is not fully completed, and in this case, generates in local target migration terminal Migration record and migration record is the history that the Data Migration between terminal and migration source terminal is migrated with target before It is corresponding.Recorded according to above-mentioned migration, it may be determined that target migrates the data migrated between terminal and migration source terminal The data of Data Migration are not carried out also.
The migration that terminal storage is migrated in local target is recorded as the first migration record, can be according to the first migration record In listed files on the migration source terminal of acquisition, it is determined that the text of transmission of Data Migration is had been carried out in this document list Part and the file that do not transmit of Data Migration is not also carried out in this document list, it is determined that having crossed not passing in above-mentioned listed files After defeated file, all of file that do not transmit is added in non-transmission list.
It should be noted that in the present embodiment, can also show there is above-mentioned on the display interface that target migrates terminal Non- transmission list, for example, in corresponding operation interface, illustrate non-transmission list component exhibiting, wherein non-transmission list exhibition Show component for show corresponding to the file for also not carrying out Data Migration for transmission list.Also, completing some not After the Data Migration of transmission file, this document is deleted from above-mentioned non-transmission list.
Step S106:File on the migration source terminal is read according to the non-transmission list and stores local.
File is not transmitted according to each included on non-transmission list, from migration source terminal reading this and do not pass one by one Defeated file, and the file that do not transmit for reading is migrated into the communication connection between terminal and migration source terminal by above-mentioned target Migration terminal local is stored in, that is, completes the Data Migration for not transmitting file.
Step S108:Update the first migration record.
In the present embodiment, the Data Migration of a file is often completed, by corresponding Data Migration corresponding record more It is new to migrate in record above-mentioned first, that is to say, that the first migration record is the migration progress of the Data Migration of real-time record.
It should be noted that aforesaid operations step it is targeted be all to be stored with first in local target migration terminal The situation of migration record, if in the first migration record that is not locally stored with (i.e. in the migration terminal of target before and migration source terminal Between do not carried out Data Migration), then need not be determined according to the first migration record and not transmit file in listed files, But be judged to not transmit file by all of file in listed files.
Specifically, in one embodiment, said method also includes:When first migration that is not stored with local is recorded, File on the migration source terminal is read according to the listed files and stores local;Generate migration record, the migration Record and the file storage on the migration source terminal is recorded to local Data Migration for recording, the migration record is made It is the first migration record storage to locally.
If that is, be to carry out Data Migration first between target migration terminal and migration source terminal, direct basis The listed files on migration source terminal obtained in step S102 is carrying out Data Migration one by one, also, while generates migration note Data Migration progress and specific migrating data situation that record comes between carrying target migration terminal and migration source terminal.
It should be noted that migration record not only has preservation in target migration terminal, still have on migration source terminal Preserve.
Specifically, in one embodiment, described generation after migration is recorded also includes:Using the migration record as the Two migration records are sent to the migration source terminal;Whether the monitoring migration record there is update event, described in monitoring During the update event of migration record, the second migration record using the migration record after renewal as after updating is sent to the migration Source terminal, the migration source terminal are carried out more to the described second migration record according to the second migration record after the renewal for receiving Newly.
That is, while migration record is generated, the migration record is also sent to migrate source terminal, by migration source Terminal is stored, also, when migration record occurs to update each time, all to migrate the migration that stores on source terminal record into The synchronous renewal of row, that is to say, that, it is ensured that the synchronicity of the migration record on migration source terminal and target migration terminal.
Further, in order to, in the case of improving during Data Migration and continuing migration again, continue the standard of migrating data Standby property and integrity, in addition it is also necessary to the migration record for being stored on terminal and migration source terminal respectively is migrated to target and is verified.
Specifically, it is above-mentioned to determine that not transmitting file and being added in the listed files does not pass according to the migration record Also include before the step of defeated list:Obtain the second migration record on the migration source terminal;Judge the first migration note Whether record is consistent with the described second migration record;If so, then perform described according to the described first migration record determination file In list the step of not transmitting file and be added to non-transmission list.
That is, the stored in the second migration record for only storing on migration source terminal and local target migration terminal In the case that one migration record is consistent, just directly perform in the above-mentioned listed files according to the described first migration record determination The step of not transmitting file and be added to non-transmission list, in this case because first migration record with second migration Record be it is consistent, therefore using first migration record or second migration record as determine do not transmit file basis effect It is consistent.
Further, if the second migration record stored on migration source terminal migrates what is stored in terminal with local target First migration record is not consistent, then need further to be determined, it is determined that during it is determined that not transmitting file being Based on the first migration record or the second migration record.
Specifically, it is described judge the first migration record with after the described second migration record whether consistent step also Including:When the described first migration record records inconsistent with the described second migration, the storage text of locally stored file is obtained Part list;Judge whether the storage file list is consistent with the file of transmission in the described first migration record;Deposit described When storage listed files is consistent with the file of transmission in the described first migration record, perform described according to the described first migration record Determine in the listed files the step of not transmitting file and be added to non-transmission list;In the storage file list and institute State the first migration record in the file of transmission it is inconsistent when, judge the storage file list with described second migration record in The file of transmission it is whether consistent, it is consistent with the file of transmission in the described second migration record in described storage file list When, determined according to the described second migration record and do not transmit file and non-transmission list described in being added in the listed files.
If that is, the second migration record stored on migration source terminal migrates what is stored in terminal with local target First migration record is not consistent, then need to judge that store on migration source terminal second migrates record and local target Migration terminal on store first migration record described in transmit file with the presence or absence of some migration record with it is local The file for having been stored in target migration terminal is consistent, then illustrate that the migration record migrates the text of storage in terminal with target Part be it is consistent, therefore, it should not passing in the listed files obtained in above-mentioned steps S102 is determined according to migration record Defeated file.
In one embodiment, as shown in Figure 2, it is also proposed that a kind of data migration device, including listed files obtain mould Block 102, non-transmission list determining module 104, Data Migration module 106 and the first migration record update module 108, wherein:
Listed files acquisition module 102, for after migration source terminal is accessed, obtaining the text on the migration source terminal Part list;
Non- transmission list determining module 104, for obtaining the first locally stored migration record, according to the described first migration Not not transmitting file and being added to non-transmission list in the record determination listed files;
Data Migration module 106, reads the file on the migration source terminal for the non-transmission list according to and deposits Store up local;
First migration record update module 108, for updating the first migration record.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include migration record correction verification module 110, use Record in the second migration on the migration source terminal is obtained;Judge that the first migration record with the described second migration record is It is no consistent;When the described first migration record records consistent with the described second migration, the non-transmission list determining module is called.
Optionally, in one embodiment, above-mentioned migration record correction verification module 110 is additionally operable in the described first migration record When recording inconsistent with the described second migration, the storage file list of locally stored file is obtained;Judge the storage file Whether list is consistent with the file of transmission in the described first migration record;In the storage file list and the described first migration When the file of transmission in record is consistent, the non-transmission list determining module 104 is called.
Optionally, in one embodiment, above-mentioned migration record correction verification module 110 is additionally operable in the storage file list When inconsistent with the file of transmission in the described first migration record, judge the storage file list with the described second migration note Whether the file of transmission in record is consistent, the transmission file in described storage file list with the described second migration record When consistent, not transmitting file and row not transmitted described in being added in the listed files is determined according to the described second migration record Table.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include migration record creation module 112, use When first migration that is not stored with local is recorded, the file migrated on source terminal is read simultaneously according to the listed files Store local;Migration record is generated, the migration is recorded arrives this by the file storage on the migration source terminal for recording The Data Migration record on ground, using the migration record as the first migration record storage to locally.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus are also including the second migration record update module 114, for sending the migration record as the second migration record to the migration source terminal;Monitoring the migration record is No generation update event, when the update event of the migration record is monitored, using the migration record after renewal as after updating The second migration record send to the migration source terminal, the migration source terminal is according to the second migration after the renewal for receiving Record is updated to the described second migration record.
After employing above-mentioned data migration method and device, migrate in target and enter line number between terminal and migration source terminal According to during migration, the Data Migration situation between two terminals is recorded with migration record, and after Data Migration is interrupted And when initiating Data Migration again, the file for having transmitted determined according to original migration record and is not also transmitted File, so as to continue original Data Migration.That is, even if Data Migration is aborted during Data Migration, under It is secondary the original Data Migration not completed to be continued according to migration record, increased the flexible operation in data migration process Property, and avoid during Data Migration because Data Migration is aborted the not enough defect of the data integrity for causing, Improve the integrity of migrating data.
In one embodiment, as shown in figure 3, Fig. 3 illustrate a kind of above-mentioned data migration method of operation based on Feng Nuo According to the terminal of the computer system of graceful system.The computer system can be smart mobile phone, panel computer, palm PC, notes The terminal unit such as this computer or PC.Specifically, it may include by the outer input interface 1001 of system bus connection, place Reason device 1002, memorizer 1003 and output interface 1004.Wherein, outer input interface 1001 optionally at least can be connect including network Mouth 10012.Memorizer 1003 may include external memory 10032 (such as hard disk, CD or floppy disk etc.) and built-in storage 10034. Output interface 1004 can at least include 10042 grade equipment of display screen.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the aforementioned computer system based on von Neumann system, built-in storage is operationally loaded into In 10034, perform during processor 1002 is transferred to after being then compiled as machine code, so that being based on von Neumann system Computer system in form listed files acquisition module 102 in logic, non-transmission list determining module 104, Data Migration The migration record update module 108 of module 106, first, migration record correction verification module 110, migration record creation module 112 and the Two migration record update modules 114.And in above-mentioned data migration method implementation procedure, the parameter of input passes through outside input Interface 1001 is received, and is cached in being transferred to memorizer 1003, is processed, the knot of process in being then input to processor 1002 Fruit data are subsequently processed in being cached in memorizer 1003, or are passed to output interface 1004 and are exported.
Specifically, in the present embodiment, above-mentioned processor 1002 is used to perform following operation:
After migration source terminal is accessed, the listed files on the migration source terminal is obtained;
The first locally stored migration record is obtained, is determined in the listed files not according to the described first migration record Transmission file is simultaneously added to non-transmission list;
File on the migration source terminal is read according to the non-transmission list and stores local;
Update the first migration record.
In an optional embodiment, determined in the listed files according to the migration record in processor 1002 Before not transmitting file and being added to non-transmission list, what processor 1002 was additionally operable to obtain on the migration source terminal second moves Move record;Judge whether the first migration record is consistent with the described second migration record;If so, then perform described in the basis First migration record determine in the listed files the step of not transmitting file and be added to non-transmission list.
In an optional embodiment, judge the first migration record with the described second migration note in processor 1002 After whether record is consistent, processor 1002 is additionally operable to when the described first migration record records inconsistent with the described second migration, Obtain the storage file list of locally stored file;Judge that the storage file list is migrated in record with described first Whether transmission file is consistent;When the storage file list is consistent with the file of transmission in the described first migration record, hold Row is described to determine not transmitting file and being added to non-transmission list in the listed files according to the described first migration record Step.
In an optional embodiment, judge the storage file list with the described first migration note in processor 1002 After whether the file of transmission in record is consistent, processor 1002 is additionally operable in the storage file list and the described first migration When the file of transmission in record is inconsistent, judge that the storage file list is literary with the transmission in the described second migration record Whether part is consistent, when described storage file list is consistent with the file of transmission in the described second migration record, according to institute State not transmitting file and being added to the non-transmission list in the second migration record determination listed files.
In an optional embodiment, processor 1002 is additionally operable to not to be stored with the first migration in local when recording, File on the migration source terminal is read according to the listed files and stores local;Generate migration record, the migration Record and the file storage on the migration source terminal is recorded to local Data Migration for recording, the migration record is made It is the first migration record storage to locally.
In an optional embodiment, processor 1002 generate migration record after, processor 1002 be additionally operable to by The migration record is sent to the migration source terminal as the second migration record;Whether the monitoring migration record occurs to update Event, when the update event of the migration record is monitored, using second migration of the migration record after renewal as after updating Record is sent to the migration source terminal, and the migration source terminal is according to the second migration record after the renewal for receiving to described Second migration record is updated.
Above disclosed is only present pre-ferred embodiments, and the right model of the present invention can not be limited certainly with this Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope covered by the present invention.

Claims (12)

1. a kind of data migration method, it is characterised in that include:
After migration source terminal is accessed, the listed files on the migration source terminal is obtained;
The first locally stored migration record is obtained, not transmitting in the listed files is determined according to the described first migration record File is simultaneously added to non-transmission list;
File on the migration source terminal is read according to the non-transmission list and stores local;
Update the first migration record.
2. data migration method according to claim 1, it is characterised in that described according to the migration record determines In listed files the step of not transmitting file and be added to non-transmission list before also include:
Obtain the second migration record on the migration source terminal;
Judge whether the first migration record is consistent with the described second migration record;
If so, then perform not transmitting file and being added in the listed files according to the described first migration record determination The step of non-transmission list.
3. data migration method according to claim 1, it is characterised in that the judgement the first migration record and institute Whether state the second migration record also includes after consistent step:
When the described first migration record records inconsistent with the described second migration, the storage file of locally stored file is obtained List;
Judge whether the storage file list is consistent with the file of transmission in the described first migration record;
When the storage file list is consistent with the file of transmission in the described first migration record, perform described in the basis First migration record determine in the listed files the step of not transmitting file and be added to non-transmission list.
4. data migration method according to claim 3, it is characterised in that the judgement storage file list and institute State the first migration record in transmit the whether consistent step of file after also include:
When the file of transmission in the storage file list with the described first migration record is inconsistent, the storage text is judged Whether part list is consistent with the file of transmission in the described second migration record, in described storage file list and described second When the file of transmission in migration record is consistent, is determined according to the described second migration record and do not transmit text in the listed files Part is simultaneously added to the non-transmission list.
5. according to the arbitrary described data migration method of claim 2 to 4, it is characterised in that methods described also includes:
When first migration that is not stored with local is recorded, the file on the migration source terminal is read according to the listed files And store local;
Migration record is generated, the migration is recorded arrives local data by the file storage on the migration source terminal for recording Record is migrated, using the migration record as the first migration record storage to locally.
6. data migration method according to claim 5, it is characterised in that also include after the generation migration record:
Send the migration record as the second migration record to the migration source terminal;
Whether the monitoring migration record there is update event, when the update event of the migration record is monitored, will update , as the second migration record transmission after updating to the migration source terminal, the migration source terminal is according to connecing for migration record afterwards The second migration record after the renewal for receiving is updated to the described second migration record.
7. a kind of data migration device, it is characterised in that include:
Listed files acquisition module, for after migration source terminal is accessed, obtaining the listed files on the migration source terminal;
Non- transmission list determining module, it is for obtaining the first locally stored migration record, true according to the described first migration record Not not transmitting file and being added to non-transmission list in the fixed listed files;
Data Migration module, reads the file on the migration source terminal for the non-transmission list according to and stores this Ground;
First migration record update module, for updating the first migration record.
8. data migration device according to claim 7, it is characterised in that described device also includes migration record calibration mode Block, for obtaining the second migration record on the migration source terminal;Judge the first migration record and the described second migration Whether record is consistent;When the described first migration record records consistent with the described second migration, call the non-transmission list true Cover half block.
9. data migration device according to claim 7, it is characterised in that the migration record correction verification module is additionally operable to When the first migration record records inconsistent with the described second migration, the storage file list of locally stored file is obtained; Judge whether the storage file list is consistent with the file of transmission in the described first migration record;Arrange in the storage file When table is consistent with the file of transmission in the described first migration record, the non-transmission list determining module is called.
10. data migration device according to claim 9, it is characterised in that the migration record correction verification module is additionally operable to When the file of transmission in the storage file list with the described first migration record is inconsistent, the storage file row are judged Whether table is consistent with the file of transmission in the described second migration record, in described storage file list and the described second migration When the file of transmission in record is consistent, is determined according to the described second migration record and do not transmit file simultaneously in the listed files It is added to the non-transmission list.
11. according to the arbitrary described data migration device of claim 8 to 10, it is characterised in that described device also includes migration Record creation module, when recording for first migration that is not stored with local, reads the migration according to the listed files File storage on source terminal is to locally;Migration record is generated, the migration is recorded for recording the migration source terminal On file storage record to local Data Migration, using the migration record as the first migration record storage to locally.
12. data migration devices according to claim 11, it is characterised in that described device is also including the second migration record Update module, for sending the migration record as the second migration record to the migration source terminal;Monitor the migration Record whether there is update event, monitor it is described migration record update event when, using after renewal migration record as The second migration record after renewal is sent to the migration source terminal, the migration source terminal according to the renewal for receiving after the Two migration records are updated to the described second migration record.
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 true CN106547485A (en) 2017-03-29
CN106547485B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517269A (en) * 2017-09-07 2017-12-26 深圳市酷开网络科技有限公司 The caching method and system of remote synchronization pushing files based on VR equipment
CN116048848A (en) * 2022-05-16 2023-05-02 荣耀终端有限公司 Data transmission method and device and electronic equipment

Citations (7)

* 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
CN101610225A (en) * 2008-06-20 2009-12-23 华为技术有限公司 A kind of synchronization processing method, system and device
CN101656652A (en) * 2008-08-21 2010-02-24 中国移动通信集团公司 Content synchronization method, equipment and system for dynamic content delivery
CN102495906A (en) * 2011-12-23 2012-06-13 天津神舟通用数据技术有限公司 Incremental data migration method capable of realizing breakpoint transmission
CN102594874A (en) * 2008-06-20 2012-07-18 华为技术有限公司 Synchronization processing method and device
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

Patent Citations (7)

* 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
CN101610225A (en) * 2008-06-20 2009-12-23 华为技术有限公司 A kind of synchronization processing method, system and device
CN102594874A (en) * 2008-06-20 2012-07-18 华为技术有限公司 Synchronization processing method and device
CN101656652A (en) * 2008-08-21 2010-02-24 中国移动通信集团公司 Content synchronization method, equipment and system for dynamic content delivery
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517269A (en) * 2017-09-07 2017-12-26 深圳市酷开网络科技有限公司 The caching method and system of remote synchronization pushing files based on VR equipment
CN107517269B (en) * 2017-09-07 2020-09-08 深圳市酷开网络科技有限公司 Remote synchronous push file caching method and system based on VR equipment
CN116048848A (en) * 2022-05-16 2023-05-02 荣耀终端有限公司 Data transmission method and device and electronic equipment

Also Published As

Publication number Publication date
CN106547485B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN106445663A (en) Application data migration method and device
CN102752294B (en) Method and system for synchronizing data of multiple terminals on basis of equipment capacity
CN104283926A (en) Data synchronization method, device and server
CN106547486A (en) A kind of data migration method and device
CN112035298A (en) Data backup method and device, electronic equipment and storage medium
CN106569913A (en) Method and device for backing up data by terminal
CN104506462A (en) MAC (Media Access Control) address management method and equipment in distributed switch
CN103631622A (en) Software online upgrade repairing method
CN103458004A (en) Internet of things-based device subscription information changing method and equipment
CN103986779A (en) Application data transmission method, device and terminal equipment
CN104517067A (en) Method, device and system for data access
CN106527979B (en) Data migration method and device
CN106547485A (en) Data migration method and device
CN103559198A (en) Data synchronizing method and equipment
CN101188512B (en) Network system
CN112600703B (en) Network equipment remote access fault positioning method and device
CN106446114A (en) Data migration method and device
CN107741965B (en) Database synchronous processing method and device, computing equipment and computer storage medium
CN110046000A (en) Small routine operation method and device
CN106775445A (en) Data migration method and device
JP2019512984A (en) Method, apparatus and system for checking change of telephone number
CN107155167A (en) Mobile terminal and its Bluetooth pairing name class processing method and storage device
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN104022923A (en) Network interface device and system as well as network data accessing method
CN107729032A (en) Boot animation update method, intelligent terminal and can storage 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
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.

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

Granted publication date: 20200908