Manual:MigrateFileRepoLayout.php

Details
migrateFileRepoLayout.php is a maintenance script that copies all files in FileRepo to a new layout using SHA1 paths.

Options
This script runs in batches of 50.

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

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