Manual:CopyFileBackend.php/pt-br

Category:MediaWiki code/pt-br#CopyFileBackend.php

Detalhes

O arquivo copyFileBackend.php é um script de manutenção para copiar todos os arquivos em alguns containers de um backend para outros.

Options

Option Description Required
--src Backend containing the source filesRequired
--dst Backend where files should be copied toRequired
--containers Pipe separated list of containersRequired
--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

Usage

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
No MediaWiki versão 1.39.12 e anteriores, você deve invocar os scripts de manutenção usando php maintenance/scriptName.php em vez de php maintenance/run.php scriptName.

Common errors

No backend defined with the name '$name'.

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

See also

Category:Maintenance scripts/pt-br Category:File maintenance scripts/pt-br
Category:File maintenance scripts/pt-br Category:Maintenance scripts/pt-br Category:MediaWiki code/pt-br