Manual:MigrateFileRepoLayout.php

Details
migrateFileRepoLayout.php is a maintenance script that copies all files in FileRepo to an original container using SHA1 paths.

Options
This script runs in batches of 50.

Common error
The value for parameter --oldlayout should only be either name or sha1.
 * Invalid old layout.

The value for parameter --newlayout should only be either name or sha1.
 * Invalid new layout.