Sie befinden sich im Service: Object Storage

s3cmd

s3cmd

Detailinformation 

$ yum info s3cmd

 

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: ftp.halifax.rwth-aachen.de

 * epel: vesta.informatik.rwth-aachen.de

 

Available Packages

Name        : s3cmd

Arch        : noarch

Version     : 1.6.1

Release     : 1.el7

Size        : 164 k

Repo        : epel/x86_64

Summary     : Tool for accessing Amazon Simple Storage Service

URL         : http://s3tools.org

License     : GPLv2

Description : S3cmd lets you copy files from/to Amazon S3

            : (Simple Storage Service) using a simple to use

            : command line client.

 
 

yum --enablerepo epel-testing install s3cmd

Quelle: http://s3tools.org/repositories

Hinweis: s3cmd in CentOS 7 benötigt python. 

Es ist eine initiale Konfiguration erforderlich:

s3cmd --configure

Benötigte Informationen:

Access Key

Secret Key

Default Region: DE

S3 Endpoint

s3.rwth-aachen.de

DNS-style bucket+hostname:port template for accessing a bucket: 

s3.rwth-aachen.de/%(bucket)

Encryption password

HTTPS protocol: YES bzw. True

HTTP Proxy server name: - keine Eingabe erforderlich -

Beispiel -  an s3.rwth-aachen.de :

[root@vmXXXXXXitc ~]# s3cmd --configure

Enter new values or accept defaults in brackets with Enter.

Refer to user manual for detailed description of all options.

Access key and Secret key are your identifiers for Amazon S3. Leave them empty for using the env variables.

Access Key [51LVTSRDOQRTQP6018YX]:

Secret Key [gHtznO0WAtiXXXXXXXgxJjENIaPSeHCKnFpzk]:

Default Region [DE]:

Use "s3.amazonaws.com" for S3 Endpoint and not modify it to the target Amazon S3.

S3 Endpoint [s3gw.itc.rwth-aachen.de]:

Use "%(bucket)s.s3.amazonaws.com" to the target Amazon S3. "%(bucket)s" and "%(location)s" vars can be used

if the target S3 system supports dns based buckets.

DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3gw.itc.rwth-aachen.de]: s3gw.itc.rwth-aachen.de/%(bucket)

Encryption password is used to protect your files from reading

by unauthorized persons while in transfer to S3

Encryption password:

Path to GPG program [/usr/bin/gpg]:

When using secure HTTPS protocol all communication with Amazon S3

servers is protected from 3rd party eavesdropping. This method is

slower than plain HTTP, and can only be proxied with Python 2.7 or newer

Use HTTPS protocol [Yes]:

On some networks all internet access must go through a HTTP proxy.

Try setting it here if you can't connect to S3 directly

HTTP Proxy server name:

New settings:

  Access Key: 51LVTSRDOQRTQP6018YX

  Secret Key: gHtznO0WAtiXXXXXXXgxJjENIaPSeHCKnFpzk

  Default Region: DE

  S3 Endpoint: s3.rwth-aachen.de

  DNS-style bucket+hostname:port template for accessing a bucket: s3.rwth-aachen.de/%(bucket)

  Encryption password:

  Path to GPG program: /usr/bin/gpg

  Use HTTPS protocol: True

  HTTP Proxy server name:

  HTTP Proxy server port: 0

Test access with supplied credentials? [Y/n] Y

Please wait, attempting to list all buckets...

Success. Your access key and secret key worked fine :-)

Now verifying that encryption works...

Not configured. Never mind.

Save settings? [y/N] Y

Configuration saved to '/.root/.s3cfg'

Oder ändern Sie manuell die Parameter wie folgt (hier: z.B.: s3.rwth-aachen.de):

in der Konfigurationsdatei:

host_base = s3.rwth-aachen.de

host_bucket = s3.rwth-aachen.de/%(bucket)


Zusatzinformation

Siehe auch:

zuletzt geändert am 10.02.2021

Wie hat Ihnen dieser Inhalt geholfen?