The world is my backyard.
Random header image... Refresh for more!

Upload recipe using Net::SCP

Sharing a simple ruby recipe to automate uploads of static website, if rsync is giving you problems(like with my school web server). This script uses Net::SCP.

Net::SCP is a pure-Ruby implementation of the SCP protocol. This operates over SSH (and requires the Net::SSH library), and allows files and directory trees to copied to and from a remote server.

This solution lies somewhere between manually uploading and fully automation using Capistrano or Vlad.

1 comment

1 James { 11.01.09 at 10:30 pm }

Yes, rsync is giving me problems on my laptop. I will have to try this.

Leave a Comment