Manual:MigrateFileRepoLayout.php/ja

Category:MediaWiki code/ja#MigrateFileRepoLayout.php

詳細

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

オプション

オプション 説明 必須かどうか
--oldlayoutOld layout; one of 'name' or 'sha1'必須
--newlayoutNew layout; one of 'name' or 'sha1'必須
--sinceCopy only files from after this timestamp省略可能

This script runs in batches of 50.

使用法

php maintenance/run.php migrateFileRepoLayout --oldlayout name|sha1 --newlayout  name|sha1 [ --since ]
Terminal
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

よくあるエラー

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.

関連項目

Category:Maintenance scripts/ja Category:File maintenance scripts/ja
Category:File maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja