s5cmd
s5cmd is a very fast command-line tool for S3. It copies thousands of files in parallel, which makes it a good choice for large folders and migrations. It has no setup wizard: you give it the keys in environment variables and the Zata endpoint on each command.
Before you start
- A bucket. See Create a bucket.
- An access key and secret key from the same region as the bucket. See Access keys.
Connection settings
The examples below use Indore. For a bucket in Mumbai, use https://bom01.zata.ai.
Install s5cmd
Download the file for your system from the s5cmd releases page. On Linux (64-bit):
Give s5cmd your keys
In the terminal you will use:
To avoid typing the endpoint on every command, also set:
To keep the keys in a file instead, put them in ~/.aws/credentials and add --profile zata to each command:
Test it
Replace my-bucket with your bucket name:
Copy many files
Put the source in single quotes, so that s5cmd (not the shell) expands the *. Sub-folders are kept.
Upload a folder:
Upload only new or changed files (nothing is deleted in the bucket):
Download a folder:
Large files are uploaded in parts automatically.
Speed settings
Troubleshooting
For other errors, see Access denied and Wrong endpoint or region.