Using Jira Data Center 9.4.1, is there a way to automate or schedule the removal of backup files that are created under /var/atlassian/jira/export that are of a certain age, say older than 3 months or 1 month? I suspect that I would need to come up with a cron job to execute a script that removes files per their timestamps.
Also, is there a way to change how Jira creates backup files, namely instead of YYYY-MMM-DD--hhmm.zip (2023-Feb-01--1200.zip), it would name it YYYY-MM-DD--hhmm.zip (2023-02-01--1200.zip)?
Three thoughts:
find /mnt/data/atlas/db -name "*.zip" -type f -mtime 14 -exec mv {} /mnt/atlas-db-archive \;
When you're doing the backup "properly" (of course, I do not know your circumstances, so it may well be that XML is fine for you), turn of the XML, it's just burning electricity and disk space!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.