A kind of method, apparatus, equipment and the storage medium of inter-system data migration

文档序号:1755020 发布日期:2019-11-29 浏览:2次 中文

阅读说明:本技术 一种系统间数据迁移的方法、装置、设备及存储介质 (A kind of method, apparatus, equipment and the storage medium of inter-system data migration ) 是由 邢云阳 于 2019-08-09 设计创作,主要内容包括:本发明公开了一种系统间数据迁移的方法、装置、设备及计算机可读存储介质,应用于云端,包括:当接收到用户下发的备份第一系统中目标卷的数据的指令时,获取第一系统上传的所述目标卷的数据,生成与所述目标卷对应的元数据;当接收到所述用户下发的将所述目标卷的数据迁移至第二系统的指令时,接收第二系统发送的第二系统ID,并将所述元数据中系统ID由第一系统ID更新为所述第二系统ID;获取系统ID为所述第二系统ID的元数据,以便所述第二系统通过所述元数据下载所述目标卷的数据。本发明所提供的方法、装置、设备及计算机可读存储介质,结合云备份实现卷数据迁移的同时,实现卷数据的备份,提高了数据迁移的效率,增加了易用性。(The invention discloses method, apparatus, equipment and the computer readable storage mediums of a kind of migration of inter-system data, applied to cloud, it include: when receiving the instruction of the data of target volume in the backup the first system that user issues, the data for the target volume that the first system uploads are obtained, metadata corresponding with the target volume is generated;When receiving the instruction of the Data Migration by the target volume that the user issues to second system, the second system ID that second system is sent is received, and system identifier in the metadata is updated to the second system ID by the first system ID;The metadata that system identifier is the second system ID is obtained, so that the second system downloads by the metadata data of the target volume.Method, apparatus, equipment and computer readable storage medium provided by the present invention back up in conjunction with cloud and realize that the backup of realization volume data improves the efficiency of Data Migration, increases ease for use while rolling up Data Migration.)

1. a kind of method of inter-system data migration, which is characterized in that be applied to cloud, comprising:

When receiving the instruction of the data of target volume in the backup the first system that user issues, obtains the first system and upload The target volume data, and generate corresponding with target volume metadata;

When receiving the instruction of the Data Migration by the target volume that the user issues to second system, described the is received The second system ID that two system is sent, and system identifier in the metadata is updated to the second system by the first system ID ID;

The metadata that system identifier is the second system ID is obtained, so that the second system passes through described in metadata downloading The data of target volume.

2. the method as described in claim 1, which is characterized in that described to receive mesh in the backup the first system that user issues When marking the instruction of the data of volume, the data for the target volume that the first system uploads are obtained, and generate and the target volume Corresponding metadata includes:

When receiving T1In the backup the first system that moment user issues when the instruction of the data of target volume, first system is obtained The data for the target volume uploaded of uniting, and generate metadata corresponding with the target volume;

Wherein, the metadata includes the file label and volume ID, the backup serial number of the target volume of the first system ID, the target volume With BACKUP TIME T1

3. the method as described in right 2, which is characterized in that described to receive the number by the target volume that the user issues According to migrating to the second system ID for when instruction of second system, receiving the second system and sending, and will be in the metadata Before system ID is updated to the second system ID by the first system ID further include:

When receiving the user T2When the instruction for the execution incremental snapshot that the moment issues, the T is obtained1Moment is to the T2When When carving the incremental data in the interior target volume, and recording the backup serial number of the incremental data with backup in the metadata Between T2

4. method as claimed in claim 3, which is characterized in that described to obtain first number that system identifier is the second system ID According to so that the second system includes: by the data that the metadata downloads the target volume

The communication connection with the second system is established, the metadata that system identifier is the second system ID is obtained, so as to described Second system instructs selection to download the corresponding data of target backup serial number in the metadata according to the Data Migration of the user.

5. the method as described in claim 1, which is characterized in that described to receive mesh in the backup the first system that user issues When marking the instruction of the data of volume, the data for the target volume that the first system uploads are obtained, and generate and the target volume Corresponding metadata includes:

When receiving the request of file destination in target volume in the backup the first system that user issues, the file destination is obtained Full dose data in shared data block, and generate metadata corresponding with the target volume.

6. a kind of device of inter-system data migration, which is characterized in that be applied to cloud, comprising:

Generation module, for obtaining institute when receiving the instruction of the data of target volume in the backup the first system that user issues The data of the target volume of the first system upload are stated, and generate metadata corresponding with the target volume;

Update module, for when receiving the instruction of the Data Migration by the target volume that the user issues to second system When, the second system ID that the second system is sent is received, and system identifier in the metadata is updated to by the first system ID The second system ID;

Download module, for obtaining the metadata that system identifier is the second system ID, so that the second system is described in Metadata downloads the data of the target volume.

7. device as claimed in claim 6, which is characterized in that the generation module is specifically used for:

When receiving T1In the backup the first system that moment user issues when the instruction of the data of target volume, first system is obtained The data for the target volume uploaded of uniting, and generate metadata corresponding with the target volume;

Wherein, the metadata includes the file label and volume ID, the backup serial number of the target volume of the first system ID, the target volume With BACKUP TIME T1

8. device as claimed in claim 7, which is characterized in that before the update module further include:

Incremental backup module receives the user T for working as2When the instruction for the execution incremental snapshot that the moment issues, described in acquisition T1Moment is to the T2Incremental data in moment in the target volume, and the incremental data is recorded in the metadata Backup serial number and BACKUP TIME T2

9. a kind of equipment of inter-system data migration characterized by comprising

Memory, for storing computer program;

Processor realizes a kind of inter-system data as described in any one of claim 1 to 5 when for executing the computer program The step of method of migration.

10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that a kind of inter-system data as described in any one of claim 1 to 5 moves when the computer program is executed by processor The step of method of shifting.

Technical field

The present invention relates to technical field of data storage, the method, apparatus migrated more particularly to a kind of inter-system data is set Standby and computer readable storage medium.

Background technique

In field of storage, data protection, it is the most important thing that calamity is standby.Usual data guard method is by one in the prior art Total data in a storage system back up and all migrate to another system.By the total data in a system It migrates into another system that time-consuming and there are the data for not needing migration, reduce the effect of inter-system data migration Rate.

In summary as can be seen that the efficiency for how improving inter-system data migration is current problem to be solved.

Summary of the invention

The object of the present invention is to provide a kind of method, apparatus of inter-system data migration, equipment and computer-readable deposit Storage media, to solve the problems, such as that inter-system data transport efficiency is low in the prior art.

In order to solve the above technical problems, the present invention provides a kind of method of inter-system data migration, it is applied to cloud, packet It includes: when receiving the instruction of the data of target volume in the backup the first system that user issues, obtaining the first system and upload The target volume data, and generate corresponding with target volume metadata;When receiving that the user issues for institute When stating the instruction of the Data Migration of target volume to second system, the second system ID that the second system is sent is received, and by institute It states in metadata system identifier and the second system ID is updated to by the first system ID;Obtaining system identifier is the second system ID's Metadata, so that the second system downloads by the metadata data of the target volume.

Preferably, described when receiving the instruction of the data of target volume in the backup the first system that user issues, it obtains The data for the target volume that the first system uploads, and generate metadata corresponding with the target volume and include:

When receiving T1In the backup the first system that moment user issues when the instruction of the data of target volume, described the is obtained The data for the target volume that one system uploads, and generate metadata corresponding with the target volume;Wherein, the metadata packet Include the first system ID, the file label of the target volume and volume ID, the backup serial number of the target volume and BACKUP TIME T1

Preferably, described when receiving the finger of the Data Migration by the target volume that the user issues to second system When enabling, the second system ID that the second system is sent is received, and system identifier in the metadata is updated by the first system ID Before the second system ID further include:

When receiving the user T2When the instruction for the execution incremental snapshot that the moment issues, the T is obtained1Moment is to described T2Incremental data in moment in the target volume, and record in the metadata backup serial number of the incremental data with it is standby Part time T2

Preferably, described to obtain the metadata that system identifier is the second system ID, so that the second system passes through institute It states metadata and downloads the data of the target volume and include:

The communication connection with the second system is established, the metadata that system identifier is the second system ID is obtained, so as to The second system instructs target backup serial number in the selection downloading metadata corresponding according to the Data Migration of the user Data.

Preferably, described when receiving the instruction of the data of target volume in the backup the first system that user issues, it obtains The data for the target volume that the first system uploads, and generate metadata corresponding with the target volume and include:

When receiving the request of file destination in target volume in the backup the first system that user issues, the target is obtained Full dose data in data block shared by file, and generate metadata corresponding with the target volume.

The present invention also provides a kind of devices of inter-system data migration, are applied to cloud, comprising:

Generation module, for obtaining when receiving the instruction of the data of target volume in the backup the first system that user issues The data for the target volume for taking the first system to upload, and generate metadata corresponding with the target volume;

Update module, for when receiving the Data Migration by the target volume that the user issues to second system When instruction, receive the second system ID that the second system is sent, and by system identifier in the metadata by the first system ID more It is newly the second system ID;

Download module, for obtaining the metadata that system identifier is the second system ID, so that the second system passes through The metadata downloads the data of the target volume.

Preferably, the generation module is specifically used for:

When receiving T1In the backup the first system that moment user issues when the instruction of the data of target volume, described the is obtained The data for the target volume that one system uploads, and generate metadata corresponding with the target volume;

Wherein, the metadata includes the backup of the first system ID, the file label of the target volume and volume ID, the target volume Serial number and BACKUP TIME T1

Preferably, before the update module further include:

Incremental backup module receives the user T for working as2When the instruction for the execution incremental snapshot that the moment issues, obtain Take the T1Moment is to the T2Incremental data in moment in the target volume, and the increment is recorded in the metadata The backup serial number and BACKUP TIME T of data2

The present invention also provides a kind of equipment of inter-system data migration, comprising:

Memory, for storing computer program;Processor realizes above-mentioned one kind when for executing the computer program The step of method of inter-system data migration.

The present invention also provides a kind of computer readable storage medium, meter is stored on the computer readable storage medium The step of calculation machine program, the computer program realizes a kind of method of above-mentioned inter-system data migration when being executed by processor.

The method of inter-system data migration provided by the present invention, using cloud redundancy technique, by the first system and the second system System is established with cloud communicate to connect respectively.It please be ask when user issues to what the data of target volume in the first system were backed up When asking, the cloud obtains the data for the target volume that the first system uploads, and generates corresponding with the target volume Metadata.When user issues the request by the Data Migration of the target volume to the second system, the cloud receives the Two system ID, and the system identifier in the metadata is updated to the second system ID by the first system ID.In the cloud After establishing communication connection with the second system, system identifier is obtained to the metadata of the second system ID, in order to described the Two system downloads the data of the target volume to local by the metadata.Method provided by the present invention, is transmitted using cloud As medium, that is, the backup of data is realized, can also realize the migration of data.This it is bright by volume as unit of in storage system Data backed up and migrated, migration is to need the data that migrate to back up and migrate user, rather than will deposit every time Total data in storage system is migrated to another storage system, user-friendly, is increased ease for use, is improved data The efficiency of migration.

Detailed description of the invention

It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.

Fig. 1 is the flow chart of the first specific embodiment of the method for inter-system data provided by the present invention migration;

Fig. 2 is the flow chart of second of specific embodiment of the method for inter-system data provided by the present invention migration;

Fig. 3 is the process schematic that the data of volume 1 in system A are carried out with full backup;

Fig. 4 is to T1Moment is to T2Incremental data between moment in volume 1 carries out the process schematic of incremental backup;

Fig. 5 is the process schematic that will roll up the Data Migration in 1 to system B;

Fig. 6 is a kind of structural block diagram of the device of inter-system data migration provided in an embodiment of the present invention.

Specific embodiment

Core of the invention is to provide a kind of inter-system data moving method, device, equipment and computer-readable storage Medium has carried out the backup of volume data while realizing volume Data Migration, improve the inter-system data that the present invention is improved The ease for use of moving method is with the efficiency of Data Migration.

In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.

Referring to FIG. 1, Fig. 1 is the first specific embodiment of the method for inter-system data provided by the present invention migration Flow chart.Method provided by the present embodiment is applied to cloud, specific steps are as follows:

Step S101: when receiving the instruction of the data of target volume in the backup the first system that user issues, institute is obtained The data of the target volume of the first system upload are stated, and generate metadata corresponding with the target volume;

In the present embodiment, it can be needed according to user, full dose is carried out to the data in the target volume of the first system Backup, can also back up all data blocks shared by the file destination in the target volume.

The cloud receives the data for the target volume that the first system uploads, and generates and the target volume pair The metadata answered, the file label and volume ID, the backup sequence of current backup of metadata record the first system ID, the target volume Number and BACKUP TIME.

Step S102: when receiving the instruction of the Data Migration by the target volume that the user issues to second system When, the second system ID that the second system is sent is received, and system identifier in the metadata is updated to by the first system ID The second system ID;

Step S103: obtaining the metadata that system identifier is the second system ID, so that the second system is described in Metadata downloads the data of the target volume.

Method provided by the present embodiment realizes the migration of data between storage system using cloud storage as medium, and It can also realize the backup of inter-system data.The method migrated using inter-system data provided by the present embodiment, storage system Can be as unit of volume, orientation goes migrating data, rather than the upper all data of storage are all migrated every time, facilitates use Family uses, and increases ease for use, improves the efficiency of inter-system data migration.

It based on the above embodiment, in the present embodiment, can also be according to user before the instruction for receiving user's migrating data The instruction of the execution incremental snapshot issued, in the target volume in the BACKUP TIME to current time end of the data of target volume Incremental data carries out an incremental backup.

Referring to FIG. 2, Fig. 2 is second of specific embodiment of the method for inter-system data provided by the present invention migration Flow chart.Method provided by the present embodiment is applied to cloud, specific steps are as follows:

Step S201: when receiving T1In the backup the first system that moment user issues when the instruction of the data of target volume, The data for the target volume that the first system uploads are obtained, and generate metadata corresponding with the target volume;Wherein, institute Stating metadata includes the first system ID, the file label of the target volume and volume ID, the backup serial number of the target volume and BACKUP TIME T1

In the present embodiment, it is solved in conjunction with the method that specific example migrates inter-system data provided by the present embodiment Release explanation.As shown in figure 3, system A is the first system in figure, the file label of the target volume is volume 1, the ID of the target volume It is 6000028247846396, four data blocks is stored in the target volume.

When receiving the full backup request of user's transmission, the cloud receives the volume 1 that the system A is uploaded Data, to realize the full backup operation of the data in the volume 1.After data in the volume 1 upload, the cloud There are the data in the volume 1 in end, and produce metadata, the metadata record system identifier, file label, volume ID, Backup serial number and BACKUP TIME, backup serial number are which time backup to the volume 1.

Step S202: when receiving the user T2When the instruction for the execution incremental snapshot that the moment issues, the T is obtained1When It carves to the T2Incremental data in moment in the target volume, and record in the metadata backup of the incremental data Serial number and BACKUP TIME T2

Before migrating to the data in the volume 1, user, which can choose, executes an incremental snapshot, in the T1 Moment is to the T2Between moment, there are when data variation in the volume 1, then only the data changed need to be uploaded to the cloud It holds, and records the backup serial number and BACKUP TIME of the volume 1 in the metadata;And the institute being had backed up in the cloud The data in volume 1 are stated not repeat to upload.If in the T1Moment is to the T2Between moment, data in the volume 1 and be hair Variation is sent, then the cloud receives one by the system A empty file uploaded and metadata.As shown in figure 4, described at this time Cloud is an empty folder, and system identifier is that system B is updated to by system A in metadata, and the system B is second system.

Step S203: the second system ID that second system is sent is received, and by system identifier in the metadata by the first system System ID is updated to the second system ID;

Step S204: when receiving the user T3The Data Migration by the target volume that moment issues is to described second When the instruction of system, the communication connection with the second system is established, obtains the metadata that system identifier is the second system ID, So that the second system instructs selection to download target backup serial number pair in the metadata according to the Data Migration of the user The data answered.

As shown in figure 5, T3Cloud described in moment and the system B, which are established, to be communicated to connect, and getting system identifier is system B's Metadata, at this time by metadata, this backup information twice of the available volume 1 of system B, user can choose downloading the The data of one secondary volume or the data for downloading the second secondary volume, user also can choose the corresponding data of the multiple backup serial numbers of downloading, from And realize the migration operation of volume data between system.

The mode that incremental snapshot metadata has been used in the present embodiment, by the system A and system B beyond the clouds on Connection is established, facilitates user that can manage the Backup Data of reel each time, further increases ease for use.

To sum up, the method for the migration of inter-system data provided by the embodiment of the present invention, using cloud redundancy technique, by the first system System establishes connection with cloud server, and the cloud server uses metadata record the first system ID, and by first system The volume data of system and the metadata of management volume are completely uploaded in the cloud server.Wherein, the metadata for managing volume is For the catalogue of index volume data, the metadata includes the number, every of the exclusive identification code of system identifier, file label and volume, backup Secondary BACKUP TIME and each time index of data.When user need will volume Data Migration to second system when, volume can be held Incremental backup of row, the data changed in duplicate volume to the cloud server, and the system identifier of this incremental backup is filled out Write second system ID.The cloud server and the second system, which are established, later communicates to connect, and passes through management volume just The second system ID saved in metadata, the available complete metadata information to incremental backup of the second system, And can be locally downloading by the data entirely rolled up according to metadata information, realize the migration of volume data.

Referring to FIG. 6, Fig. 6 is a kind of structural block diagram of the device of inter-system data migration provided in an embodiment of the present invention; Specific device may include:

Generation module 100, for when receiving the instruction of the data of target volume in the backup the first system that user issues, The data for the target volume that the first system uploads are obtained, and generate metadata corresponding with the target volume;

Update module 200, for when receiving the Data Migration by the target volume that the user issues to the second system When the instruction of system, the second system ID that the second system is sent is received, and by system identifier in the metadata by the first system ID is updated to the second system ID;

Download module 300, for obtaining the metadata that system identifier is the second system ID, so that the second system is logical Cross the data that the metadata downloads the target volume.

The method that the device of the inter-system data migration of the present embodiment migrates for realizing inter-system data above-mentioned, therefore The embodiment of the method for the visible inter-system data migration hereinbefore of specific embodiment in the device of inter-system data migration Part, for example, generation module 100, update module 200, download module 300, are respectively used to Data Migration between realization above system Method in step S101, S102 and S103, so, specific embodiment is referred to corresponding various pieces embodiment Description, details are not described herein.

The specific embodiment of the invention additionally provides a kind of equipment of inter-system data migration, comprising: memory, for storing Computer program;Processor realizes a kind of method of above-mentioned inter-system data migration when for executing the computer program Step.

The specific embodiment of the invention additionally provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, the computer program realizes a kind of side of above-mentioned inter-system data migration when being executed by processor The step of method.

Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.

Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.

Above to method, apparatus, equipment and the computer-readable storage of inter-system data provided by the present invention migration Medium is described in detail.It is used herein that a specific example illustrates the principle and implementation of the invention, with The explanation of upper embodiment is merely used to help understand method and its core concept of the invention.It should be pointed out that being led for this technology For the those of ordinary skill in domain, without departing from the principle of the present invention, can also to the present invention carry out it is several improvement and Modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种固态硬盘及计算机设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类