예제 #1
0
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 * http://www.gnu.org/copyleft/gpl.html
 *
 * @file
 * @ingroup Maintenance ExternalStorage
 */
$optionsWithArgs = RecompressTracked::getOptionsWithArgs();
require __DIR__ . '/../commandLine.inc';
if (count($args) < 1) {
    echo "Usage: php recompressTracked.php [options] <cluster> [... <cluster>...]\nMoves blobs indexed by trackBlobs.php to a specified list of destination clusters, and recompresses them in the process. Restartable.\n\nOptions:\n\t--procs <procs>         Set the number of child processes (default 1)\n\t--copy-only             Copy only, do not update the text table. Restart without this option to complete.\n\t--debug-log <file>      Log debugging data to the specified file\n\t--info-log <file>       Log progress messages to the specified file\n\t--critical-log <file>   Log error messages to the specified file\n";
    exit(1);
}
$job = RecompressTracked::newFromCommandLine($args, $options);
$job->execute();
/**
 * Maintenance script that moves blobs indexed by trackBlobs.php to a specified
 * list of destination clusters, and recompresses them in the process.
 *
 * @ingroup Maintenance ExternalStorage
 */
class RecompressTracked
{