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.09.2019 12:47] bauer@cesnet.cz |
cs:navody:object_storage:cesnet_s3:start [27.09.2019 12:51] bauer@cesnet.cz |
||
---|---|---|---|
Řádek 37: | Řádek 37: | ||
Alternativně lze konfigurační soubor získat použitím interaktivního průvodce: | Alternativně lze konfigurační soubor získat použitím interaktivního průvodce: | ||
- | <code>$ s3cmd --configure | + | $ s3cmd --configure |
- | s3cmd --configure | + | s3cmd --configure |
- | Enter new values or accept defaults in brackets with Enter. | + | Enter new values or accept defaults in brackets with Enter. |
- | Refer to user manual for detailed description of all options. | + | 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 and Secret key are your identifiers for Amazon S3. Leave them empty for using the env variables. |
- | Access Key: xxxxxxxxxxxxxxxxxxxxxx | + | Access Key: xxxxxxxxxxxxxxxxxxxxxx |
- | Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
- | Default Region [US]: cze | + | Default Region [US]: cze |
- | S3 Endpoint [s3.amazonaws.com]: s3.cl1.du.cesnet.cz | + | 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]: | + | DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]: |
- | Encryption password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | Encryption password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
- | Path to GPG program [/usr/bin/gpg]: | + | Path to GPG program [/usr/bin/gpg]: |
- | Use HTTPS protocol [Yes]: | + | Use HTTPS protocol [Yes]: |
- | Test access with supplied credentials? [Y/n] y | + | Test access with supplied credentials? [Y/n] y |
- | Save settings? [y/N] y | + | Save settings? [y/N] y |
- | Configuration saved to '~/.s3cfg' | + | Configuration saved to '~/.s3cfg' |
- | </code> | + | |
Řádek 101: | Řádek 101: | ||
Upload zašifrovaných souborů | Upload zašifrovaných souborů | ||
- | <code>$ s3cmd put -e file.txt s3://newbucket/ </code> | + | $ s3cmd put -e file.txt s3://newbucket/ |
- | Uploud složek | + | Upload složek |
<code>$ s3cmd put -r directory s3://newbucket/ </code> | <code>$ s3cmd put -r directory s3://newbucket/ </code> | ||
Ujistěte se, že nepřidáváte koncové lomítko v adresáři (např .: directory/), jinak nahraje pouze obsah adresáře. \\ \\ | Ujistěte se, že nepřidáváte koncové lomítko v adresáři (např .: directory/), jinak nahraje pouze obsah adresáře. \\ \\ |