It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Backup and restore of Jira

paul Sep 27, 2012

I'm testing backup/restore of Jira. My db data sits on MySQL and I back it up with mysqldump. I'm wondering how I need to backup the files/attachments of Jira. The document states I need to back up <Jira Home Directory>/data/ and restore that folder.

Can I or should I backup/restore the entire <Jira Home Directory>?

2 answers

1 accepted

0 votes
Answer accepted
Harry Chan Sep 27, 2012

I'd recommend backup up the entire home directory. There are folders you *can* exclude, e.g. logs, import, export and also the felix cache in the plugins directory.

It'd just be safer this way and save you a lot of time to restore unless space is a major concern.

0 votes
Matthew Cobby Sep 27, 2012

I think it sounds like you are getting a little confused. When backing and restoring up Jira you would probably be talking about the XML export and restore, not a DB dump.

https://confluence.atlassian.com/display/JIRA/Backing+Up+Data

https://confluence.atlassian.com/display/JIRA/Restoring+Data

When you do a restore, the attachments can either be in the import directory or you can just copy the attachment directory an do a re-index afterwards.

You don't need to generally do the whole directory but you should reindex

paul Sep 27, 2012

Actually I do know about XML export/restore. I just chose not to use XML for back up. Atlassian does mention you can use a native tool of the given database to backup (MySQL in my case) so I chose to use mysqldump to back up the database side of Jira.

My question is when I backup/restore files of Jira, can I restore the entire <Jira Home Directory> or just <Jira Home Directory>/data/ (which includes 2 directories: attachments and avatars)?

paul Sep 27, 2012

Just documenting backup/restore procedure.

Matthew Cobby Sep 27, 2012

Sorry, I didn't quite understand from your question. It's always safer to backup more files than less. It's just that when you do an XML import, you can also restore the attachments to JIRA_HOME\import\attachments but you should always backup the entire JIRA HOME to ensure you can fallback if the restore fails.

Are you also moving servers or doing all the work on one server?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

278 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you