-
-
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
gitea dump does not include lfs folder if LFS_CONTENT_PATH is set to a custom folder #10058
Comments
@gtino Which Gitea version did you use? |
Gitea Version: 1.11.0+rc2 |
Looks like lfs are not dumped on official 1.11 release either. Is there maybe a setting that I am missing? I am zipping them separately myself, but it would be a lot easier if Gitea was taking care of dumping them along with the other files... |
I am experiencing a similar issue (no LFS in backup with custom |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
@PhilippHomann would you like to offer your fix as a PR to Gitea? |
* Dump: Use mholt/archive/v3 to support tar including many compressions Signed-off-by: Philipp Homann <[email protected]> * Dump: Allow dump output to stdout Signed-off-by: Philipp Homann <[email protected]> * Dump: Fixed bug present since go-gitea#6677 where SessionConfig.Provider is never "file" Signed-off-by: Philipp Homann <[email protected]> * Dump: never pack RepoRootPath, LFS.ContentPath and LogRootPath when they are below AppDataPath Signed-off-by: Philipp Homann <[email protected]> * Dump: also dump LFS (fixes go-gitea#10058) Signed-off-by: Philipp Homann <[email protected]> * Dump: never dump CustomPath if CustomPath is a subdir of or equal to AppDataPath (fixes go-gitea#10365) Signed-off-by: Philipp Homann <[email protected]> * Use log.Info instead of fmt.Fprintf Signed-off-by: Philipp Homann <[email protected]> * import ordering * make fmt Co-authored-by: zeripath <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: Matti R <[email protected]>
[x]
):Description
Running gitea on Windows Server 2019 with LFS enabled. The command:
gitea dump ...
does not include the lfs folder if the folder is not in the default folder (e.g.
c:\Program Files\Gitea\data\lfs
).I have my lfs folder in a RAID 1 volume (just like the repos and everything I need to backup) at
D:/Gitea/data/lfs
and I did set:LFS_CONTENT_PATH = D:/Gitea/data/lfs
Im not a go expert but by reading the dump.go code looks like it simply includes the folders under
c:\Program Files\Gitea\data
without checking if thelfs
folder is somewhere else. Of course adding a link does not work....
Screenshots
The text was updated successfully, but these errors were encountered: