Příručka:MoveToExternal.php
Verze MediaWiki: | ≥ 1.5 |
Soubor MediaWiki: moveToExternal.php | |
---|---|
Lokalita: | maintenance/storage/ |
Zdrojový kód: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Třídy: | Vyhledat zdrojový kód • Vyhledat dokumentaci |
Podrobnosti
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.
Volby/Parametry
Volby/Parametry | Popis | Povinný? |
---|---|---|
type | Type of external storage | Požadované |
location | Location in external storage | Požadované |
-s | Starting ID of revision | Volitelné |
-e | Ending ID of revision | Volitelné |
Použití
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
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.