Aws Client sync public S3 files

System: ubuntu20.04

download dependencies

sudo apt-get update

sudo apt install awscli -y

Configure account:

aws configure list Check if there is an account configuration 

Configuration Basics - AWS Command Line Interface Configure the AWS Command Line Interface (AWS CLI) and specify settings for interacting with AWS. https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-creds-create

download

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

view catalog 

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

Synchronize

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

Guess you like

Origin blog.csdn.net/lansye/article/details/123823765