physical

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MethodName = "mariadb-backup"

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	// contains filtered or unexported fields
}

Method implements method.Method for mariadb-backup (physical/hot backup).

func New

func New(cfg method.Config) *Method

New creates a Method with the given MariaDB config.

func (*Method) Backup

func (m *Method) Backup(ctx context.Context, tempdir string, logger logging.Logger) error

Backup executes mariadb-backup --backup, writing data files into tempdir.

func (*Method) MethodName

func (m *Method) MethodName() string

MethodName returns the registry identifier for physical backups.

func (*Method) Prepare

func (m *Method) Prepare(ctx context.Context, tempdir string, logger logging.Logger) error

Prepare executes mariadb-backup --prepare on the backup data in tempdir.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL