Manual:syncFileBackend.php
From Linux Web Expert
MediaWiki file: syncFileBackend.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | SyncFileBackend |
Details
syncFileBackend.php file is a maintenance script that syncs one file backend to another based on the journal of later.
Options/Arguments
Option | Description | Required | Default value |
---|---|---|---|
--src | Name of backend to sync from | <translate> Required</translate> | |
--dst | Name of destination backend to sync | <translate> Required</translate> | |
--start | Starting journal ID | <translate> Optional</translate> | 0 |
--end | Ending journal ID | <translate> Optional</translate> | INF (infinite) |
--posdir | Directory to read/record journal positions | <translate> Optional</translate> | |
--posdump | Just dump current journal position into the position dir. | <translate> Optional</translate> | |
--postime | For position dumps, get the ID at this time | <translate> Optional</translate> | |
--backoff | Stop at entries younger than this age (sec) | <translate> Optional</translate> | 0 |
--verbose | Verbose mode | <translate> Optional</translate> |
Usage
php 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.