# When are repo archives generated?

**URL:** <https://forum.gitea.com/t/when-are-repo-archives-generated/9278>\
**Category:** General\
**Created:** [June 7, 2024, 4:16pm UTC](https://forum.gitea.com/t/when-are-repo-archives-generated/9278 "2024-06-07T16:16:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![truh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/truh/32/6007_2.png) [@truh](https://forum.gitea.com/u/truh)\
**Post date:** [June 7, 2024, 4:16pm UTC](https://forum.gitea.com/t/when-are-repo-archives-generated/9278/1 "2024-06-07T16:16:47Z")

</div>

Like other users I somewhat regularly have repo-archives filling up my entire disk (deleted 900 GB of archives just now). Since I don’t often download my repos as archives, don’t really have any other active users, and don’t think there too many anonymous users on my server either, I would like to know why they are even generated.

Does gitea just zip every commit just in case someone wants it?

---

<div class="post-metadata">

**Author:** ![Sayan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/sayan/32/6004_2.png) [@Sayan](https://forum.gitea.com/u/Sayan)\
**Post date:** [June 11, 2024, 10:43am UTC](https://forum.gitea.com/t/when-are-repo-archives-generated/9278/2 "2024-06-11T10:43:11Z")

</div>

Gitea creates repo archives when a user downloads a repository as a zip file, not automatically with each commit. Check for frequent downloads or automated processes if your disk is filling up. Review user activity and consider configuring archive cleanup.  
I hope you find it helpful.

---

<div class="post-metadata">

**Author:** ![truh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/truh/32/6007_2.png) [@truh](https://forum.gitea.com/u/truh)\
**Post date:** [June 11, 2024, 12:19pm UTC](https://forum.gitea.com/t/when-are-repo-archives-generated/9278/3 "2024-06-11T12:19:04Z")

</div>

I’ve configured archive cleanup but it doesn’t do anything. The “Delete all repository archives” in my admin dashboard also doesn’t free up space. I haven’t found time yet to investigate and formulate a post about that.

---

<div class="post-metadata">

**Author:** ![Sayan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/sayan/32/6004_2.png) [@Sayan](https://forum.gitea.com/u/Sayan)\
**Post date:** [June 12, 2024, 6:25am UTC](https://forum.gitea.com/t/when-are-repo-archives-generated/9278/4 "2024-06-12T06:25:59Z")

</div>

Repository archives in ‘gitea’ are typically generated when you specifically request them, like when you download a zip or tar.gz file from the UI. They are not automatically generated at set intervals.

Hope that helps clarify things

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [June 24, 2024, 4:51pm UTC](https://forum.gitea.com/t/when-are-repo-archives-generated/9278/5 "2024-06-24T16:51:38Z")

</div>

The archives are generated on-demand, and a cron job will periodically run to see if any archives are older than the threshold set for deletion. If your archives are taking up too much space, you can set the cron job to run more frequently and to lower the threshold.

You can also disable archives with: `DISABLE_DOWNLOAD_SOURCE_ARCHIVES`  
The cleanup cron can be found here: [Config Cheat Sheet | Gitea Documentation](https://docs.gitea.com/next/administration/config-cheat-sheet#cron---cleanup-old-repository-archives-cronarchive_cleanup)
