For some general usage and remarks on Amazon's S3 service see this link

In this post I will document how rdup-s3 works (as it is finished now). If you want to access the code now you have to checkout trunk from http://www.miek.nl/projects/rdup/svn/trunk/ using subversion.

Please note there is currently a 5 Gigabyte limit on the file size, rdup-s3 will not check for this and happily will start the upload - you have been warned!

Listing my buckets

$ rdup-s3 -i key-id -k secret-id ls
rdup-test1

Ah, so I have one bucket named rdup-test1.

Listing files inside that bucket

$  rdup-s3 -i key-id -k secret-id \ 
   -b rdup-test1 ls 
           9787 rdup.c

So, 1 file with a size 9787 bytes.

Deleting files from a bucket

$ rdup-s3 -i key-id -k secret-id \
  -b rdup-test1 rm rdup.c

No news is good news.

Deleting a bucket

$ rdup-s3 -i key-id -k secret-id \
  -b rdup-test1 rm

No news is good news - so its gone.

Upload a file named and create bucket

Now I'm uploading (put) rdup.c to the bucket rdup-backup. The remote name is also rdup.c (the last argument to rdup-s3).

$ cat rdup.c | rdup-s3 -i key-id -k secret-id \
  -b rdup-backup put rdup.c

Did it work:

$ rdup-s3 -i key-id -k secret-id ls
rdup-backup

Yes!, the bucket was created on the fly.

$ rdup-s3 -i key-id -k secret-id \
  -b rdup-backup ls  
           9787 rdup.c

And it is back again.

Time to upload my compressed and encrypted backup to Amazon :)

Tags: rdup

0 comments

Comments are closed

If you really, really want to comment, please mail miek@miek.nl.

0 comments in moderator queue