Skip to content
Snippets Groups Projects
s5cmd.md 1.36 KiB
Newer Older
Milan's avatar
Milan committed
---
languages:
  - en
  - cs
---

# s5cmd for very fast transfers

In case you have a fast connection of about 1-2Gbps and you want to utilize it for data transfers, you can use the s5cmd tool. It allows you to fully optimize the data transfer. The tool is available in form of compiled binaries for Windows, Linux and macOS. It is also available as a source code or docker image. Detailed information can be found on [the project Github page](https://github.com/peak/s5cmd).

Please insert into **.aws/credentials** the folowing options.

    [default]
    aws_access_key_id = xxxxxxxxxxxxxxxxxxxxxx
    aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    max_concurrent_requests = 200
    max_queue_size = 20000
    multipart_threshold = 128MB
    multipart_chunksize = 32MB

**Access Key** and **Secret Key** has been provided by admins while creating the S3 account.

**Listing all buckets**

    s5cmd --endpoint-url=https://s3.clX.du.cesnet.cz ls

**Simple file upload**

    s5cmd --endpoint-url=https://s3.clX.du.cesnet.cz cp myfile s3://bucket

???+ note "How to achieve high transfer speed"
    To achieve higher speed for data transfers it is necessary to modify the following parameters, particularly utilize or CPU cores and workers, see below.<br/>
    ```s5cmd  --endpoint-url=https://s3.clX.du.cesnet.cz cp -c=8 -p=5000 /adresar/velky_soubor s3://bucket```