The invention discloses a
file migration method, which relates to the technical field of computers, and comprises the following steps: obtaining
metadata of a plurality of files in a source file
list of a source end, and constructing a first
file system diagram according to the
metadata; classifying the plurality of files according to the sizes of the plurality of files, and fragmenting the plurality of files according to the classification to obtain a plurality of file fragments; transmitting the plurality of file fragments to a target end in sequence, verifying and repairing the file fragments, and determining that the file fragments are transmitted correctly; in response to completion of file fragment transmission of the plurality of files, constructing a second
file system diagram corresponding to the plurality of files after transmission is completed; and comparing the first
file system diagram with the second file
system diagram, and in response to the fact that the first file
system diagram and the second file
system diagram are the same, completing
file migration, so that the technical problems of resource waste, insufficient real-time performance and weak automatic repair capability are solved, and migration and consistency
verification of
mass files are efficiently processed.