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:18] Lukáš Strnad [Linux klient AWS CLI] |
cs:navody:object_storage:cesnet_s3:start [23.06.2020 12:36] Mgr. Tomáš Hlava note o preferenci aws cli |
||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
===== Připojení a konfigurace CESNET s3 ===== | ===== Připojení a konfigurace CESNET s3 ===== | ||
+ | {{anchor:aws_cli}} | ||
==== Linux klient AWS CLI ==== | ==== Linux klient AWS CLI ==== | ||
Řádek 142: | Řádek 142: | ||
*/ | */ | ||
- | <note> V případě rozhodnutí se používání S3 verzování objektů je [[:cs:navody:object_storage:cesnet_s3_versioning:start|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 ==== | ||
[[https://s3tools.org/download|S3cmd]] je bezplatný nástroj příkazového řádku a klient pro nahrávání, načítání a správu dat v s3 cloudových úložišťích. S3cmd je psán v Pythonu. Je to open source projekt dostupný pod GNU Public License v2 (GPLv2) a je zdarma pro komerční i soukromé použití. | [[https://s3tools.org/download|S3cmd]] je bezplatný nástroj příkazového řádku a klient pro nahrávání, načítání a správu dat v s3 cloudových úložišťích. S3cmd je psán v Pythonu. Je to open source projekt dostupný pod GNU Public License v2 (GPLv2) a je zdarma pro komerční i soukromé použití. | ||
+ | |||
+ | <note>Jako preferovaný nástroj doporučujeme spíše [[cs:navody:object_storage:cesnet_s3:start#aws_cli|AWS CLI]]. \\ | ||
+ | U s3cmd jsme v některých případech zaznamenali problémy. | ||
+ | </note> | ||
=== Instalace s3cmd === | === Instalace s3cmd === | ||
Řádek 168: | Řádek 172: | ||
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> | ||
- | |||
- | |||
- | \\ | ||