mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
command dump
This commit is contained in:
@@ -160,3 +160,8 @@ func GetStatistic() (stats Statistic) {
|
||||
stats.Counter.Release, _ = orm.Count(new(Release))
|
||||
return
|
||||
}
|
||||
|
||||
// DumpDatabase dumps all data from database to file system.
|
||||
func DumpDatabase(filePath string) error {
|
||||
return orm.DumpAllToFile(filePath)
|
||||
}
|
||||
|
Reference in New Issue
Block a user