$value) { if (!empty($index) && $key<$index) { continue; } echo "{$key}/{$total} Start move {$value} onlyExtension={$onlyExtension}" . PHP_EOL; $startF = microtime(true); $response = CDNStorage::put($value, 4, $onlyExtension); if (empty($response)) { echo "{$key}/{$total} ERROR " . PHP_EOL; } else { $endF = microtime(true) - $startF; $ETA = ($total - $key + 1) * $endF; $ps = humanFileSize($response['totalBytesTransferred'] / ($endF)); echo "{$key}/{$total} Moved done {$value} filesCopied={$response['filesCopied']} totalBytesTransferred=" . humanFileSize($response['totalBytesTransferred']) . " in " . secondsToDuration($endF) . " ETA: " . secondsToDuration($ETA) . " " . $ps . 'ps' . PHP_EOL; } } echo "SiteIdNotEmpty = $countSiteIdNotEmpty; StatusNotActive=$countStatusNotActive; Moved=$countMoved;" . PHP_EOL; echo PHP_EOL . " Done! " . PHP_EOL; die();