How to sync outdated Test Jira with current Prod Jira?

Hey everyone,

I’m in a bit of a pickle with our Jira setup. Our test environment is super outdated and it’s causing some headaches. We’ve got a mix of Microsoft and Linux servers, with Jira running on the Linux side.

I’ve managed to SSH into the Linux box, but now I’m totally lost. I’ve been googling for hours trying to find a guide with the right commands to update our test Jira from prod, but no luck.

Anyone here dealt with this before? I’d really appreciate some pointers on the Linux commands I need to use. I’m not a Linux guru, so step-by-step instructions would be amazing.

Thanks a ton for any help you can offer!

Syncing Jira environments can be tricky, especially if you’re not familiar with Linux. First, ensure you have proper backups of both environments. Then, you’ll want to use rsync to copy the Jira home directory and database from prod to test. Something like:

rsync -avz /path/to/prod/jira/home user@test-server:/path/to/test/jira/home

For the database, dump it on prod, transfer it, then restore on test:

pg_dump -U jirauser jiradb > jira_backup.sql
scp jira_backup.sql user@test-server:/tmp/
psql -U jirauser jiradb < /tmp/jira_backup.sql

Remember to update any config files with test-specific settings after syncing. Always test thoroughly after such operations.

I have faced this scenario myself and found that using Atlassian’s built-in backup and restore feature can simplify the process if direct command line manipulation isn’t your strong suit. In production, I created a full backup via the System > Backup Manager, then downloaded the backup locally. Next, in the test environment, I navigated to System > Restore System and uploaded the backup file, following the guided restoration process. This method avoids dealing directly with Linux commands and minimizes errors, though it is important to adjust any environment-specific settings afterward and test thoroughly.

hey mike, been there before. it’s a pain! have u looked into jira’s data center migration tool? it’s pretty slick for syncing environments. just download it, run it on ur prod server, and it’ll generate a migration file. then upload that to ur test jira. way easier than messing with linux commands. good luck!