Forums

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

remove old backup automatically.

Harish
Contributor
April 7, 2013

In JIRA 4.4.5 we have a daily xml backup happening and it gets stored in the Export folder under JIRA_HOME.

Is there a way we can have only a weeks backup and the older ones gets deleted automatically.

5 answers

1 accepted

1 vote
Answer accepted
Herbert Ncube
Contributor
April 16, 2013

You can write a bash script that deletes everything older than say 7days or a month and put it on the cron.

This will help restore disk space

3 votes
Elia Oggian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2019

do a cron with this command:

 

find /home/jira/application-data/jira/export -name '*.zip' -mtime +20 -exec rm {} \;
0 votes
Fermulator
Contributor
September 2, 2018

do we have any opensource/shared scripts kicking around?

philoye
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2018

(Wrong post)

Fermulator
Contributor
September 2, 2018
Carsten Junker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 17, 2018

This is NOT related to this question. Your link provides the information neccessary for confluence, not for jira.

0 votes
Harish
Contributor
April 16, 2013

the only way to delete older backups is to write a cronjob.

0 votes
Naren
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 7, 2013

You can write a cron job / batch file for this . Also you can have a look at below useful link to overwrite the jira backup.

https://answers.atlassian.com/questions/119016/can-backups-be-set-to-overwrite

Jeffery Bennett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2015

This response doesn't work as JIRA doesn't appear to overwrite automated backups with the same file name.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events