首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个命令行脚本文件上传到Amazon S3

一个命令行脚本文件上传到Amazon S3

资 源 简 介

About A command line Python script to upload a single file to a bucket on Amazon S3 (using the boto library). Command Line Options Options: --version show program s version number and exit -h, --help show this help message and exit -k AWSKEY, --aws_access_key_id=AWSKEY -s AWSSECRET, --aws_secret_access_key=AWSSECRET -f FILENAME, --filename=FILENAME -b BUCKETNAME, --bucketname=BUCKETNAME -n KEYNAME, --keyname=KEYNAME -a ACL, --acl=ACL Example The following command uploads the file ~/backups/latest.tgz to the S3 bucket called "backupbucket" using the name "20090701.tgz". The backup should be private. python s3afe.py -f "~/backups/latest.tgz" -n "20090701.tgz" -b "backupbucket" -a "private" -k "HONIKLQSJREDBCFTAGMP" -s "och4od9cub4byms8iv7nun7fid1had3cyind5of2" In case you set the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, s3afe takes those and th
VIP VIP
0.176780s