Fabric, fabric everywhere!

  • Thu 07 March 2013

  • Unless you've been living under a rock, or you're like me and slow. Fabric (from their site) is a Python (2.5 or higher) library and command line tool for streamlining the use of SSH for application deployment or systems administration tasks.

    I've only recently started using it, as in the short term for quick/dirty bash for-loops often served me well...but I found that I'd often reference my bash history to do what I already had done. I was making that wheel rounder. :-/

    So, enter Fabric. The most recent fire lit by this blog post http://stackful-dev.com/easier-pelican-blogging-with-fabric-automation.html and since I use Pelican I saw great value. And this was born. It's a Github repo that I created to produce/manage/publish my Pelican blog. It has saved me an incredible amount of time. The README is rather extensive, so I'll spare you the redundancy.

    I got bit by the bug...and more fabfiles started existing elsewhere. This latest fabfile allows me to backup both the web root as well as the database. I do both before I do a git pull (better safe than sorry). There are also little things in there that shorten the amount of typing/remembering necessary to do "everyday" tasks.

    Comments !