You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.7 KiB
HTML

<head>
<style type="text/css">
.title{
background-color:#ffffff;
font-size:30px;
color:#2a2a2a;
}
.header{
background-color:#ffffff;
font-size:20px;
color:#2a2a2a;
}
.body{
background-color:#ffffff;
font-size:15px;
color:#2a2a2a;
}
.reference{
border: 1px dotted #000;
text-align: left;
padding: 5px;
padding: 15px 30px 15px;
background:#CCC url('http://sdf.org/tutorials/images/ref.png') 5px 5px no-repeat;
color: #000;
margin: 10px 5px;
}
.link { text-decoration:none }
.superscript{
font-size:10px;
vertical-align:top;
}
.subscript{
font-size:10px;
vertical-align:bottom;
}
.note{
border: 1px dotted #000;
text-align: left;
padding: 5px;
padding: 15px 30px 15px;
background: #DC143C url('http://sdf.org/tutorials/images/note.png') 5px 5px no-repeat;
color: #FFF;
margin: 10px 5px;
}
.code{
border: 1px dotted #000;
text-align: left;
padding: 5px;
padding: 15px 30px 15px;
background:#2F4F4F url('http://sdf.org/tutorials/images/code.png') 5px 5px no-repeat;
color: #00FF00;
margin: 10px 5px;
font-family: monospace;
}
table.table {
border-width: 0px;
border-spacing: 0px;
border-style: none;
border-collapse: collapse;
background-color: #1E90FF;
}
table.table th {
border-width: 1px;
padding: 1px;
border-style: inset;
border-color: white;
background-color: #A0522D;
-moz-border-radius: ;
padding: 10;
}
table.table td {
border-width: 1px;
padding: 1px;
border-style: inset;
border-color: white;
background-color: #FFEBCD;
-moz-border-radius: ;
padding: 5;
}
</style>
</head>
<h1 class="title">How to use S3CMD to upload media files to the Internet Archive</h1>
<p class="body">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.
<ol>
<li><a href="http://www.archive.org/account/login.createaccount.php " target="_blank">Open an IA account</li>
<li><a href="http://www.archive.org/account/s3.php" target="_blank">Generate your keys</a> for the S3 API</li>
<li>Create <code>.s3cfg</code> in your home directory:</li>
<pre>
access_key = KEY
secret_key = KEY
host_base = s3.us.archive.org
host_bucket = %(bucket)s.s3.us.archive.org
</pre>
<li>Use <code>s3cmd</code> to create a bucket and upload media files:</li>
<pre>
# 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
</pre>
</ol>
<p class="body">Done!</p>
$Id: s3cmd_archive.html,v 1.3 2012/02/17 20:38:42 jboy Exp $