remove old backup automatically.

Harish 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

0 votes
Answer accepted
Herbert Ncube 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

2 votes
Elia Oggian 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 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 September 2, 2018
Carsten Junker December 17, 2018

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

0 votes
Harish 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 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