[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/ -> copyFileBackend.php (summary)

Copy all files in some containers of one backend to another. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 382 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 maintenance/Maintenance.php

Defines 1 class

CopyFileBackend:: (6 methods):
  __construct()
  execute()
  getListingDiffRel()
  copyFileBatch()
  delFileBatch()
  filesAreSame()


Class: CopyFileBackend  - X-Ref

Copy all files in one container of one backend to another.

This can also be used to re-shard the files for one backend using the
config of second backend. The second backend should have the same config
as the first, except for it having a different name and different sharding
configuration. The backend should be made read-only while this runs.
After this script finishes, the old files in the containers can be deleted.

__construct()   X-Ref
No description

execute()   X-Ref
No description

getListingDiffRel( FileBackend $src, FileBackend $dst, $backendRel )   X-Ref

param: FileBackend $src
param: FileBackend $dst
param: string $backendRel
return: array (rel paths in $src minus those in $dst)

copyFileBatch(array $srcPathsRel, $backendRel, FileBackend $src, FileBackend $dst)   X-Ref

param: array $srcPathsRel
param: string $backendRel
param: FileBackend $src
param: FileBackend $dst
return: void

delFileBatch(array $dstPathsRel, $backendRel, FileBackend $dst)   X-Ref

param: array $dstPathsRel
param: string $backendRel
param: FileBackend $dst
return: void

filesAreSame( FileBackend $src, FileBackend $dst, $sPath, $dPath )   X-Ref

param: FileBackend $src
param: FileBackend $dst
param: string $sPath
param: string $dPath
return: bool



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1