Open Android-X13 opened 1 month ago
Hi, bro, I have solved my issue. https://github.com/go-gitea/gitea/issues/31093#issuecomment-2132775579, hope this could help you too.
In my case I did use the correct path despite the outdated docs:
mv gitea-dump/repos/* /var/lib/gitea/data/gitea-repositories/
However the gitea dump
command had backed up the directory structure of the repositories incorrectly.
I had 2 organizations, one of which was empty (with no repos), and the following directory structure:
/var/lib/gitea/data/gitea-repositories/org1/
/var/lib/gitea/data/gitea-repositories/org2/
The gitea dump
command skipped the creation of the org directories, apparently because one of them (org2
) was empty, and put all .git
files of org1
directly under the repos
directory. This wouldn't happen if org2
had at least one repository.
I fixed it manually but since this is a bug of the gitea dump
command I'm leaving the issue open.
i had this same issue as @Android-X13 when no organizations existed and only one admin user.
Description
Gitea backup is created via one of the following commands (I have tested both):
sudo -u git gitea dump -c /etc/gitea/app.ini
sudo -u git gitea dump --database sqlite3 -c /etc/gitea/app.ini
Restoration commands:
I can see all the issues in the Issues tab and all the repositories in the Explore tab. However when clicking on either an issue or a repository I get the following message:
Gitea Version
1.21.11
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Binary download, systemd
Database
SQLite