Welcome Guest, Not a member yet? Register   Sign In
how can I initiate this command from CI3 program?
#1

$ aws s3 sync myfolder s3://mybucket/myfolder --exclude *.tmp

This will copy my directory from my PC upto and back to s3. I just will need to carefully name my buckets, IMO. Can I initiate this from my Docker based application?
proof that an old dog can learn new tricks
Reply
#2

like this:
$cmd=sprintf("aws s3 create-bucket --bucket %s --region us-east-1 --create-bucket-configuration LocationConstraint=us-east-1 --debug",$szBucket_name);
$result = shell_exec($cmd);
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB