A simple way to watch a directory and take action. Could have issues with race conditions so to be used only in simpler set-ups but a great lightweight alternative to running rsync on a cron schedule.
Documentation at http://linux.die.net/man/1/inotifywait
My own script on Tiny Core Linux (/home/scripts/pivotx-monitor.sh), which runs the backup utility upon posting of an entry in my blog.
/usr/local/bin/inotifywait -r -m -e close_write /home/apache2/pivotx/pivotx/db/s
sudo filetool.sh -b
Called from bootlocal.sh as
su tc “-c /home/scripts/pivotx-monitor.sh>/home/pivtox.log”
I took a look at blog engines for my own local install. Requirements are (driven by the hosting machine as much as my own personal preferences):
- PHP-based – web server on the hosting machine is already running PHP and I had issues installing Django on that particular OS
- No MySQL – I often have power cuts and no UPS, so the hosting machine goes down and MySQL index files get corrupted (despite my configuration tweaks), MySQL crashes on restart and I need to restore from backups. That leaves flat files.
- Works on the browsers I use (Opera at home, Firefox in the office)
My overall favorite was Dropplets – http://dropplets.com/. It looks really sharp, does exactly what I want it to after a few tests, it isn’t quite to the level where I can run it as a blog and just forget about it. First, the Upload/Publish function doesn’t work in Opera, then the “Read More” links on all my test posts return a 404.
The contenders were Pivotx – http://pivotx.net/, TextPress – http://textpress.shameerc.com/ and RazorCMS – http://www.razorcms.co.uk/.
I tested RazorCMS yet and it lacks the option to password-protect the blog. Also, the choice of themes didn’t really appeal. Next I tried Pivotx and it does fit the bill, a slick admin console, loads of functionality (with a manual to explain how to actually use it), a nice collection of themes (I temporarily went with the Baltimore theme) and it has a Password Protect extension to password protect the whole blog. As it happens, I shied away from TextPress because of the dependency on GIT to publish articles.
Kirby – http://getkirby.com/ did look good but requires a $30 license.