-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Feature request: Use zstandard compression instead of zip for gitea dump? #14290
Comments
I can try myself on this. Found a good CGO-free implementation: https://pkg.go.dev/github.com/klauspost/compress/zstd . Does anyone mind depending on this? Another option is using system archiver on *nix. |
I just made a backup of a large instance and would welcome such a feature. Zstandard would already be faster, but when using it multithreaded (zstdmt), it could go even faster. |
(24 Jul 2022) The package already being used, https://github.com/mholt/archiver/v3, (now) supports Zstd. I had a look to |
- Add `.tar.zst` as supported output type. - Resolves go-gitea#14290
- Add `.tar.zst` as supported output type. - Resolves #14290
is it just me or are the resulting archives twice the size of I'm a fan of zstd, I am aware of what it can do but if this Gitea setting is using zstd's default compression level ( perhaps exposing some knobs in the future could cater to users wishing to tweak at least the compression levels of zstd... |
- Add `.tar.zst` as supported output type. - Resolves go-gitea#14290
You can actually specify the level for z standard to use via a environment variable. Look in the reference manuals. I was able to do this with the tar version via a environment variable.
Sincerely
Thomas Munn
…________________________________
From: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf ***@***.***>
Sent: Wednesday, August 10, 2022 7:24:07 AM
To: go-gitea/gitea ***@***.***>
Cc: Thomas ***@***.***>; Author ***@***.***>
Subject: Re: [go-gitea/gitea] Feature request: Use zstandard compression instead of zip for gitea dump? (#14290)
is it just me or are the resulting archives twice the size of .zip?
I'm a fan of zstd, I am aware of what it can do but if this Gitea setting is using zstd's default compression level (-3 out of 1-19), that might explain the archive size.
perhaps exposing some knobs in the future could cater to users wishing to tweak at least the compression levels of zstd...
—
Reply to this email directly, view it on GitHub<#14290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABCSE3RUPF4NBHRKIZ225ELVYOGNPANCNFSM4V4DKZAQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
thanks for the reply, did you mean somehow using or did you mean that you were able to make gitea create a tar and then apologies, it just wasn't clear to me from your answer. @symgryph |
Fish format set -gx ZSTD_CLEVEL 19
run your command. The set command is fish shell specific, as I ain't doin no bash!
Sincerely
Thomas Munn
…________________________________
From: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf ***@***.***>
Sent: Tuesday, October 11, 2022 1:26:36 PM
To: go-gitea/gitea ***@***.***>
Cc: Thomas ***@***.***>; Mention ***@***.***>
Subject: Re: [go-gitea/gitea] Feature request: Use zstandard compression instead of zip for gitea dump? (#14290)
You can actually specify the level for z standard to use via a environment variable. Look in the reference manuals. I was able to do this with the tar version via a environment variable. Sincerely Thomas Munn
…
________________________________ From: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf @.> Sent: Wednesday, August 10, 2022 7:24:07 AM To: go-gitea/gitea @.> Cc: Thomas @.>; Author @.> Subject: Re: [go-gitea/gitea] Feature request: Use zstandard compression instead of zip for gitea dump? (#14290<#14290>) is it just me or are the resulting archives twice the size of .zip? I'm a fan of zstd, I am aware of what it can do but if this Gitea setting is using zstd's default compression level (-3 out of 1-19), that might explain the archive size. perhaps exposing some knobs in the future could cater to users wishing to tweak at least the compression levels of zstd... — Reply to this email directly, view it on GitHub<#14290 (comment)<#14290 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABCSE3RUPF4NBHRKIZ225ELVYOGNPANCNFSM4V4DKZAQ. You are receiving this because you authored the thread.Message ID: @.***>
thanks for the reply, did you mean somehow using ZSTD_CLEVEL in the process? could you by any chance provide an example command (e.g. gitea dump -c <config> --type <whattype-you-mentioned-tar>?
I know you can do tar <opts> --zstd or even tar <opts> -I"zstd <zstdopts>", but I don't see how that could be used with gitea directly.
or did you mean that you were able to make gitea create a tar and then zstd-compress it?
apologies, it just wasn't clear to me from your answer. @symgryph<https://github.com/symgryph>
—
Reply to this email directly, view it on GitHub<#14290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABCSE3XMQWDSYSSPMLK67FTWCWPMZANCNFSM4V4DKZAQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
should be sth like |
gitea dump is cool, but would be way cooler if we could use zstandard for compression instead of zip.....
The text was updated successfully, but these errors were encountered: