Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,655
Community Members
 
Community Events
165
Community Groups

Disable XML backup via jira-config.properties

Hi all,

we are running Jira inside Kubernetes and are currently looking for a solution how to programmatically disable XML Backup completely.

According to Atlassian's official statement, it is highly recommended to disable the scheduled XML backup:

However, now we have the problem that we can't find a solution how to disable the scheduler via jira-config.properties.

While there is an option to disable an export via the property "jira.autoexport=false", this seems to only apply to the backups that are automatically created during an upgrade and not to the default scheduled backups as configured under Advanced -> System.

The following issue also explicitly mentions that the property is there for a different purpose and our tests have also shown that "jira.autoexport=false" has no effect on the scheduler:

We explicitly don't want that the administrator disables the scheduler manually via the UI, instead we want to solve the task in Kubernetes via a configmap with the jira-config.properties.

Are there any experience reports or alternative solutions on how we can influence the behavior on the code side?

 

Kind regards,

Matthias

1 answer

0 votes

Welcome to the Atlassian Community!

I think you might have missed what the different backup flags are for, like I did when I first ran into them.

The crux of this one is "we can't find a solution how to disable the scheduler via jira-config.properties."

You're not supposed to, that is not what it is for.

"jira.autoexport=false" is a flag for those of us who are doing upgrades where we've already taken a proven backup and don't need it.  It's even more useful for those of us doing chained upgrades!

Last Autumn, I did a chained upgrade on a large system.  Without it, we could take the 7.3 system to 7.13 to 8.0 to 8.5 in about 39 hours.  Turn off the auto export (and auto index) because we were never going to roll-back to an intermediate step, we got down to 8 hours.

The flag has nothing to do with what you have configured in your system backup settings.  You will need an admin to check and correct those settings.

Hello and thank you for the feedback.

We had contacted the official Atlassian support at the same time and there we got the info that the feature should actually affect scheduled backup as well and not exclusively for backups in the context of upgrades:

Normally the property  'jira.autoexport=false' is enough BUT you will need to restart Jira node.

Since you are using Jira on Kubernetes I will request to validate the use of the parameter and confirm no XML backup will be created after adding this parameter and restarting Jira.

So according to your feedback, there is actually no programmatic solution, but only the way via the UI, right?

Kind regards

Matthias

Mmm, that's not what they told me last time I asked about it (albeit, that was a few years back).  And my question was for Server, not DC.

I was told the only way to turn off the regular export was via the UI (or smack the flag in the database and restart Jira)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.8
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,237 views 35 44
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