![]() SrcBucket = s_conn.get_bucket(srcBucketName) S_conn = S3Connection(source_aws_key, source_aws_secret_key) Print 'exists and etag matches: ' + k.key ![]() _key(k.key, srcBucketName, k.key, storage_class=k.storage_class) If not dist_key.exists() or k.etag != dist_key.etag: Self.dstBucket = st_conn.get_bucket(dstBucketName) Self.srcBucket = self.source_conn.get_bucket(srcBucketName) st_conn = S3Connection(dest_aws_key, dest_aws_secret_key) Self.source_conn = S3Connection(source_aws_key, source_aws_secret_key) I have then updated this script to handle copying objects between two different accounts.įrom boto.s3.connection import S3Connection ![]() ![]() Quite a number of way to achieve this but i stumbled on a link which is a python script that copies object between two buckets in the same account. I was faced with the task of copying these files over to my S3 account. The website uses Amazon s3 for storing users’ uploaded photos and document. I have recently taken on ownership of a website and as part of the migration task i’ve had to copy over a few artefacts I will be posting another blog about what i have learnt from this process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |