Skip to content

gitea dump does not include lfs folder if LFS_CONTENT_PATH is set to a custom folder #10058

Closed
@gtino

Description

@gtino
  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

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 the lfs folder is somewhere else. Of course adding a link does not work.

...

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions