Na verdade, eu deveria ter passado mais 30 segundos no Google ...
link diz que posso usar a ferramenta s3cmd:
%código%
E então edite o arquivo de configuração, então sudo apt-get install s3cmd
se parece com:
[default]
host_base = s3.us.archive.org
host_bucket = %(bucket)s.s3.us.archive.org
access_key = key
secret_key = key
use_https = False
verbosity = WARNING
Em seguida, use o seguinte script para fazer upload de tudo para o archive.org:
#!/bin/sh
BASE_URL=http://archive.org/details/
BASE_HEADER=something-$(date -u +%s) #something that should be unique
echo Converts to PDF and uploads the contents of a directory given as the command-line argument.
echo Now converting PDF to JPG
for file in 'ls /*.pdf'
do
convert $file 'echo $file | sed 's/\.pdf$/\.jpg/''
done
echo Listing JPGs: #make sure the conversion worked
ls /*.jpg
echo Making the bucket...
s3cmd mb s3://$BASE_HEADER
echo Sleeping...#sometimes it takes a moment to be processed on their end
sleep 20
echo Uploading files...
for file in 'ls '
do
s3cmd put /$file s3://$BASE_HEADER/$file
done
echo $BASE_URL$BASE_HEADER
Ele é executado como ~/.s3cfg