Platform/OS
Linux, macOS, Windows
Category
File Synchronization & Mount Tools
s5cmd
S5cmd is a fast and simple command-line tool that helps you move files to and from cloud storage. It works like a supercharged copy-and-paste command that can upload, download, or sync hundreds of photos, videos, or documents in seconds. It uses S3-compatible object storage as a giant, reliable online filing cabinet so your files stay safe, accessible from anywhere, and scale as your needs grow. Because it talks directly to S3 storage, it avoids slow middle steps and delivers maximum speed even when handling thousands of files at once. This makes it especially valuable for backups, website assets, or sharing large datasets without waiting around or paying for extra services.
Connection / Setup
- Create an account and log in to DiskSpace
- Click I'm ready to set up my storage
- Enter Bucket Name following the instructions
- Click Create Bucket and wait for it to be generated
- Find your Endpoint URL, Access Key, and Secret Key in the S3 Client Configuration section for use below
Connecting DiskSpace.sh to s5cmd
s5cmd is a high-performance S3 client that works seamlessly with DiskSpace.sh's S3-compatible storage. Follow the steps below to configure your connection.
Connection Steps:
- Download and install the latest version of s5cmd from the official GitHub releases.
- Set the following environment variables or use command-line flags:
Endpoint URL
Access Key
Secret Key
Region: Can be left empty or set to
us-east-1
Path-Style Requests (Required)
DiskSpace.sh requires path-style URLs. s5cmd uses this format by default when you specify the endpoint correctly.
Example URL format:
https://s3.diskspace.sh/bucket-name/key
Example Command
# Set environment variables
export S3_ENDPOINT_URL=https://s3.diskspace.sh
export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
# List buckets
s5cmd --endpoint-url=$S3_ENDPOINT_URL ls
# Upload a file
s5cmd --endpoint-url=$S3_ENDPOINT_URL cp local-file.txt s3://my-bucket/path/to/file.txt
Troubleshooting
- If you receive "403 Forbidden" errors, double-check your Access Key and Secret Key.
- Use
--no-verify-sslonly if you encounter certificate issues (not recommended for production). - Always include the
--endpoint-urlflag or set theS3_ENDPOINT_URLenvironment variable. - For maximum performance, consider using the
--concurrencyand--part-sizeflags for large file transfers.