I have two confluence servers currently running. One is running confluence 2.10 on an expired license. The other is running confluence 5.9.9 with an up to date license. I want to import all of the pages from the older version into the newer one. I've run into problems when trying to export/backup the pages from the 2.10 version due to having ~2,000 pages. Is there an automated way to do this? I was trying to follow the instructions on this page using smaller groups of exported pages, but none of the buttons described seemed to exist. I had someone suggest to me to use Confluence rest API, but I'm not exactly sure what that process would look like.
The programmatic approach to migrating this data is to script a manual conversion of that data by reading the date from 2.10.x and writing it into 5.9.x: firstly, you'll need to use XML-RPC or SOAP for reading the data from 2.10.x, Confluence only gained a REST API starting in 5.5. You can see how to do that in https://developer.atlassian.com/confdev/deprecated-apis/confluence-xml-rpc-and-soap-apis. Alternatively, you should be able to use a command line wrapper for that, through tools like Confluence CLI https://marketplace.atlassian.com/plugins/org.swift.confluence.cli/server/overview, although it looks like that's up to 6.0 now, and the version that supports Confluence 2.10 was before 2.0, and doesn't seem to be on the marketplace listing
The steps your script would need invoke several methods (with full documentation in https://developer.atlassian.com/confdev/deprecated-apis/confluence-xml-rpc-and-soap-apis/remote-confluence-methods):
I can't guarantee that this will correctly migrate all content imported using this mechanism, but it should be good enough to only need manual fixes on a handful of pages. There may be more steps to restore page permissions and space permissions as well, but this should give you the general idea of how this approach works.
Confluence will need to do some significant data migrations on pages from a 2.10.x site so that it can work with them on a 5.9.x. Sadly, it still hasn't implemented data migrations on space import, and there's no support for migrations at the page level through the UI either.
The user-friendly approach to fixing this is to do a site upgrade, then do space exports from the old site and import them into the new site. Complicating this approach is that Confluence dropped support for doing upgrades from significantly older versions, which means the upgrades would have to be done in multiple steps (for details on this, see https://confluence.atlassian.com/doc/upgrading-confluence-4578.html). That is:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs