I am learning AWS. I have a task to move the whole folder form EC2 to S3. is it possible and how? Need some advice on it. I am able to move single file only.
I think I found an answer
<?php
require("app/start.php");
$s3->uploadDirectory('app', 'cbtest', '', array(
'params' => array('ACL' => 'public-read'),
'concurrency' => 20,
'debug' => true
));
?>
It is transferring whole app directory with subdirectory into S3 from EC2.