Manual:moveToExternal.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.5
<translate> MediaWiki version:</translate> |
MediaWiki file: moveToExternal.php | |
---|---|
Location: | maintenance/storage/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | Find code • Find documentation |
Details
moveToExternal.php file is a maintenance script to move revision's text to external storage.
You have to set up the $wgExternalStores and $wgExternalServers configuration before running the script. See Manual:External Storage for more details.
Options/Arguments
Option/Argument | Description | Required? |
---|---|---|
type | Type of external storage | <translate> Required</translate> |
location | Location in external storage | <translate> Required</translate> |
-s | Starting ID of revision | <translate> Optional</translate> |
-e | Ending ID of revision | <translate> Optional</translate> |
Usage
php maintenance/storage/moveToExternal.php type location [ -s | -e ]
Terminal
$ php maintenance/storage/moveToExternal.php DB demoCluster Moving text rows from 1 to 675 to external storage oldid=1, moved=1