Neil Turner's Blog

Blogging about technology and randomness since 2002

Immediate importable backups in MT

Let’s face it, creating backups is annoying, so we don’t do it very often. And then when the system goes belly-up, you always find that the backup you have is too old. I had this problem some time ago when my host disabled my account without warning, leaving me to manually re-import around 100 entries from the raw HTML files that I managed to salvage. Unfortunately, I also lost about 6 weeks of comments and pings too.

While I was on holiday, however, I had a brilliant idea. When you export your entries for a backup, you are merely producing a flat text file. Why not create a template which can create this file on the fly? That way, every time you edit an entry, a backup copy is created that can easily be re-imported if the system fails on you. After a bit of tinkering, I think I’ve got it sussed.

Comments are closed.