Confluence SPace move from one Instance to Another

Hi All,

 

I have a Space over our STAG instance, I copied that Space Backup and Moved to our PROD Instance, all the pages have been migrated successfully. but links which are still pointing to STAG instance. This is the Case with all the Pages.

 

Please let me know how could i proceed ahead??

 

Thanks & Regards,
Akash bhardwaj

2 answers

1 accepted

Thank You Stephen,

Can you please let me know under database which table to look at.

 

 

@Stephen Gurnick : Thank You, Can you please let me know which Table i am supposed to look at. I went through Database but couldn't yield much info. Please let me know your views. Thank You, Akash

For operations inside the database, I highly recommend contacting Atlassian support to provide guidance. Going into the database to make modifications can put your Confluence instance into an unsupported configuration, unless you are absolutely sure you know what you're doing. Assuming your Space backup is in XML format, you could use the sed command on this file to replace your stage URL with your production URL before importing back into your database.

Adding to what Stephen wrote. You could use the below on the xml file. Replace the http://<source>; and http://<dest>; with your site specific information. The source and destination should contain a fully qualified domain name, so you don't change URLs that are set correctly. You will need to unzip the archive before you run the command and zip up the files once you are done. perl -p -i -e 's|http://<source>|http://<dest>|g'; entities.xml Always make a backup before you do something like this. Or at the very least save a complete XML backup to a safe location.

This will most likely involve going into the database to update the link URLs. Since Atlassian doesn't support users going into the database to make their own modifications, I suggest you contact support to have them give you a query to use.

-- Stephen

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

852 views 23 12
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