I wrote before about exporting the blog but that's not something that I can run all the time. In the mindset of "get'er done" and something working but less than ideal is infinitely better than something not done at all, I decided to just pull down all the archives in html format. If I really needed to the future, I could parse out the files.
It's simple to do using wget with the mirroring functionality. Unfortunately mac's no longer ship with wget. After wasting too much time on how to do it with curl, I just installed wget myself using some instructions I found. The only difference is that rather than using the 3 year old version, I installed the latest.
After that it was a quick script that pulls down all the files, and I'm done.
#!/bin/sh
# mirrors archive section of blog
cd ~/Documents/blog-backup/
wget -m -l 1 http://www.beernut.ca/jim/archives/
Timemachine kicked in, and now I have a copy of my blog on at least 3 computers. Not ideal, but a good first step.
No comments:
Post a Comment