Monthly Archives: September 2013

The dark art of archiving a WordPress blog

I don’t know if archiving/moving a WordPress blog is strictly a dark art, but when it comes to moving the images along with the posts, comments and tags, I think it is.

I say dark art because a) I don’t think images come along with the file you export out of WordPress and b) image tags in WordPress posts are generally absolute instead of relative, and I worry that could lead to broken links when the blog is transferred, and possibly no images at all if the blog “goes away” after the backup but before the restore.

Maybe I can clear this up with a read of the WordPress documentation.

In any case, when I add images to my Ode site, I use relative links in the image tags, which makes it possible to retain those links if and when I move the site to another server and even if I change the domain. I almost think that WordPress users should make the effort to modify their image tags in a similar fashion.

Here’s an image:


The link is, but it could display just as well with this path: /blog/wp-content/uploads/2013/09/cropped-master_and_server_banner.png

Unfortunately due to the quirks inherent in how this blog’s URL is configured (with the /~passthejoe), I can only write out the relative URL as /~passthejoe/blog/wp-content/uploads/2013/09/cropped-master_and_server_banner.png: