How to use AWS CLI v2 and s3cmd with e3 Object Storage
e3 Object Storage: Linux CLI Guide
Welcome! This guide shows you how to use AWS CLI v2 and s3cmd with eazyBackup e3 Object Storage.
You can copy and paste the example commands as-is, replacing the placeholders where noted.
What You Need
Your e3 ACCESS_KEY
Your e3 SECRET_KEY
Your bucket name
Linux shell access
Our S3-compatible endpoint used in examples:
s3.ca-central-1.eazybackup.com
Environment variables:
Shell variables (like ACCESS_KEY, SECRET_KEY, BUCKET, and ENDPOINT) are just named placeholders in your terminal session. We use them in KB examples so you can set your e3 details once, then copy/paste the rest of the commands without editing every line.
Set the recommended environment variables in your terminal session:
If you use aws configure --profile e3, AWS CLI will create/update these files for you.
You can also create them manually.
Create the directory:
Create or edit ~/.aws/credentials:
Lock down permissions:
Create or edit ~/.aws/config:
Then use the profile in commands:
Notes:
You will still supply the e3 endpoint on commands using --endpoint-url "$ENDPOINT_URL" (We have found that AWS CLI does not reliably store an endpoint override in the profile for all commands).
Keeping e3 in its own profile helps avoid accidentally talking to AWS S3 with the same commands.
Install AWS CLI v2 on Linux
Configure for e3
Why virtual:
It uses bucket subdomain style (bucket.endpoint), which we recommend for e3.
Convenience: an aws-e3 wrapper (optional)
If you want to avoid typing --endpoint-url and --profile every time, add this to your shell profile (for example ~/.bashrc):
Then you can run:
AWS CLI Examples
List buckets:
List objects in a bucket:
Upload a file (PUT):
Download a file (GET):
Delete object:
Get object metadata:
Option B: s3cmd
s3cmd is a popular third-party S3 client and works with e3 when configured correctly.
Install s3cmd on Linux
Ubuntu/Debian:
Configure s3cmd for e3
Create a dedicated config:
Important:
Set both host_base and host_bucket.
If host_bucket is missing, s3cmd will fall back to the AWS hostname like bucket.s3.amazonaws.com, which can cause failures even when keys are correct.
s3cmd Examples
List buckets:
List objects in a bucket:
Upload a file (PUT):
Download a file (GET):
Delete object:
Get object info:
Troubleshooting
InvalidAccessKeyId with s3cmd
Most common cause:
host_bucket is not set correctly.
Fix:
Use host_bucket = %(bucket)s.s3.ca-central-1.eazybackup.com.
FAQ
Is e3 the same as AWS S3?
e3 is S3-compatible, not AWS itself.
That means most standard S3 tools work, but you will need to provide the e3 endpoint and correct addressing configuration.
Which client should I use?
We prefer AWS CLI v2 for most workflows.
Use s3cmd if you prefer its command style, but be sure to configure host_bucket explicitly.
Need help? Share your exact command and error output with support, and include whether you are using AWS CLI or s3cmd.