Manual:migrateFileRepoLayout.php

From Linux Web Expert

Revision as of 23:17, 2 April 2022 by imported>Shirayuki (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Details

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

Options

Option Description Required
--oldlayout Old layout; one of 'name' or 'sha1' <translate> Required</translate>
--newlayout New layout; one of 'name' or 'sha1' <translate> Required</translate>
--since Copy only files from after this timestamp <translate> Optional</translate>

This script runs in batches of 50.

Usage

 php maintenance/migrateFileRepoLayout.php --oldlayout name|sha1 --newlayout  name|sha1 [ --since ]
Terminal

Common error

Invalid old layout.

The value for parameter --oldlayout must be either name or sha1.

Invalid new layout.

The value for parameter --newlayout must be either name or sha1.

See also