儲存為 PDF
Lyve Cloud Object Storage Resources Guide 
Lyve Cloud Object Storage Resources Guide 

此內容是否有幫助?

s5cmd

s5cmd is validated for use with Lyve Cloud Object Storage.

Configure S3cmd

To start using s5cmd, you'll need to configure it with your Lyve Cloud S3 storage service. Once s5cmd is installed, run the following commands to insert access keys into a credentials file:

  1. Make sure you have the AWS directory to hold your credentials file in:

$ mkdir ~/.aws

  1. Create and edit the credentials file to contain your access key pair:

$ vim ~/.aws/credentials

[default]
aws_access_key_id = <access-key>
aws_secret_access_key = <secret-key>

Basic Commands

 Note—The Lyve Cloud --endpoint-url must appear before the command in order for the command to run.

List buckets

s5cmd --endpoint-url=https://s3.<region>.sv15.lyve.seagate.com ls

where:

  • <region> is the appropriate Lyve Cloud region, for example, us-east-1.

Create bucket

s5cmd --endpoint-url=https://s3.<region>.sv15.lyve.seagate.com mb s3://s5cmd-bucket

where:

  • <region> is the appropriate Lyve Cloud region, for example, us-east-1.

Upload file

s5cmd --endpoint-url=https://s3.<region>.sv15.lyve.seagate.com cp envpod.yaml s3://s5cmd-bucket cp envpod.yaml s3://s5cmd-bucket/envpod.yaml

where:

  • <region> is the appropriate Lyve Cloud region, for example, us-east-1.

Download file

s5cmd --endpoint-url=https://s3.<region>.sv15.lyve.seagate.com cp s3://s5cmd-bucket/export_repo.sh /Users/660186/desktop/export.sh

where:

  • <region> is the appropriate Lyve Cloud region, for example, us-east-1.

Sync a local folder to an S3 bucket:

s5cmd --endpoint-url=https://s3.<region>.sv15.lyve.seagate.com sync my-sync-folder s3://s5cmd-bucket
cp my-sync-folder/Pic-2.png s3://s5cmd-bucket/my-sync-folder/Pic-2.png
cp my-sync-folder/Pic-3.png s3://s5cmd-bucket/my-sync-folder/Pic-3.png
cp my-sync-folder/Pic-1.png s3://s5cmd-bucket/my-sync-folder/Pic-1.png

where:

  • <region> is the appropriate Lyve Cloud region, for example, us-east-1.