Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Shell script with crontabs

We are using JIRA in LINUX environment and we are working on to wtite shell scripts with shedular times. we need a clear explination on these following requests.

1.Deleting old log files – logs that are older than 90 days on Jira server.

2. Recovering disk space are

  • Jira home /log
  • Jira home /export
  • Jira install /temp
  • Jira install /work
  • Jira install /log

1 comment

I would recommend using logrotate instead of a shell script - the configuration is more simple, it's a standard Linux utility and it's almost certainly already in use on your system for cleaning system log files

I would also drop "work" from that list, as destroying files in there while Jira is running can cripple your system (and you shouldn't need to), and limiting the scope of what you delete in "temp" to older image files too.

Hi Nic Brough,

Can you please give more information on logrotate with sample examples.

I usually work from but it is a little dry and short of examples, a better one with sample configs that are a good starter (but older) is at

Note that both contain a lot of installation stuff.  Try "logrotate --version" first - if that returns a version, you can skip reading most of the installation stuff, as you already have it (a lot of Linux distros install it by default)

Hi Nic Brough,

Thank you so much for your quick responce.

I'm very new this configuration so I want to share my system and setup for once a while then its makes me more comfortable on this issue.


Log in or Sign up to comment

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