Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revize Předchozí verze Následující verze | Předchozí verze Následující verze Obě strany příští revize | ||
cs:navody:object_storage:cesnet_s3:start [27.05.2020 15:17] Lukáš Strnad [Linux klient AWS CLI] |
cs:navody:object_storage:cesnet_s3:start [23.06.2020 12:24] Mgr. Tomáš Hlava úprava s3cmd konfigu |
||
---|---|---|---|
Řádek 142: | Řádek 142: | ||
*/ | */ | ||
- | <note> V případě rozhodnutí se používání S3 verzování objektů je [[https://docs.aws.amazon.com/cli/latest/userguide/install-virtualenv.html|návod zde.]].</note> | + | <note> V případě rozhodnutí se používání S3 verzování objektů je [[:cs:navody:object_storage:cesnet_s3_versioning|návod zde]].</note> |
==== Linux klient s3cmd ==== | ==== Linux klient s3cmd ==== | ||
Řádek 168: | Řádek 168: | ||
host_base = https://s3.cl1.du.cesnet.cz | host_base = https://s3.cl1.du.cesnet.cz | ||
use_https = True | use_https = True | ||
- | bucket_location = cze | ||
access_key = xxxxxxxxxxxxxxxxxxxxxx | access_key = xxxxxxxxxxxxxxxxxxxxxx | ||
secret_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | secret_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
+ | host_bucket = s3.cl1.du.cesnet.cz | ||
gpg_command = /usr/bin/gpg | gpg_command = /usr/bin/gpg | ||
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s | gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s | ||
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s | gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s | ||
gpg_passphrase = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | gpg_passphrase = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
- | |||
- | **Alternativně lze konfigurační soubor získat použitím interaktivního průvodce:** | ||
- | |||
- | |||
- | |||
- | <hidden **s3cmd --configure**> | ||
- | | ||
- | \\ | ||
- | | ||
- | $ 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: xxxxxxxxxxxxxxxxxxxxxx | ||
- | Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
- | Default Region [US]: cze | ||
- | S3 Endpoint [s3.amazonaws.com]: s3.cl1.du.cesnet.cz | ||
- | DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]: | ||
- | Encryption password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
- | Path to GPG program [/usr/bin/gpg]: | ||
- | Use HTTPS protocol [Yes]: | ||
- | Test access with supplied credentials? [Y/n] y | ||
- | Save settings? [y/N] y | ||
- | Configuration saved to '~/.s3cfg' | ||
- | |||
- | </hidden> | ||
- | |||
- | |||
- | \\ | ||