S3cmd

Learn how to backup your data to Filebase using S3cmd.

What is S3cmd?

S3cmd is a command line S3 Client and Backup for Linux and macOS X.

Read below for instructions on how to configure and mount a Filebase bucket using S3cmd.

Prerequisites:

1. To configure S3cmd, run the command:

s3cmd --configure

2. You will be prompted to fill out the following information:

  • Access Key: Filebase Access Key

  • Secret Key: Filebase Secret Key

  • Default Region: us-east-1

  • S3 Endpoint: s3.filebase.com

  • Bucket Name: Filebase Bucket Name

  • Encryption Password: Unique password

  • Path to GPG Program: If stored in default system location, enter to confirm.

  • Use HTTPS Protocol: Yes

  • HTTP Proxy Server Name: Enter to bypass.

3. You will see a summary of these settings. Test access to Filebase with these settings.

4. You will be prompted to save the settings. Once saved, you’re ready to start using S3cmd.

5. You can use S3cmd with commands such as the following:

Make a Bucket

s3cmd mb s3://BUCKET

Remove a Bucket

s3cmd rb s3://BUCKET

List Objects or Buckets

s3cmd ls [s3://BUCKET[/PREFIX]]

List all Objects in all Buckets

s3cmd la

Upload an Object into a Bucket

s3cmd put FILE [FILE...] s3://BUCKET[/PREFIX]

Download an Object from a Bucket

s3cmd get s3://BUCKET/OBJECT LOCAL_FILE

Delete an Object from a Bucket

s3cmd del s3://BUCKET/OBJECT

Synchronize a Directory Tree to S3

s3cmd sync LOCAL_DIR s3://BUCKET[/PREFIX] or s3://BUCKET[/PREFIX] LOCAL_DIR

View Disk Usage by Bucket

s3cmd du [s3://BUCKET[/PREFIX]]

Get Information about Buckets or Objects

s3cmd info s3://BUCKET[/OBJECT]

Copy Object

s3cmd cp s3://BUCKET1/OBJECT1 s3://BUCKET2[/OBJECT2]

Move Object

s3cmd mv s3://BUCKET1/OBJECT1 s3://BUCKET2[/OBJECT2]

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated