How to use S3CMD to upload media files to the Internet Archive

Assume your band just had a show and you recorded the set and created MP3 tracks of all the songs you performed. Now you want to make those available for the whole world and for posterity. The Internet Archive is a great place to put them. Here's a way to do that from SDF in just four easy steps.

  1. Open an IA account
  2. Generate your keys for the S3 API
  3. Create .s3cfg in your home directory:
  4. access_key = KEY
    secret_key = KEY
    host_base = s3.us.archive.org
    host_bucket = %(bucket)s.s3.us.archive.org
    
  5. Use s3cmd to create a bucket and upload media files:
  6. # make a bucket
    sm3cmd mb s3://foo-$$
    Bucket 's3://foo-29515/' created
    
    # upload all MP3 files in the current directory
    for F in *.mp3; do s3cmd put $F s3://foo-29515/$F; done
    

Done!

$Id: s3cmd_archive.html,v 1.3 2012/02/17 20:38:42 jboy Exp $