Manual:migrateFileRepoLayout.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

詳細

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

オプション

オプション 説明 必須かどうか
--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.

使用法

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

よくあるエラー

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.

関連項目