Skip to content

Add --skip-repo-archive option to gitea dump #35450

@h7x4

Description

@h7x4

Feature Description

Hello!

We are running an gitea instance on a somewhat space limited system. We are struggling with large gitea dumps, and the main space offender seem to be that the dumps include all of the zips and tarballs generated whenever someone clicks the download link on a repo (likely scrapers and bots for the most part). We don't see any need to keep these files in the dumps, as they can easily be regenerated whenever needed.

We have thought about working our way around this by either:

  • deleting the archives right before gitea dump (not great, we'd like to just have the builtin cronjob purge them at a reasonable time)
  • unpacking the dumps afterwards, removing the repo archives and repacking (not great either, unnecessary use of disk and compute, need more space for temporary storage of the files).

Would it be possible to add yet another --skip-* option for the repo archives?

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposal/acceptedWe have reviewed the proposal and agree that it should be implemented like that/at all.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions