June 16, 2025

Jira & Confluence Data Center to Cloud Migration Guide (2/5)

Phase 2: Preparation & Pre-Migration Cleanup

This phase is all about getting your hands dirty safely — by building a staging setup that mirrors production as closely as possible. It’s where you validate assumptions, uncover app limitations, and script anything that can (and should) be automated.

2.1 Create Staging Environment

Before running any test migration, you’ll need a safe, isolated copy of your current Jira or Confluence instance — a staging environment. Think of this as your sandbox: a place to simulate the migration, validate results, and refine your runbooks without affecting your live users or raising eyebrows from other teams.

2.1.1 Common questions

Let’s start with some frequent questions before diving deeper into the creation of staging environments.

2.1.1.1 Why do I need a staging environment?

Your production instance is not the place to experiment. A staging environment allows you to test safely, without disrupting active teams or unintentionally exposing data. During this phase, you won’t just run the Migration Assistant — you’ll also execute scripts to detect or clean up data, validate app usage, or simulate user mappings. All of this can impact performance. And trust us, your teammates won’t appreciate it if filters suddenly stop working or dashboards disappear because you were “just testing something.”

Many migration blockers — such as corrupted workflows or misconfigured fields — also require direct database fixes, especially in legacy Jira Data Center setups. You want a safe place to run those fixes before touching production.

2.1.1.2 Do I really need one?

It depends on your size — but for most teams, the answer is yes. If you have a small user base (say, fewer than 50 active users) and a simple setup, your SMEs might be able to work with caution directly on production. Even then, we still recommend having a staging environment to test app behaviour, user permissions, and run full validations.

For enterprise setups, complex workflows, or custom apps — a staging environment is non-negotiable.

2.1.1.3 Where do I set it up?

If you’re unsure whether a staging environment exists, start by asking your Jira admin — most will know. If they don’t (yes, it happens), don’t worry. It’s not difficult to spin one up. In the following sections, we’ll cover how to build one for on-premise infrastructure, public cloud platforms like AWS, Azure, GCP, and Hetzner, or even containerised setups.

2.1.1.4 How long does it take?

That depends on how you build it. If you go the manual route, setting everything up from scratch can take a few days to a full week. Using Atlassian’s cloud templates is faster — environments are often ready in just a few hours.

With DevOps automation tools (like Terraform, Ansible, or Docker), the setup can be completed in minutes. But remember: setup is just the beginning. You’ll also need to copy over your data — including attachments, user directories, and app configurations. That part can take anywhere from a single day to a couple of weeks, depending on the size and complexity of your instance.

2.1.2 Architecture & Provisioning

2.1.2.1 On-premise resources

If your company manages its own infrastructure, request two new servers: one for the application and one for the database. Most internal IT teams already have a process for this. If not, start with the basics: match the same operating system, database version, and specifications of your production environment.

You can find the OS and database version from your current Jira by visiting:

https://<your_jira>/secure/admin/ViewSystemInfo.jspa

Now the installation is simple — just follow the Atlassian official installation guide.

2.1.2.2 Public cloud

If your infrastructure runs on AWS or Azure, the setup is even faster. Both providers offer preconfigured templates to deploy Jira and Confluence Data Center with minimal effort. You can start with the Jira template for AWS or the Azure deployment guide. For more flexible or cost-efficient options, we’ve published Terraform scripts covering AWS, Azure, GCP, and Hetzner in our public repo. If something’s missing or doesn’t behave as expected, feel free to request a deployment demo — no commitment needed.

2.1.2.3 Containerised solution

For smaller environments — under 500 active users — Docker can offer a fast way to build a local testing environment. Here’s a minimal example:

version: "3"
services:
  jira:
    image: atlassian/jira-software:9.12
    ports: ["8081:8080"]
    volumes:
      - ./jira:/var/atlassian/application-data/jira
    depends_on: [db-jira]
  db-jira:
    image: postgres:9.6
    environment:
      - POSTGRES_DB=db_jira
      - POSTGRES_USER=u_jira
      - POSTGRES_PASSWORD=JIRA_DB_PASS_CHANGEME
    volumes:
      - ./postgresql-jira:/var/lib/postgresql/data

2.1.3 Restoring Data

There are two main ways to restore your data into the staging environment. Refer to the diagram below to understand the differences and choose the most appropriate approach for your setup.

2.1.3 Restoring Data

2.1.3.1 Full backup
If your instance has over 1,000 users, this is the most recommended approach. First, ensure you’re using the same database technology, engine, and version as your production environment. You’ll need your DB team to create a full backup of the production database and restore it into the database of the staging environment. The specific backup and restore process will vary depending on your DB engine, so we plan to cover this in a dedicated technical article. Meanwhile, Atlassian provides useful documentation here: Backing up the database.
2.1.3.2 Restore using XML backup
This method is not recommended for large instances, but at WiQU we’ve made it work for environments with up to 5,000 users. The process is simple: navigate to the following admin page to generate a backup:
https://<YOUR_JIRA>/secure/admin/XmlBackup!default.jspa
The XML backup file will be saved in your server, typically under:
/var/atlassian/application-data/jira/export
To restore it, use the following admin path:
https://<YOUR_JIRA>/secure/admin/XmlRestore!default.jspa
Provide the file path, disable outgoing email, and launch the restore process. Note: XML imports frequently fail due to encoding or character issues. This article explains common causes and fixes: XML backup import fails with GenericEntityException.
2.1.3.3 Transfer attachments
Regardless of whether you use a full backup or XML, attachments must be transferred manually. To find the attachment directory in your production instance, visit:
https://<YOUR_JIRA_INSTANCE>/secure/admin/ViewSystemInfo.jspa
Look for “Location of attachments” — this will show you where attachments are stored on disk. How you copy those files will depend on your environment. It’s best to coordinate with your system engineer. We’ll share additional guidance for various architectures in a future article.

Conclusion

This second phase — Preparation & Pre-Migration Cleanup — is where your migration begins to take shape. It’s the point where assumptions are tested, automation scripts are refined, and blockers are uncovered without risking live operations. At WiQU, we’ve seen that teams who invest the time to replicate their production environment, validate data handling, and iron out inconsistencies are the ones who experience smoother, faster, and more predictable cutovers.

Articles Related

Let us know what you need and get up to 2 days of consultancy at no cost

Browse guides, templates, and how-tos we’ve published for public use

Just want to talk? – Scroll down, pick a time that suits you, and let’s chat.

Sign Up for Updates and Access to the WiQU Portal

Register on our portal to receive the latest updates, training resources, and access to support tools designed to enhance your experience.

WiQU
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.