Manual:moveToExternal.php
Appearance
| MediaWiki バージョン: | ≧ 1.5 |
| MediaWiki ファイル: moveToExternal.php | |
|---|---|
| 場所: | maintenance/storage/ |
| ソース コード: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| クラス: | コードを検索 • 説明文書を検索 |
詳細
moveToExternal.php ファイルは、版のテキストを外部ストレージに移動させるメンテナンス スクリプトです。
You have to set up the $wgExternalStores and $wgExternalServers configuration before running the script. See Manual:External Storage for more details.
オプション/引数
| オプション/引数 | 説明 | 必須かどうか |
|---|---|---|
| type | Type of external storage | 必須 |
| location | Location in external storage | 必須 |
| -s | Starting ID of revision | 省略可能 |
| -e | Ending ID of revision | 省略可能 |
使用法
php maintenance/run.php storage/moveToExternal type location [ -s | -e ]
Terminal
$ php maintenance/run.php storage/moveToExternal DB demoCluster Moving text rows from 1 to 675 to external storage oldid=1, moved=1
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。