Bash Script to download files and push to S3

I have a development bucket on Amazon S3, which I use when I’m testing image and file uploads so I can upload ridiculous pictures relatively safe in the knowledge they’ll never appear live.

Sometimes though, I need the images to match something in the database (like the image for a news article)

So I quickly put together a Bash script that loops over a list of http links and pushes them to an S3 bucket:

Also, it’s the first time I’ve used the Do what the fuck you want to Public Licence

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s