Documentation ¶
Index ¶
- func GetSegPrefix(connectionPool *dbconn.DBConn) string
- func IsValidTimestamp(timestamp string) bool
- func ParseSegPrefix(backupDir string) (string, error)
- type FilePathInfo
- func (backupFPInfo *FilePathInfo) GetBackupFilePath(filetype string) string
- func (backupFPInfo *FilePathInfo) GetBackupHistoryFilePath() string
- func (backupFPInfo *FilePathInfo) GetBackupReportFilePath() string
- func (backupFPInfo *FilePathInfo) GetConfigFilePath() string
- func (backupFPInfo *FilePathInfo) GetDirForContent(contentID int) string
- func (backupFPInfo *FilePathInfo) GetErrorTablesDataFilePath(restoreTimestamp string) string
- func (backupFPInfo *FilePathInfo) GetErrorTablesMetadataFilePath(restoreTimestamp string) string
- func (backupFPInfo *FilePathInfo) GetHelperLogPath() string
- func (backupFPInfo *FilePathInfo) GetMetadataFilePath() string
- func (backupFPInfo *FilePathInfo) GetPluginConfigPath() string
- func (backupFPInfo *FilePathInfo) GetRestoreFilePath(restoreTimestamp string, filetype string) string
- func (backupFPInfo *FilePathInfo) GetRestoreReportFilePath(restoreTimestamp string) string
- func (backupFPInfo *FilePathInfo) GetSegmentHelperFilePath(contentID int, suffix string) string
- func (backupFPInfo *FilePathInfo) GetSegmentPipeFilePath(contentID int) string
- func (backupFPInfo *FilePathInfo) GetSegmentPipePathForCopyCommand() string
- func (backupFPInfo *FilePathInfo) GetSegmentTOCFilePath(contentID int) string
- func (backupFPInfo *FilePathInfo) GetStatisticsFilePath() string
- func (backupFPInfo *FilePathInfo) GetTOCFilePath() string
- func (backupFPInfo *FilePathInfo) GetTableBackupFilePath(contentID int, tableOid uint32, extension string, singleDataFile bool) string
- func (backupFPInfo *FilePathInfo) GetTableBackupFilePathForCopyCommand(tableOid uint32, extension string, singleDataFile bool) string
- func (backupFPInfo *FilePathInfo) IsUserSpecifiedBackupDir() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSegPrefix ¶
func IsValidTimestamp ¶
* Restoring a future-dated backup is allowed (e.g. the backup was taken in a * different time zone that is ahead of the restore time zone), so only check * format, not whether the timestamp is earlier than the current time.
func ParseSegPrefix ¶
Types ¶
type FilePathInfo ¶
type FilePathInfo struct { PID int SegDirMap map[int]string Timestamp string UserSpecifiedBackupDir string UserSpecifiedSegPrefix string }
func NewFilePathInfo ¶
func (*FilePathInfo) GetBackupFilePath ¶
func (backupFPInfo *FilePathInfo) GetBackupFilePath(filetype string) string
func (*FilePathInfo) GetBackupHistoryFilePath ¶
func (backupFPInfo *FilePathInfo) GetBackupHistoryFilePath() string
func (*FilePathInfo) GetBackupReportFilePath ¶
func (backupFPInfo *FilePathInfo) GetBackupReportFilePath() string
func (*FilePathInfo) GetConfigFilePath ¶
func (backupFPInfo *FilePathInfo) GetConfigFilePath() string
func (*FilePathInfo) GetDirForContent ¶
func (backupFPInfo *FilePathInfo) GetDirForContent(contentID int) string
func (*FilePathInfo) GetErrorTablesDataFilePath ¶
func (backupFPInfo *FilePathInfo) GetErrorTablesDataFilePath(restoreTimestamp string) string
func (*FilePathInfo) GetErrorTablesMetadataFilePath ¶
func (backupFPInfo *FilePathInfo) GetErrorTablesMetadataFilePath(restoreTimestamp string) string
func (*FilePathInfo) GetHelperLogPath ¶
func (backupFPInfo *FilePathInfo) GetHelperLogPath() string
func (*FilePathInfo) GetMetadataFilePath ¶
func (backupFPInfo *FilePathInfo) GetMetadataFilePath() string
func (*FilePathInfo) GetPluginConfigPath ¶
func (backupFPInfo *FilePathInfo) GetPluginConfigPath() string
func (*FilePathInfo) GetRestoreFilePath ¶
func (backupFPInfo *FilePathInfo) GetRestoreFilePath(restoreTimestamp string, filetype string) string
func (*FilePathInfo) GetRestoreReportFilePath ¶
func (backupFPInfo *FilePathInfo) GetRestoreReportFilePath(restoreTimestamp string) string
func (*FilePathInfo) GetSegmentHelperFilePath ¶
func (backupFPInfo *FilePathInfo) GetSegmentHelperFilePath(contentID int, suffix string) string
func (*FilePathInfo) GetSegmentPipeFilePath ¶
func (backupFPInfo *FilePathInfo) GetSegmentPipeFilePath(contentID int) string
func (*FilePathInfo) GetSegmentPipePathForCopyCommand ¶
func (backupFPInfo *FilePathInfo) GetSegmentPipePathForCopyCommand() string
func (*FilePathInfo) GetSegmentTOCFilePath ¶
func (backupFPInfo *FilePathInfo) GetSegmentTOCFilePath(contentID int) string
func (*FilePathInfo) GetStatisticsFilePath ¶
func (backupFPInfo *FilePathInfo) GetStatisticsFilePath() string
func (*FilePathInfo) GetTOCFilePath ¶
func (backupFPInfo *FilePathInfo) GetTOCFilePath() string
func (*FilePathInfo) GetTableBackupFilePath ¶
func (*FilePathInfo) GetTableBackupFilePathForCopyCommand ¶
func (backupFPInfo *FilePathInfo) GetTableBackupFilePathForCopyCommand(tableOid uint32, extension string, singleDataFile bool) string
func (*FilePathInfo) IsUserSpecifiedBackupDir ¶
func (backupFPInfo *FilePathInfo) IsUserSpecifiedBackupDir() bool
Click to show internal directories.
Click to hide internal directories.