简体   繁体   中英

Is it possible to run aws s3 sync with boto3?

AWS CLI provides aws s3 sync command to sync data between 2 locations.

Is there an equivalent command in boto3 ?

I can't find this kind of command in boto3 documentation .

Boto3 does not include s3 sync capabilities. That is only available via the AWS CLI tool.

Interestingly, there's an open issue at boto's github that dates back to... 2015.

I guess your best bet is to run the aws s3 sync from within a Python script.

Here's a sample implementation .

Alternatively, you might want to explore the DataSync client .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM