So I finally migrated my Octopress site to Piecrust after much amount of putting it off.
I originally decided to implement the site in static years ago and don’t regret the choice, besides running faster, it also feels less cluttered. I also like the idea of edditing my posts directly in the text editor of my choice and just using git to push it to the production site.
The reason for the change is purely based on my ability to code in PHP over Ruby, which is 1/0 to put it into logic. I can’t do Ruby (although the temptation to learn is alwys there), but I can do PHP.
So I found myself running into Octopress over the last weekend and as much as I am normally a big PHP fanboy. I was drawn to the idea of what it does and how it works. It feels similar to the last website I ran which stored all the content in flat files and parsed them (textile) to the view. Octopress seems WAY more polished than I could ever create and feels so much nicer to use. All the files are stored on my own local desktop machine and are deployed using Rsync! How much better does it get. I create a post/page, populate it with content, then rsync it into place on the live server.
So, without further ado, here is the procedure used to get it up and running on Archlinux (Desktop) and Archlinux (Server).
This script will do exactly what it says, it will backup a directory to a tape, it checks for a tape and emails you if you haven’t provided one.
It emails every 60 minutes. You can adjust that simply by changing the SLEEP_TIMER value listed below.