Manual:MoveToExternal.php/pl
Appearance
| Wersja MediaWiki: | ≥ 1.5 |
| Plik MediaWiki: moveToExternal.php | |
|---|---|
| Lokalizacja: | maintenance/storage/ |
| Kod źródłowy: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Klasy: | Znajdź kod • Znajdź dokumentację |
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 | Wymagane |
| location | Location in external storage | Wymagane |
| -s | Starting ID of revision | Optional |
| -e | Ending ID of revision | Optional |
Usage
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.15 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.