Handbuch:syncFileBackend.php
Appearance
| MediaWiki-Datei: syncFileBackend.php | |
|---|---|
| Speicherort: | maintenance/ |
| Quellcode: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| Klassen: | SyncFileBackend |
Details
syncFileBackend.php file is a maintenance script that syncs one file backend to another based on the journal of later.
Optionen/Argumente
| Option | Beschreibung | Notwendig | Standardwert |
|---|---|---|---|
| --src | Name of backend to sync from | Notwendig | |
| --dst | Name of destination backend to sync | Notwendig | |
| --start | Starting journal ID | Optional | 0 |
| --end | Ending journal ID | Optional | INF (infinite) |
| --posdir | Directory to read/record journal positions | Optional | |
| --posdump | Just dump current journal position into the position dir. | Optional | |
| --postime | For position dumps, get the ID at this time | Optional | |
| --backoff | Stop at entries younger than this age (sec) | Optional | 0 |
| --verbose | Verbose mode | Optional |
Verwendung
php maintenance/run.php syncFileBackend --src sourceBackend --dst destinationBackend [ --start| --end| --posdir| --posdump| --postime| --backoff| --verbose ]
Terminal
$ php maintenance/run.php syncFileBackend --src local-backend --dst AmazonS3 Synchronizing backend 'local-backend' to 'AmazonS3'... Starting journal position is 0. Doing id 0 to 49... No journal entries found.
In MediaWiki version MediaWiki 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.