Manual:syncFileBackend.php
MediaWiki file: syncFileBackend.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.1 • 1.41.2 • 1.39.8 |
Classes: | SyncFileBackend |
Details
editsyncFileBackend.php file is a maintenance script that syncs one file backend to another based on the journal of later.
Options/Arguments
editOption | Description | Required | Default value |
---|---|---|---|
--src | Name of backend to sync from | Required | |
--dst | Name of destination backend to sync | Required | |
--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 |
Usage
editphp maintenance/syncFileBackend.php --src sourceBackend --dst destinationBackend [ --start| --end| --posdir| --posdump| --postime| --backoff| --verbose ]
Terminal
$ php maintenance/syncFileBackend.php --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.