backupdir

package
v0.0.0-...-31509f8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingHostInParentBackupDirs = errors.New("missing host in parent backup directories")

Functions

This section is empty.

Types

type AgentHostsToBackupDir

type AgentHostsToBackupDir map[string]string

type BackupDirs

type BackupDirs struct {
	// Can collapse the CoordinatorBackupDir into AgentHostsToBackupDir once we run an agent on the coordinator
	// to simplify various logic.
	CoordinatorBackupDir  string
	AgentHostsToBackupDir AgentHostsToBackupDir
}

func ParseParentBackupDirs

func ParseParentBackupDirs(input string, cluster greenplum.Cluster) (BackupDirs, error)

ParseParentBackupDirs parses either a single directory or multiple host:directory pairs. To specify a single directory across all hosts set a single directory such as /dir. To specify different directories for each host use the form "host1:/dir1,host2:/dir2,host3:/dir3" where the first host must be the coordinator. Defaults to the parent directory of each primary data directory on each primary host. NOTE: We parse in the hub rather than the CLI since we need to know all hosts to fill in the agent hosts backup directories if the user specifies a single directory and no hosts.

type MissingHostInParentBackupDirsError

type MissingHostInParentBackupDirsError struct {
	Input        string
	MissingHosts []string
}

func (*MissingHostInParentBackupDirsError) Error

func (*MissingHostInParentBackupDirsError) Is

Jump to

Keyboard shortcuts

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