Can/should you source control the JIRA_Home directory?

Adam White July 16, 2013

Is it a good idea to have the JIRA_Home, and Confluence_Home directory (including attachments) in a source control system such as SVN? I was wondering if anyone here did that.

3 answers

1 accepted

1 vote
Answer accepted
Andy Brook [Plugin People]
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.
July 16, 2013

Well, maybe, keeping a backup of your HOME folder is always a good idea ( and your database), preferably scheduled close together.

If you discount certain structures e.g. indexes, attachments folders etc, transitory osgi plugin folders, you'll get a reasonable snapshot, but, you're never going to go back, and the HOME folder is only half the story, ideally you'd need to synchronise the two, how /when are you backing up the database that contains all your page data?

Are you happy checking in JAR files into SVN? what is the advantage of having this instead of a timestamped stored on a filesystem (has the advantage of being purgeable).

In the past, I would always use a .tgz, on a non-windows platform to avoid file locking issues.

0 votes
Harry Chan
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.
July 17, 2013

You *can*, but I don't recommend it. A lot of files change all the time. Not sure that there is much point. Is the aim to roll something back to a point in time? I think snapshots would be a better idea in this case. It's hard to roll back a single file in JIRA regardless as it might cause problems elsewhere.

You can keep configuration files in SVN. That sounds like what you might keep.

Performance might also degrade with adding SVN.

0 votes
Adam White July 16, 2013

We're planning on doing regular backups to the database in addition to the files stored in Program Files/ Atlassian. I was just curious if anyone had done this in addition to the normal DB backups.

Andy Brook [Plugin People]
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.
July 17, 2013

If you are very particular with you .svnignore you could capture certain key configuration files in SVN, with the clear result of being able track who made what changes when. Of course, there is the chance that automated changes may be made that you might not be aware of. As mentioned above, whole hog SVN commit is likely to do bad things to your SVN (unnecssary bloat, loading, etc).

Suggest an answer

Log in or Sign up to answer