![]() ![]() The new pages are all created by the same username, also all comments appear to have been written by the same user. What the code does is a copy page by page. This was run for all the necessary pages.Īs one can see also comments, attachments and labels are copied over. ![]() Run the following command to copy a space: java -jar release/confluence-cli-1.5.0.jar -verbose -server -user 1234 -password XXXXXX -action copySpace -targetServer " -targetUser -targetPassword XXXXXX -space SPACE -newSpace SPACEnew -copyAttachments -cop圜omments -copyLabels(assume that 1234 is my account on the first and my account on the second Confluence instance).Replaced the existing confluence-cli-1.5.jar in the the downloaded package (in directory release).Modified the ConfluenceClient.java file and compile a new confluence-cli-1.5.jar file (the compilation and creation of the new jar file was a little trickier than it sounds).Downloaded and unpacked the source code (it's in Java) using the distribution->confluence-cli-1.5.0.source.zip file.Downloaded and unpacked the CSOAP package (version 1.5) (scroll to where it says Download JAR).I introduced two new arguments targetUser and targetPassword. The solution: I could enhance the CSOAP source code to get the required functionality: different user name and password on the target server. usernames and passwords were different.īecause there exists a SOAP based command line interface using Confluence's remote API which provides a copySpace functionality to the same instance or to a different instance but in its current revision it requires that one uses the same username and password on both source and target servers. but the biggest caveat was that the two instances of Confluence used different access mechanisms (one was using the corporate LDAP and the other an access list of its own) i.e. On the first glance not difficult (just transfer the raw wiki markup text), on second glance challenging when you think about attachments, comments etc. The task was to transfer a number of spaces from one instance to the other. Problem: I didn't have site admin rights on either instance so the natural XML export/import path was closed and I had to find another solution.Ĭontent in Confluence is organized in so called spaces, think of them as topics maintained by lists of users with varying degrees of permissions (admin, read, write, export aso.), each space consisting of a set of pages. ![]() Confluence is a professional enterprise wiki and recently I was tasked with transferring contents from one Confluence instance to another. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |