Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Consolidate 4 Confluence instances with all its users, spaces and attachments

We would like to consolidate 4 independent confluence Servers to one single Server.

We will need to migrate all Spaces their attachments and Users from the 4 Internal directory's, with their permissions on Spaces and Group Memberships.

Is this possible?

I already found this KB article regarding Group Memberships:

But i wasn't able to find a way to export the users to a CSV .

Will the permissions and restrictions be consistent when i export and import spaces?

2 answers

Hi @Philipp Wieseckel ,


With Confluence Command Line Interface, you can use the exportSpace action to export the spaces and then import the spaces into your target instance using restoreExport action.

--action exportSpace --space "RT" --file
--action restoreExport --file

Please make sure to place the file in the home\restore directory to import.

With respect to migrating users and groups, please use the exportData action as shown below that gives you the list of actions to run in your target instance so as to recreate the users\groups.

--action exportData --space "RT" --exportType "groups"


--action exportData --space "RT" --exportType "users" --options "includeGroups"


We have opened a support ticket, to better track your request. However, we couldn't add you as a reporter.  Please sign up using this link  and share the user name/id. We'll then add you as the reporter and confirm. 



Hi Reshma, thanks for your support. My mail in you ServiceDesk is

please add me on the Ticket.

Another question would be if there is a way to verify that all Pages and attachments were migrateded?

HI @Reshma Begum _Appfire_  @Philipp Wieseckel  can you please add to your support request?


0 votes
Brant Schroeder Community Leader Apr 07, 2021

@Philipp Wieseckel 

I would suggest setting up a new instance and migrating everything to that.  This way you could have a blank slate to start from and test against until you get what you want.  

All instances will need to be on the same version.

Do you have users in multiple directories?  (Same email, username, etc.)  This will causes issues and you will need to merge them.  

After the new instance is setup and all the directories have been attached you should be able to follow these steps.

  1. Export spaces by either:
    1. Individually Export the desired space as a full XML backup
    2. Or per this community post, utilize Bob Swift's Confluence Command Line Interface (CLI)'s and its exportSpace action to bulk export spaces to XML
  2. Restore each of the spaces to target Confluence instance

REMINDER: You can't import into an earlier version of Confluence. So if the Confluence instances are on different versions, you may be limited by this and need to upgrade   For example, if you export a space from Confluence 5.9, you can't import it into Confluence 5.5.

Also, if the space to be imported is very large, you may need to temporarily increase the memory available to Confluence. See How to fix out of memory errors by increasing available memory

Thanks Brant!

Sounds like the best approach to me.

We do have users in different directories, all the instances are using their own internal directory right now.

Like Brant Schroeder likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events