Importing data between major versions of Confluence

Hey there. We have a test instance of Confluence 6.4.1 and a production instance of Confluence 5.8.4 and I would like to regularly update the test instance to have the same content as production. Is it possible to export the database (in our instance postgres) along with the attachments directory from the earlier version and import them into the latest version ? I'm guessing the schema has changed between versions but can we manually run the schema update script to handle this ? Otherwise our test instance is going to get quickly out of date before we can update live. Thanks.

1 comment

You mentioned : Is it possible to export the database (in our instance postgres) along with the attachments directory from the earlier version and import them into the latest version ?

By doing this you are actually upgrading confluence. When you start Confluence 6.4.1 , it will detect that the database is for version 5.8.4 and initiate an upgrade for the database and the new required tables will be created or modified

However, the version of test instance should always be same as the production. Why you need a test instance on a newer version ?

Thanks for the response. The upgrade from 5.x to 6.x has already taken place and the schema has been updated. But my concern is that if I now attempt to import data from 5.x into 6.x then during startup it will recognise an earlier schema and refuse to start. If that's the case then I wonder if we can manually run the schema update to enable the application to start. We have a test instance of a newer version because we are testing the upgrade from 5.x to 6.x and then was to keep the 6.x version up to date until it's time to migrate.