Platform/OS
Linux, macOS, Windows
Category
Other

S4cmd

S4cmd is a simple command-line tool that lets you quickly move files to and from S3-compatible cloud storage. It works like a super-fast file copier that can upload your photos, videos, or documents to the cloud or download them back to your computer with just a few keystrokes. It uses S3-compatible object storage as a giant, reliable online warehouse where your files are safely kept and can be accessed from anywhere. This storage approach makes it easy to handle huge batches of files without slowing down your computer or running out of local hard drive space. People love it for backing up important work, sharing large files with teams, or moving data between different computers and cloud services.

Connection / Setup

  1. Create an account and log in to DiskSpace
  2. Click I'm ready to set up my storage
  3. Enter Bucket Name following the instructions
  4. Click Create Bucket and wait for it to be generated
  5. Find your Endpoint URL, Access Key, and Secret Key in the S3 Client Configuration section for use below

Connecting DiskSpace.sh to s4cmd

DiskSpace.sh is a fully S3-compatible object storage service. Follow the steps below to configure s4cmd using path-style requests.

Connection Steps
  1. Install s4cmd if not already installed: pip install s4cmd
  2. Create or edit the s4cmd configuration file at ~/.s4cfg
  3. Add your DiskSpace.sh credentials and endpoint settings (see example below)
  4. Test the connection using the --endpoint-url parameter or the config file
Credential Fields
Endpoint URL
https://s3.diskspace.sh
Access Key
Your DiskSpace.sh Access Key ID
Secret Key
Your DiskSpace.sh Secret Access Key
Path Style Requests (Required)
DiskSpace.sh requires path-style URLs. Virtual-hosted style requests are not supported.

Correct: https://s3.diskspace.sh/bucket-name/key
Incorrect: https://bucket-name.s3.diskspace.sh/key
Example Configuration
[default]
access_key = YOUR_ACCESS_KEY_HERE
secret_key = YOUR_SECRET_KEY_HERE
endpoint_url = https://s3.diskspace.sh
region = us-east-1
use_path_style = true
Usage Examples
# List buckets
s4cmd --endpoint-url=https://s3.diskspace.sh ls

# Upload a file
s4cmd --endpoint-url=https://s3.diskspace.sh put localfile.txt s3://my-bucket/localfile.txt

# Use with config file
s4cmd --config=~/.s4cfg ls s3://my-bucket/
Troubleshooting
  • Ensure you are using path-style requests (use --use-path-style or equivalent config option)
  • Region can be left empty or set to us-east-1
  • If you receive signature errors, verify your Access Key and Secret Key are correct
  • Use --debug flag with s4cmd for detailed request information
  • Confirm your endpoint URL is exactly https://s3.diskspace.sh (no trailing slash)