mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 23:46:14 +02:00
command dump
This commit is contained in:
1 parent
bb0bc0a240
commit
a641854cad
7 files changed
+43
-28
No files matched your search
@@ -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