2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 23:27:17 +08:00
Files
panel/internal/backup.go
2024-06-23 01:32:45 +08:00

19 lines
565 B
Go

package internal
import (
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/pkg/types"
)
type Backup interface {
WebsiteList() ([]types.BackupFile, error)
WebSiteBackup(website models.Website) error
WebsiteRestore(website models.Website, backupFile string) error
MysqlList() ([]types.BackupFile, error)
MysqlBackup(database string) error
MysqlRestore(database string, backupFile string) error
PostgresqlList() ([]types.BackupFile, error)
PostgresqlBackup(database string) error
PostgresqlRestore(database string, backupFile string) error
}