Copy page and attachments to another site

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

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

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.

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

63 views 3 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you