FIELD

Embodiments of the present disclosure relate to a storage system, and more specifically, to a method and device for data migration.

BACKGROUND

At present, client data are generally backed up at a server. The continuous progress of storage technologies enables the storage system to have better performance and larger capacity. Sometimes, it is required to migrate data from an original storage system or storage server to a more advanced storage system or storage server. When the data at the server are being migrated, it usually needs to consider formats and hierarchical structures of data stored in different types of servers, such that the data migration can be carried out smoothly.

SUMMARY

Embodiments of the present disclosure provide a method, apparatus and computer program product for data migration.

In a first aspect of the present disclosure, there is provided a method for data migration. The method comprises: receiving, from a source server, an index having index values corresponding to a plurality of files stored at the source server, respectively; retrieving a location of an index value corresponding to a key information file in the index, the key information file containing overall information for the plurality of files; sorting the index based on the retrieved location; and processing the plurality of files based on the sorted index, such that the sorted index causes the key information file to be processed last.

In a second aspect of the present disclosure, there is provided an electronic device comprising a processor and a memory coupled to the processor and having instructions stored thereon, the instructions, when executed by the processor, causing the electronic device to perform acts comprising: receiving, from a source server, an index having index values corresponding to a plurality of files stored at the source server, respectively; retrieving a location of an index value corresponding to a key information file in the index, the key information file containing overall information for the plurality of files; sorting the index based on the retrieved location; and processing the plurality of files based on the sorted index, such that the sorted index causes the key information file to be processed last.

In a third aspect of the present disclosure, there is provided a computer program product being tangibly stored on a non-transient computer-readable medium and including machine-executable instructions, the machine-executable instructions, when executed, causing a machine to perform the method according to the first aspect of the present disclosure.

The summary is to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description of Embodiments. This summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to be used to limit the scope of the present disclosure.

