Quantcast
Channel: Raspberry Pi – IT Solutions Technology Blog
Viewing all articles
Browse latest Browse all 1169

S3cmd – is a free command line tool and client for uploading retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol

$
0
0

Edit the following fields in your s3cmd configuration file ~/.s3cfg

Copy# Setup endpoint
host_base = play.min.io:9000
host_bucket = play.min.io:9000
bucket_location = us-east-1
use_https = True
access_key = < Access Key >
secret_key = < Secret Access Key >
# Enable S3 v4 signature APIs
signature_v2 = False

To make a bucket

# 3cmd mb s3://mybucket Bucket ’s3://mybucket/‘ created

To copy an object to bucket

# s3cmd put newfile s3://testbucket upload: ’newfile‘ -> ’s3://testbucket/newfile‘

To copy an object to local system

# s3cmd get s3://testbucket/newfile download: ’s3://testbucket/newfile‘ -> ‚./newfile‘

To sync local file/directory to a bucket

# s3cmd sync newdemo s3://testbucket upload: ’newdemo/newdemofile.txt‘ -> ’s3://testbucket/newdemo/newdemofile.txt‘

To sync bucket or object with local filesystem

# s3cmd sync s3://testbucket otherlocalbucket download: ’s3://testbucket/cat.jpg‘ -> ‚otherlocalbucket/cat.jpg

To list buckets

# s3cmd ls s3:// 2015-12-09 16:12 s3://testbbucket

To list contents inside bucket

# s3cmd ls s3://testbucket/ DIR s3://testbucket/test/
2015-12-09 16:05 138504 s3://testbucket/newfile

To delete an object from bucket

# s3cmd del s3://testbucket/newfile delete: ’s3://testbucket/newfile‘

To delete a bucket

# s3cmd rb s3://mybucket Bucket ’s3://mybucket/‘ removed

Viewing all articles
Browse latest Browse all 1169

Trending Articles