Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackupStatusSucceed = "Success" BackupStatusFailed = "Failure" )
Variables ¶
This section is empty.
Functions ¶
func CurrentTimestamp ¶
func CurrentTimestamp() string
func LockHistoryFile ¶
func WriteBackupHistory ¶
func WriteBackupHistory(historyFilePath string, currentBackupConfig *BackupConfig) error
func WriteConfigFile ¶
func WriteConfigFile(config *BackupConfig, configFilename string)
Types ¶
type BackupConfig ¶
type BackupConfig struct {
BackupDir string
BackupVersion string
Compressed bool
CompressionType string
DatabaseName string
DatabaseVersion string
SegmentCount int
DataOnly bool
DateDeleted string
ExcludeRelations []string
ExcludeSchemaFiltered bool
ExcludeSchemas []string
ExcludeTableFiltered bool
IncludeRelations []string
IncludeSchemaFiltered bool
IncludeSchemas []string
IncludeTableFiltered bool
Incremental bool
LeafPartitionData bool
MetadataOnly bool
Plugin string
PluginVersion string
RestorePlan []RestorePlanEntry
SingleDataFile bool
Timestamp string
EndTime string
WithoutGlobals bool
WithStatistics bool
Status string
}
func ReadConfigFile ¶
func ReadConfigFile(filename string) *BackupConfig
func (*BackupConfig) Failed ¶
func (backup *BackupConfig) Failed() bool
type History ¶
type History struct {
BackupConfigs []BackupConfig
}
func (*History) AddBackupConfig ¶
func (history *History) AddBackupConfig(backupConfig *BackupConfig)
func (*History) FindBackupConfig ¶
func (history *History) FindBackupConfig(timestamp string) *BackupConfig
func (*History) RewriteHistoryFile ¶
func (*History) WriteToFileAndMakeReadOnly ¶
type RestorePlanEntry ¶
Click to show internal directories.
Click to hide internal directories.