Opslaan als PDF
Lyve Cloud Object Storage Resources Guide 
Lyve Cloud Object Storage Resources Guide 

Heeft deze informatie u geholpen?

S3cmd

S3cmd is validated for use with Lyve Cloud Object Storage.

Configure S3cmd

To start using S3cmd, you'll need to configure it with Lyve Cloud Object Storage.

  1. Run the configuration command:

s3cmd –configure

  1. Enter your S3 credentials:
Access Key Enter your access key.
Secret Key Enter your secret key.
Default Region Enter the default region for your bucket, for example, us-east-1.
S3 Endpoint Enter s3.<region>.sv15.lyve.seagate.com, where <region> is the appropriate Lyve Cloud region, for example, s3.us-east-1.sv15.lyve.seagate.com.
host_bucket Enter %(bucket)s.s3.<region>.sv15.lyve.seagate.com, where <region> is the appropriate Lyve Cloud region, for example, %(bucket)s.s3.us-east-1.sv15.lyve.seagate.com.
  1. Test the configuration to ensure everything is set up correctly.

Sample commands

List buckets

s3cmd ls

Result Example

2024-10-02 14:41  s3://acronis-cloudseed
2024-08-28 15:48  s3://alluxio-test-bkt0
2024-10-23 07:29  s3://ansible-bucket
2024-10-24 07:47  s3://apache-bucket-1
2024-10-23 11:20  s3://apache-spark-bucket
2024-11-05 08:33  s3://apostrophecms-bucket
2024-02-22 19:51  s3://aspera
2024-03-04 05:44  s3://aspera-test-bucket
2024-10-01 04:45  s3://aspera01
2024-10-08 20:22  s3://bacula-bkt-0
2024-10-25 19:46  s3://calamu-bkt0

Upload a file

s3cmd put /Users/660186/documents/test-user.sh s3://s3cmd-bucket

Result Example

WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.

upload: '/Users/660186/documents/test-user.sh' -> 's3://s3cmd-bucket/test-user.sh'  [1 of 1]

 130 of 130   100% in    2s    56.21 B/s  done

Download a file

s3cmd get s3://s3cmd-bucket/config.json /Users/660186/desktop/local-config.json

Result Example

download: 's3://s3cmd-bucket/config.json' -> '/Users/660186/documents/local-config.json'  [1 of 1]

 131 of 131   100% in    0s   271.77 B/s  done

Sync a local folder to an S3 bucket

s3cmd sync /Users/660186/desktop/PicFolder s3://s3cmd-bucket

Result Example

WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
upload: '/Users/660186/desktop/PicFolder/Pic-1.png' -> 's3://s3cmd-bucket/PicFolder/Pic-1.png'  [1 of 3]
 1121955 of 1121955   100% in   14s    73.53 KB/s  done
upload: '/Users/660186/desktop/PicFolder/Pic-2.png' -> 's3://s3cmd-bucket/PicFolder/Pic-2.png'  [2 of 3]
 479053 of 479053   100% in    5s    83.06 KB/s  done
upload: '/Users/660186/desktop/PicFolder/Pic-3.png' -> 's3://s3cmd-bucket/PicFolder/Pic-3.png'  [3 of 3]
 645935 of 645935   100% in   17s    35.10 KB/s  done
Done. Uploaded 2246943 bytes in 38.5 seconds, 56.98 KB/s.