Copy page and attachments to another site

justindowning
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2011

I have two Confluence servers. I would like to copy a page and all of its attachments from one site to another. What is the best way to go about doing this? (I'm not adverse to using the command line on each site if necessary)

2 answers

1 accepted

1 vote
Answer accepted
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2011

Confluence Command Line Interface use something like confluence --action copyPage --targetServer ...

justindowning
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2011

Thanks Bob! This worked great! I just add to add the --copyAttachments directive and I was in business.

One more thing to note while I was testing this...my targetServer had HTTP Basic Auth built into Tomcat. I was able to use Confluence CLI by adding the username and password to the address. See https://studio.plugins.atlassian.com/browse/CSOAP-30 for more info.

0 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2011

you could do it through the front end if you don't want to do anything too complex. Assuming that both Confluences are the same version.

1. Create a dummy export space, keep it empty

2. Move your page across to the dummy export space.

3. Export the space

4. Re-import to the other confluence

5. Move the page to it's final space

6. Delete the dummy export space in both the new & old confuences.

It's not ideal if you are going to be doing a lot of this as it's creating & destroying spaces but you could always omit the last step & have just the one space used to ferry content between servers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events