MediaWiki file: syncFileBackend.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
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
--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/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.

See also

  • Manual:CopyFileBackend.php
  • Manual:$wgFileBackends
  • FileBackend design considerations
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.