mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-28 03:00:03 +02:00
command dump
This commit is contained in:
parent
bb0bc0a240
commit
a641854cad
7 changed files with 43 additions and 28 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue