User Tools

Site Tools


how_to_use_s3cmd_to_upload_media_files_to_the_internet_archive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to_use_s3cmd_to_upload_media_files_to_the_internet_archive [2021/03/19 04:37] hc9how_to_use_s3cmd_to_upload_media_files_to_the_internet_archive [2021/03/20 20:02] (current) hc9
Line 3: Line 3:
 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. 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|[[http://www.archive.org/account/login.createaccount.php |Open an IA account]]| +  - [[http://www.archive.org/account/login.createaccount.php |Open an IA account]] 
-|2|[[http://www.archive.org/account/s3.php|Generate your keys]] for the S3 API| +  [[http://www.archive.org/account/s3.php|Generate your keys]] for the S3 API 
-|3|Create ''.s3cfg'' in your home directory:+  Create ''.s3cfg'' in your home directory: <file config .s3cfg> 
- +access_key = KEY 
-<file config .s3cfg> +secret_key = KEY 
- +host_base = s3.us.archive.org 
-  access_key = KEY +host_bucket = %(bucket)s.s3.us.archive.org
-  secret_key = KEY +
-  host_base = s3.us.archive.org +
-  host_bucket = %(bucket)s.s3.us.archive.org +
 </file> </file>
 +  - Use ''s3cmd'' to create a bucket and upload media files: <code>
 +# make a bucket
 +sm3cmd mb s3://foo-$$
 +Bucket 's3://foo-29515/' created
  
-|4|Use "s3cmd" to create a bucket and upload media files:| +# upload all MP3 files in the current directory 
- +for F in *.mp3; do s3cmd put $F s3://foo-29515/$F; done 
-  # make a bucket +</code>
-  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! Done!
how_to_use_s3cmd_to_upload_media_files_to_the_internet_archive.1616128631.txt.gz · Last modified: 2021/03/19 04:37 by hc9