backup

package
v0.0.0-...-a93b411 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context,
	now func() time.Time,
	name model.Name,
	host model.PostgresqlHost,
	port model.PostgresqlPort,
	user model.PostgresqlUser,
	pass model.PostgresqlPassword,
	database model.PostgresqlDatabase,
	targetDirectory model.TargetDirectory,
) error

Create backs up the database via pg_dump. The now clock is injected so the backup filename is testable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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