Opened 7 months ago

Closed 7 months ago

#3061 closed task (fixed)

Schedule gitea to purge all archives at midnight

Reported by: robe Owned by: strk
Priority: normal Milestone: Unplanned
Component: SysAdmin/Gitea Keywords:
Cc:

Description

I think the reason the snapshots of trac are so bloated is the scheduler is only set to delete old archives. I think an old is considered something older than 24 hours.

When I clear space I run the job set to delete all archives. I think we need to schedule this one.

Change History (2)

comment:1 by robe, 7 months ago

Okay I couldn't find a way to run that job in cron app.ini - no short-cut listed here - https://docs.gitea.com/next/administration/config-cheat-sheet

However I was able to change the job that deletes old archives to run every hour and delete any archive older than 1 hr with these lines in the app.ini

[cron.archive_cleanup]
ENABLED = true
SCHEDULE = @every 1h
OLDER_THAN = 1h

comment:2 by robe, 7 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.