Handbuch:migrateFileRepoLayout.php

This page is a translated version of the page Manual:MigrateFileRepoLayout.php and the translation is 91% complete.

Details

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

Optionen

Option Beschreibung Notwendig
--oldlayout Old layout; one of 'name' or 'sha1' Notwendig
--newlayout New layout; one of 'name' or 'sha1' Notwendig
--since Copy only files from after this timestamp Optional

Dieses Skript läuft in 50er-Stapeln.

Verwendung

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.

Häufiger Fehler

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.

Siehe auch