Moving your media file from Linux server to Amazon s3 using s3cmd

Installing s3cmd

sudo apt-get install s3cmd

Configure s3cmd

s3cmd --configurethe command will ask for Access Key , Secret Key, Bucket Name & few options.Retrieving Access Key From AWSFor retrieving your Access Key and Secret Key, In the AWS Console, click my security credentials at the top right for your profile.
You can create a new access key for use an old one from Access Keys column.
Now, it's time to move  your file/folder from server to s3.Move a single file to s3s3cmd put file.txt s3://folder/

Move a folder to s3

s3cmd put --recursive source-folder s3://destination-folder



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shrestha Rohit

Shrestha Rohit

I like to call myself a passionate programmer. I love learning new things every day.