Find cron task for "Delete all repositories' archives (ZIP, TAR.GZ, etc..)" #395
Labels
No Label
service
accounts
service
discourse
service
drone-ci
service
email
service
garage
service
gitea
service
ipfs
service
mastodon
service
postgres
service
remotestorage
service
wiki
service
xmpp
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
release
major
release
minor
release
patch
security
ui/ux
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#395
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We've found out that the repository archives for mastodon was taking 89GB (!) of disk space, since it's generating an archive for every tag. There's a task on the admin dashboard to run it, but there's nothing in the docs.
There's no way in the docs to disable generating these archives.
Find out how the task is named, and schedule it in the config file (maybe once a week or even every day?)
https://discourse.gitea.io/t/how-to-configure-cron-task-for-delete-all-repositories-archives-zip-tar-gz-etc/4848
As a temporary fix, I added a cron job for root to delete the archive files manually every 15 minutes for now.
hacky af.
according to that forum thread there's
cron.archive_cleanup
andcron.delete_repo_archives
inapp.example.ini
, maybe that's a better solution?See #423, which solved this issue by adding the (undocumented) cron job for the latter task.
However, it's still hacky IMO, since Gitea shouldn't create any archives in the first place, when your repo doesn't opt into that.