First we get all paths on S3+Filenames
s3cmd --recursive ls s3://mys3bucket/ | awk -F' ' '{print $4;}' | sort | uniq > paths.txt
Then we set permissions, in this case we set them to public, adjust for what you need!
cat paths.txt | xargs -P20 -I% s3cmd setacl --acl-public "%"
No comments:
Post a Comment