Manual:MigrateFileRepoLayout.php/pl

Category:MediaWiki code/pl#MigrateFileRepoLayout.php

Details

migrateFileRepoLayout.php is a maintenance script that copies all files in FileRepo to a new layout using SHA1 paths.

Options

Option Description Required
--oldlayoutOld layout; one of 'name' or 'sha1'Wymagane
--newlayoutNew layout; one of 'name' or 'sha1'Wymagane
--sinceCopy only files from after this timestampOptional

This script runs in batches of 50.

Usage

php maintenance/run.php migrateFileRepoLayout --oldlayout name|sha1 --newlayout  name|sha1 [ --since ]
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.

Common error

Invalid old layout.

The value for parameter --oldlayout must be either name or sha1.

Invalid new layout.

The value for parameter --newlayout must be either name or sha1.

Zobacz też

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