Manual:SyncFileBackend.php

Category:MediaWiki code#SyncFileBackend.php

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
--srcName of backend to sync fromRequired
--dstName of destination backend to syncRequired
--startStarting journal IDOptional0
--endEnding journal IDOptionalINF (infinite)
--posdirDirectory to read/record journal positionsOptional
--posdumpJust dump current journal position into the position dir.Optional
--postimeFor position dumps, get the ID at this timeOptional
--backoffStop at entries younger than this age (sec)Optional0
--verboseVerbose modeOptional

Usage

php maintenance/run.php syncFileBackend --src sourceBackend --dst destinationBackend [ --start|  --end| --posdir| --posdump| --postime| --backoff| --verbose ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts Category:File maintenance scripts
Category:File maintenance scripts Category:Maintenance scripts Category:MediaWiki code