Manual:RebuildImages.php

MediaWiki version:
1.4
Category:MediaWiki code#RebuildImages.php

Details

rebuildImages.php file is a maintenance script to update metadata records for images that were manually uploaded to the wiki, for example via SFTP.

Options

Option Description Required
--missing Only updates metadata records for images if no records currently exist in the database.Optional
--dry-run Only reports results and does not update the database with metadata records.Optional

Usage

php maintenance/run.php rebuildImages [ --missing| --dry-run ]
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