dump-repo
command is somewhat dangerous: removing the data directory if failed.
#20191
Labels
issue/critical
This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP
type/bug
DumpRepository -> migrateRepository -> uploader.Rollback -> os.RemoveAll(g.baseDir)
If migrateRepository returns error, then the data directory is removed completely.
I have run
gitea dump-repo
in the gitea directory, then the Gitea's data directory (including sqlite database, repositories) is removed, all lost (luckily not on production).The text was updated successfully, but these errors were encountered: