You would do it like any other copy function. It does not matter if it is 10 files or 25,000,000. The only difference is the time it will take.
But 25 million files on top of the OS files ?? Depending on what kind of data are you keeping and how often you update it you may want to look a a cloud storage solution.