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:


One thought on “The dark art of archiving a WordPress blog

  1. Since I wrote this entry, I’ve learned that both Google and WordPress frown on relative links, and the WordPress software seeks to use full-path http links whenever possible. You live, you learn, I guess.

    For my non-WP blogs, I’ll still use relative links because I like them and am not so concerned about what Google thinks of my links.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>