DIY Ruby SFTP to S3

I was faced by a challenge of transferring some files from an FTP server to S3. At first, the nature of the problem seemed simple. I just had to get the files to my local machine and then upload them to S3. Piece of cake! But lo and behold, when I saw that there were over 32K files and each step took me almost 2 minutes each! Oooh lala!

I knew this was a job for fanfare sound here the almighty ruby! smile

And so, I set my priorities straight.. I had to work elegantly and save time altogether. I'm feeling quite exhausted and would really love to get some sleep soon, so here I am, depending on my great yet simple ruby skills and the power of ruby itself to help me achieve this task!

As I write this article, my script is silently running in the background as a very obedient and competent slave. tongue But to help you out, here is a brief guide on how to sit back, relax and let the task be accomplished in no time! You should really be sending me gifts.. or better yet, donate to me via Paypal! I'll love it, I promise.. I might even give you a page of exposure! :)

Read the rest of this entry

Hi, I've been busy you know. wink If you don't know yet, this site and my blog codes are hosted in . I recently moved to Git and found that they have support for private Git repositories. Below are details of my last git push.

Maricris S. Nonato on 26 Mar
Commit: e734bd6878629223c5067326471d7ec0aac7d6e4

Updated display of ads and popular content
  • @iCreate_JB that is sooo true 2010-07-30
  • My eyes hurt so baaaadd. sad 2010-07-30
  • Check out: "Giles Bowkett: Secrets Of Superstar Programmer Productivity: Flow"( http://twitthis.com/oqsu..2010-07-30
  • This is to true right now http://skitch.com/t/7p8.. 2010-07-30
  • @iCreate_JB haha that's funny. Well, I'm kinda burned. Just as how you might be as well. Lol 2010-07-29
  • @iCreate_JB hahaha. That's a good one 2010-07-29
  • LivingLife :: A trip down memory lane: Sa totoo lang, wala kang dapat ipagmayabang dahil wala ka pa sa kalingki... http://bit.ly/aqSY4I.. #fb 2010-07-28
  • I never knew I had these much socks. Such an imbalance inside my closet! 2010-07-28
  • Was able to eliminate more trash from the room. Congratulations to myself! 2010-07-28
  • RT @zweinullweb: 30 Cool One-letter Logo Designs: http://bit.ly/9WkEgO.. 2010-07-28
  • I can't believe some of the stuff I rescued from Ondoy are still damp. Sheez 2010-07-28
  • God is a miracle worker. Let's not stop believing in his works. #fb 2010-07-26
  • RT @JeromeGotangco: ang tigas talaga ni Manong Johnny... 2010-07-25
  • LivingLife :: Change is imminent: I open my serious post with a very light and easy title.  But I cannot stress... http://bit.ly/bskTEd.. #fb 2010-07-25
  • a major earthquake is coming to Manila, please help pray to reverse it 2010-07-25
  • RT @jasonderulo: The Philippines is an AMAZING place... On the complete opposite side of the globe (from where I'm from) & I feel soo we ... 2010-07-24