I'm trying to clone the VM my confluence is on so I can have a development server to test on, i'm not having success and was wondering if you had a guide on how to do this or if it is even possible.



1 answer

0 votes
Davin Studer Community Champion Jun 27, 2016

This is what I do to create/refresh our dev server. This is based on the steps from this document.


  • Install the same version as is currently in prod to the non-prod server.
  • Launch Confluence in a browser to configure the install. You will need to visit my.atlassian.com to get a developers license for Confluence.
  • Put the license into the web page and start a Production Installation
  • Stop Confluence on the non production server.
  • Take a backup of the production Confluence database.
  • Delete the Confluence database on the non production server.
  • Restore the backup of the production database to the non production server.
  • Edit the confluence.cfg.xml file in the home directory of the non productions server and ensure the database connection is not pointed to production.
    • The home directory location is stored in a configuration file called confluence-init.properties, which is located inside the confluence/WEB-INF/classes directory in your Confluence Installation directory.
  • Zip the Confluence home directory on the production server.
  • Copy the zip file from the production server to the non production server.
  • Unzip the file and move all of the contents except the index folder and the confluence.cfg.xml to the home directory on the non production server.
  • Delete the index folder on the non production server and then create a new folder called index
  • Move the edge and plugin folders from the production index folder to the non production index folder that you just created.
  • Run these two sql statements against the non-production database
    • delete from Confluence.dbo.BANDANA where BANDANAKEY = 'atlassian.confluence.smtp.mail.accounts'
    • delete from Confluence.dbo.BANDANA where BANDANAKEY = 'atlassian.confluence.space.mailaccounts'
  • Restart the Confluence service.
  • Set the Server Base Url in Confluence Admin -> General Configuration
  • Go to Confluence Admin -> Administration -> Content Indexing and rebuild the index.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,088 views 17 14
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