Can backups be set to overwrite?

Jon Alderson December 27, 2012

I have a client running Jira version 5.1.4. The other week their webserver hosting Jira / Confluence went down due to a diskspace issue. It was determined that the backups of Jira were consuming a large amount of space as they were not setup to over-write existing backups after XX amount of days. Is there a way to set this up so that they will not run out of drivespace again? Any help is greatly appreciated,

Jon

2 answers

6 votes
Renjith Pillai
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.
December 27, 2012

Actually you can.

Assuming you are doing a daily backup:

  • If you need to store just for a week, use E
  • If you need to store for a month, use d
  • If you need to store for a year, use D

Jobin Kuruvilla [Adaptavist]
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.
December 27, 2012

interesting, haven't seen this before. Where do we give this option?

Renjith Pillai
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.
December 27, 2012

In services for configuring the automatic backups, if you click edit you get an edit box which accepts custom date formats. Basically it's a tweak using the Java SimpleDateFormat

Jobin Kuruvilla [Adaptavist]
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.
December 27, 2012

Awesome. One more "awesome" to make it more than 10 chars!

Jon Alderson December 28, 2012

So I logged into the Jira admin console and simply put in a "e" for the date format, was this the correct way to make the change to the backup retention period?

Renjith Pillai
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.
December 28, 2012

Upper case E for keeping a week's backup

Ileanell Cabrera June 19, 2013

So it will be E-yyyy-MMM-dd-HHmm?

Jeffery Bennett March 24, 2015

The answer is that you would simply enter 'E'. However, JIRA doesn't appear overwrite automatic backups with the same filename. At least not in my Linux install.

1 vote
Jobin Kuruvilla [Adaptavist]
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.
December 27, 2012

There is no option in JIRA using which you can overwrite backups because it uses timestamp in its name. You might want to write a cron job or something to monitor the space or just delete old backups periodically.

Suggest an answer

Log in or Sign up to answer