This is a hands-on way to pull down a set of MySQL dumps from Amazon S3 and restore your database with it
Sister Document - Backup MySQL to Amazon S3 - read that first
# Set our variables
export mysqlpass="ROOTPASSWORD"
export bucket="s3://bucketname"
# Get a list of the snapshot dates, newest at the bottom
s3cmd ls $bucket | sort
# Set the name of the directory you want to use (ie "1332796733 - Monday 26 March 2012 @ 2218")
export s3folder="1234567890 - DAY DD MONTH YYYY @ HHMM"
# Create a temporary directory and change to it
cd $(mktemp -d)
# Download all the snapshots
s3cmd ls "$bucket"/"$s3folder"/ | grep -o "s3://.*\.sql\.gz" | xargs -n 1 -P 10 -I {} s3cmd get {} .
# Unzip all the files
ls | grep "sql.gz" | xargs -n 1 -P 10 -I {} gunzip {} .
# Run each file through mysql
find . -name '*.sql' | awk '{ print "source",$0 }' | mysql -u root -p$mysqlpass --batch
# Login to MySQL and have a poke
mysql -u root -p$mysqlpass