Aws Client 同步公共S3文件

系统:ubuntu20.04

下载依赖

sudo apt-get update

sudo apt install awscli -y

配置账户:

aws configure list 查看是否有账户配置 

配置基础知识 - AWS Command Line Interface配置 AWS Command Line Interface (AWS CLI) 并指定用于与 AWS 交互的设置。https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-creds-create

下载

aws s3 cp --request-payer=requester  "s3://public-blockchain-snapshots/bsc/"  /data

查看目录 

aws s3 ls --request-payer=requester  "s3://public-blockchain-snapshots/bsc/"  /data

同步

aws s3 sync --request-payer=requester  "s3://public-blockchain-snapshots/bsc/"  /data

猜你喜欢

转载自blog.csdn.net/lansye/article/details/123823765