Migrate writefreely blog from one server to another

While there is both export and import functionality available for writefreely the formats are different and the fucntionality is not designed for moving content from one instance to another.

However, there is a go tool called wf-migrate written by the lead writefreely developer which uses the export file from the existing instance and the APIs on the new instance to get the job done.

The instance I had set up hosted 3 separate blogs, so there was a little more jiggery pokery involved, but luckily the number of posts was low enough to do a bit of manual reorg following the import. For a multiple blog setup, this manual part can probably be avoided by ensuring the first blog created on the new instance is the same as the first one created on the old instance (for me it wasn't).

  1. Set up new writefreely instance with just the default (1) blog initially
  2. Export content from old instance (entry on the admin menu or go to wfsite.com/me/export)
  3. Install the wf-migrate tool as per the instructions on github (requires go)
  4. go env to find out where the tools gets installed (in my case ~/go/bin)
  5. wfimport -u username -h wfsite.com exported-data.json , enter password when prompted

This actually created the 2 extra blogs, but the posts were all a bit mixed up. I ended up moving all the posts manually to the original default blog, deleting the blogs which had been automatically created and then configuring them properly before moving those posts back.