Advantage of using s3cmd 1.1.0 beta2 is that it supports multi part upload which is must to upload files larger than 5 GB.

cd /opt/

Download the s3cmd 1.0.0-beta2 package from SourceForge:

wget http://sourceforge.net/projects/s3tools/files/s3cmd/1.1.0-beta2/s3cmd-1.1.0-beta2.tar.gz/download

Make sure you have latest version of Python

~/ python -v should show you the version

Again cd /opt/

tar -zxvf  s3cmd-1.1.0-beta2.tar.gz

rename folder to easy name s3cmd

cd s3cmd

python setup.py install

Let us move it to a easy folder

mkdir ~/bin/

cp s3cmd ~/bin
cp -R S3 ~/bin

Lets edit our bashrc file so it knows we have installed the s3cmd tool

and add the following to the end…
if [ -d “$HOME/bin” ]; then
PATH=”$HOME/bin:$PATH”
fi

Now source the bashrc file so the server knows we changed it.

Now its time to configure the s3cmd tool.

s3cmd –configure

Enter your Amazon S3 Access Key
Enter your Secret Access Key

Test and save it

Now upload a file

using the screen command you can make the upload in the background

screen s3cmd put ./filenametoupload s3://bucketname

to detach the screen

ctrl + a+ d

Amazon s3 backup using s3cmd 1.1.0 beta2 on Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.