mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-17 13:14:10 +08: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