Per many recommendations (including Atlassian's) I have been backing up my JIRA instance using:
- A full native DB backup (`pg_dumpall` for postgres in my case)
- A snapshot of the JIRA data dir
Now I am trying to actually do a restore to a brand new server (the old one is gone) and am having trouble getting it to work.
First, when I fully restore the database in advance of the JIRA installation, JIRA does not recognize the existing data at all and goes though the process of a fresh DB creation. When the installation is complete, the data is definitely not in JIRA... presumably because JIRA altered the restored database (but I didn't dig into this).
Next I did afew variations of the following:
- Stop JIRA
- Drop the JIRA DB
- Re-run the postgres restore script (`psql -f pg_backup_file postgres` as user postgres)
- Stop and restart PostgreSQL (for good measure)
- Restore the JIRA data dir snapshot
- Ensure the DB connection works properly for JIRA
- (I had to change the user password, so I fix DB connectivity by either altering `dbconfig.xml` directly and/or changing/testing with `config.sh`)
- Restart JIRA
- Connect to my JIRA URL
When I do this, JIRA still does not recognize any of the restored project data. I can log in successfully to JIRA, but he project list is empty.
What is the correct way to restore JIRA from a full database backup?