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

This widget could not be displayed.

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.

This widget could not be displayed.

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

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

504 views 7 6
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