Skip to content

Make "gitea dump" respect hardlinks for backup #2682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mxmehl opened this issue Oct 9, 2017 · 6 comments
Closed

Make "gitea dump" respect hardlinks for backup #2682

mxmehl opened this issue Oct 9, 2017 · 6 comments

Comments

@mxmehl
Copy link

mxmehl commented Oct 9, 2017

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.

@bkcsoft
Copy link
Member

bkcsoft commented Oct 10, 2017

Gitea does no such thing. git clone however does that. And it's nothing Gitea can keep track of and is just "random git magic" that we can't handle efficently in gitea dump. And while it's not explicitly stated, gitea dump is sort-of depricated and unmaintained in favour of #1637

@mxmehl
Copy link
Author

mxmehl commented Oct 11, 2017

@bkcsoft Thanks for working on backup. However, I wonder why you cannot use tar instead of zip. This would preserve the magic git created while zip breaks these hard links AFAIK.

@bkcsoft
Copy link
Member

bkcsoft commented Oct 11, 2017

Baiscally because Windows compatibility :/

@hoonetorg hoonetorg mentioned this issue Oct 12, 2017
5 tasks
@XANi
Copy link

XANi commented Oct 30, 2017

what "windows compability" ? pretty much any popular archive manager supports .tar.gz

@stale
Copy link

stale bot commented Feb 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Feb 11, 2019
@stale
Copy link

stale bot commented Feb 25, 2019

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale bot closed this as completed Feb 25, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants