Manual:CopyFileBackend.php/de

Category:MediaWiki code/de#CopyFileBackend.php

Details

copyFileBackend.php file is a maintenance script to copy all files in some containers of one backend to another.

Optionen

Option Beschreibung Notwendig
--src Backend mit den QuelldateienNotwendig
--dst Backend, wo die Dateien kopiert werden sollenNotwendig
--containers Pipe separated list of containersNotwendig
--subdir Only do items in this child directoryOptional
--ratefile File to check periodically for batch sizeOptional
--prestat Stat the destination files first (try to use listings)Optional
--skiphash Skip SHA-1 sync checks for filesOptional
--missingonly Only copy files missing from destination listingOptional
--syncviadelete Delete destination files missing from source listingOptional
--utf8only Skip source files that do not have valid UTF-8 namesOptional

Verwendung

php maintenance/run.php copyFileBackend --src sourceBackend --dst destinationBackend --containers containers [ --subdir| --ratefile| --prestat| --skiphash| --missingonly| --syncviadelete| --utf8only ]
Terminal
To give more than one container, give them as separated by pipe (|) like local-public|local-deleted
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äufige Fehler

No backend defined with the name '$name'.

This error occurs when the value of --src or --dst does not exist in Handbuch:$wgFileBackends. Check your --src or --dst parameter.

Siehe auch

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