Skip to content

Make "gitea dump" respect hardlinks for backup #2682

Closed
@mxmehl

Description

@mxmehl

Description

If I understand correctly, Gitea uses hard links for forked repositories which saves considerable amount of space. Unfortunately, gitea dump saves each file individually because zip cannot work with hard links and dereferences them. By that, large repositories which are forked multiple times take up a lot of space in the backup.

I propose to use tar instead which can cope with hard links. However, I'm not sure whether this is compatible with Gitea on other systems than GNU/Linux, or how hard links work on such operating systems.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions