buildBatchCopy($srcBucket, $keyPairs, $destBucket, true); list($ret, $err) = $bucketManager->batch($ops); if ($err != null) { var_dump($err); } else { var_dump($ret); }