You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I want to move multiple spaces from one instance to another instance on another server. Also there is version difference as well (moving from 6.13 to 6.8). I have tested the export and import by doing it one at a time but i want to know if I can do all the spaces in one go since there are so many of them.
Also, will it move users associated with those spaces automatically or not.
Thanks for any assistance.
You will have to do it one by one (unless you're willing to completely destroy the target and get nothing but a copy of the entire source system).
One trick that might help - consolidate your source spaces together, then de-consolidate after merge.
I was facing the same issue. No API to do the task...
So i am using a custom built Selenium script in Powershell to perform the task.
What i do is open the all spaces page, scroll down until the web element with all spaces is populated, fetch all spaces and their keys, then open a new tab in chromedriver for each space and enter this URL:
Then press buttons accordingly and trigger download, then wait for completion status, for example like this:
"[int]$completionElement = (SELChromeMGM -SELGetElements $True -ChromeDriverName "ChromeDriver1" -SELocatorType "Id" -SELocatorValue "percentComplete").Text"
And if it reaches 100, click the download button, close tab, until all tabs / spaces have been processed and are closed.
Then move the HTML exports to our storage.
The only problem i see with the workflow as of now, is you can only trigger 1 export per account it seems. When i was finished scripting, and let the loop run through, i figured that much:
"The following error(s) occurred:
Already running this task."
But it should be easy to bypass, simply by either using multiple service accounts to perform the task, or wait till one export is done, then do the next.
I made sure that for the web elements i am using attributes that hopefully do not change, or only change rarely, and wrapped everything in a try and catch, and check content before every step. So time will show how often i have to change something, but as of now, it is running since some weeks without any further a do.
I hope that gives you some ideas on how to solve it. ;)
PS: This helped to check for workflow/task status outside the chromedriver instance:
Hi, @Nic Brough -Adaptavist- ,
I am having same task coming up in few days to migrate around 80+ spaces from once Confluence server to another running production instance.
I will like to try your suggestion of consolidation of source spaces at the source instance . can you please describe what you mean? as I understand, I need to move all the spaces from their top page into once single space , migrate that single space to target space and then move out all those spaces (taking the top for the respective page). am I right? please correct me if understood wrong.
Let's imagine you have a simple Confluence with three spaces:
To consolidate, you can
Now you can export and import Space-consolidate, then, when it is imported, create new spaces in the target and move all the top-level pages into them.
Yes, I think your understanding was correct too! You did ask for a description, and I thought a short worked example would confirm your thinking.
and that was indeed very helpful @Nic Brough -Adaptavist-
Now I can proceed with this solution in confidence.
the reason I want to go with this solution is that I have seen in past when you import multiple spaces, sometimes the import breaks due to some multiple db entries of already imported spaces...