Documentation
¶
Index ¶
- Constants
- func GetArchiveName(folder storage.Folder, stanza string) (*string, error)
- func GetBackupList(backupsFolder storage.Folder, stanza string) ([]internal.BackupTime, error)
- func HandleBackupList(folder storage.Folder, stanza string, detailed bool, pretty bool, json bool) error
- func HandlePgbackrestBackupFetch(folder storage.Folder, stanza string, destinationDirectory string, ...) error
- func HandleWalFetch(folder storage.Folder, stanza string, walFileName string, location string) error
- func HandleWalShow(rootFolder storage.Folder, stanza string, ...) error
- func NewBackupSelector(backupName string, stanza string) internal.BackupSelector
- type ArchiveSettings
- type BackrestSection
- type BackupDatabaseSection
- type BackupDetails
- type BackupSection
- type BackupSettings
- type BackupTargetSection
- type DefaultFileSection
- type DefaultPathSection
- type LatestBackupSelector
- type ManifestSettings
- type NamedBackupSelector
- type PathSection
- type PgData
Constants ¶
View Source
const ( BackupPath = "backup" BackupInfoIni = "backup.info" BackupManifestIni = "backup.manifest" WalArchivePath = "archive" ArchiveInfo = "archive.info" BackupFolderName = "backup" BackupDataDirectory = "pg_data" )
Variables ¶
This section is empty.
Functions ¶
func GetBackupList ¶
func HandleBackupList ¶
func HandleWalFetch ¶
func HandleWalShow ¶
func NewBackupSelector ¶
func NewBackupSelector(backupName string, stanza string) internal.BackupSelector
Types ¶
type ArchiveSettings ¶
type BackrestSection ¶
type BackupDatabaseSection ¶
type BackupDetails ¶
type BackupDetails struct {
BackupName string
ModifiedTime time.Time
WalFileName string
Type string
StartTime time.Time
FinishTime time.Time
PgVersion string
StartLsn postgres.LSN
FinishLsn postgres.LSN
SystemIdentifier uint64
DirectoryPaths []string
DefaultFileMode int
DefaultDirectoryMode int
}
func GetBackupDetails ¶
func (*BackupDetails) PrintableFields ¶
func (bd *BackupDetails) PrintableFields() []printlist.TableField
type BackupSection ¶
type BackupSection struct {
BackupArchiveStart string `ini:"backup-archive-start"`
BackupArchiveStop string `ini:"backup-archive-stop"`
BackupLabel string `ini:"backup-label"`
BackupLabelPrior string `ini:"backup-prior"`
BackupLsnStart string `ini:"backup-lsn-start"`
BackupLsnStop string `ini:"backup-lsn-stop"`
BackupTimestampCopyStart int64 `ini:"backup-timestamp-copy-start"`
BackupTimestampStart int64 `ini:"backup-timestamp-start"`
BackupTimestampStop int64 `ini:"backup-timestamp-stop"`
BackupType string `ini:"backup-type"`
}
type BackupSettings ¶
type BackupSettings struct {
Name string
BackrestFormat int `json:"backrest-format"`
BackrestVersion string `json:"backrest-version"`
BackupInfoRepoSize int64 `json:"backup-info-repo-size"`
BackupInfoRepoSizeDelta int64 `json:"backup-info-repo-size-delta"`
BackupInfoSize int64 `json:"backup-info-size"`
BackupInfoSizeDelta int64 `json:"backup-info-size-delta"`
BackupPgID int `json:"db-id"`
BackupTimestampStart int64 `json:"backup-timestamp-start"`
BackupTimestampStop int64 `json:"backup-timestamp-stop"`
BackupType string `json:"backup-type"`
BackupArchiveStart string `json:"backup-archive-start"`
BackupArchiveStop string `json:"backup-archive-stop"`
BackupPrior string `json:"backup-prior"`
BackupReference []string `json:"backup-reference"`
OptionArchiveCheck bool `json:"option-archive-check"`
OptionArchiveCopy bool `json:"option-archive-copy"`
OptionBackupStandby bool `json:"option-backup-standby"`
OptionChecksumPage bool `json:"option-checksum-page"`
OptionCompress bool `json:"option-compress"`
OptionHardlink bool `json:"option-hardlink"`
OptionOnline bool `json:"option-online"`
}
func LoadBackupsSettings ¶
func LoadBackupsSettings(folder storage.Folder, stanza string) ([]BackupSettings, error)
type BackupTargetSection ¶
type BackupTargetSection struct {
PgdataPath string
}
type DefaultFileSection ¶
type DefaultPathSection ¶
type LatestBackupSelector ¶
type LatestBackupSelector struct {
Stanza string
}
type ManifestSettings ¶
type ManifestSettings struct {
BackrestSection BackrestSection `ini:"backrest"`
BackupSection BackupSection `ini:"backup"`
BackupTargetSection BackupTargetSection `ini:"backup:target"`
BackupDatabaseSection BackupDatabaseSection `ini:"backup:db"`
PathSection PathSection
DefaultFileSection DefaultFileSection `ini:"target:file:default"`
DefaultPathSection DefaultPathSection `ini:"target:path:default"`
}
func LoadManifest ¶
type NamedBackupSelector ¶
type PathSection ¶
type PathSection struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.