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.

circle-check

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

  • 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:

chevron-rightMake a Buckethashtag

s3cmd mb s3://BUCKET

chevron-rightRemove a Buckethashtag

s3cmd rb s3://BUCKET

chevron-rightList Objects or Bucketshashtag

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

chevron-rightList all Objects in all Bucketshashtag

s3cmd la

chevron-rightUpload an Object into a Buckethashtag

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

chevron-rightDownload an Object from a Buckethashtag

s3cmd get s3://BUCKET/OBJECT LOCAL_FILE

chevron-rightDelete an Object from a Buckethashtag

s3cmd del s3://BUCKET/OBJECT

chevron-rightSynchronize a Directory Tree to S3hashtag

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

chevron-rightView Disk Usage by Buckethashtag

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

chevron-rightGet Information about Buckets or Objectshashtag

s3cmd info s3://BUCKET[/OBJECT]

chevron-rightCopy Objecthashtag

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

chevron-rightMove Objecthashtag

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

Last updated

Was this helpful?