Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Safe way to perform a JIRA backup

marafado88 April 15, 2020

Hello everyone,

Till now I have been performing a JIRA backup, while JIRA is not running, having to stop JIRA process and having to launching it next every time it does. I have a python3 script running in this linux machine.

The problem, is that sometimes JIRA doesnt start as supposed, because of no apparent reason.

I know that the database engine postgreSQL is capable of doing database dumps while databases are being used, but the real question is if there is no problem performing a rsync operation on <jira-home>\data\ and <jira-home>\cache\ while JIRA process is running.

Thanks in advance!

1 answer

1 vote
Daniel Ebers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2020

Hi,

there is indeed a chance that a rsync of the caches might now catch all of them. From my experience this is not critical. You can rebuild them with data from database.

When it comes to attachments, avatars and such there is also some chance that some data is missing - especially if you, for example, do a synce every day at midnight but the server crashes high noon. Contrary to re-index which fetches data from database - you cannot restore attachments easily (except asking users to attach their files again, especially those from last hours).

For the part of the not-starting application some more details as well as looking at the log files would be crucial.

Cheers,
Daniel

marafado88 April 24, 2020

Hello Daniel,

In this case it is a dailly backup at midnight, where in case of a major failure, losing a day is not an issue. This is just for a team of 10 persons, so no big deal.

Suggest an answer

Log in or Sign up to answer