Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

845 B
Raw Blame
package restores_core

import (
	"databasus-backend/internal/features/databases/databases/mariadb"
	"databasus-backend/internal/features/databases/databases/mongodb"
	"databasus-backend/internal/features/databases/databases/mysql"
	postgresql_logical "databasus-backend/internal/features/databases/databases/postgresql/logical"
)

type RestoreBackupRequest struct {
	PostgresqlLogicalDatabase *postgresql_logical.PostgresqlLogicalDatabase `json:"postgresqlDatabase"`
	MysqlDatabase             *mysql.MysqlDatabase                          `json:"mysqlDatabase"`
	MariadbDatabase           *mariadb.MariadbDatabase                      `json:"mariadbDatabase"`
	MongodbDatabase           *mongodb.MongodbDatabase                      `json:"mongodbDatabase"`
}

type RestoreOptions struct {
	IsExcludeExtensions bool
	IsSkipUserMappings  bool
}