mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
21 lines
587 B
Go
21 lines
587 B
Go
package internal
|
|
|
|
import "github.com/TheTNB/panel/app/models"
|
|
|
|
type Backup interface {
|
|
WebsiteList() ([]BackupFile, error)
|
|
WebSiteBackup(website models.Website) error
|
|
WebsiteRestore(website models.Website, backupFile string) error
|
|
MysqlList() ([]BackupFile, error)
|
|
MysqlBackup(database string) error
|
|
MysqlRestore(database string, backupFile string) error
|
|
PostgresqlList() ([]BackupFile, error)
|
|
PostgresqlBackup(database string) error
|
|
PostgresqlRestore(database string, backupFile string) error
|
|
}
|
|
|
|
type BackupFile struct {
|
|
Name string `json:"name"`
|
|
Size string `json:"size"`
|
|
}
|