Documentation
¶
Index ¶
- Constants
- func FileCopy(src, dst string) error
- func FileMove(src, dst string) error
- func FolderCopy(src, dst string) error
- func FolderMove(src, dst string) error
- func ReadBackupLogFile(filePath string, backuplog interface{}) error
- func WriteBackupLogFile(content []byte, path string, logName string) error
- func WriteResultFile(result *BackupResult, path string, logName string) error
- type BackupLogInfo
- type BackupResult
- type IncBackupLogInfo
- type NodeInfoMap
- type RpInfoMap
Constants ¶
View Source
const ( DataBackupDir = "/data_backup" MetaBackupDir = "/meta_backup" WalBackupDir = "/wal_backup" FullBackupLog = "full_backup_log.json" IncBackupLog = "inc_backup_log.json" MetaInfo = "meta_info.json" BackupLogPath = "/backup_log" ResultLog = "result" NodeMapInfo = "node_map" IsInc = "isInc" IsRemote = "isRemote" IsNode = "isNode" BackupPath = "backupPath" OnlyBackupMaster = "onlyBackupMaster" BackupMeta = "backupMeta" DataBases = "dbs" MetaData = "metaData" )
Variables ¶
This section is empty.
Functions ¶
func FolderCopy ¶
func FolderMove ¶
func ReadBackupLogFile ¶
func WriteBackupLogFile ¶
func WriteResultFile ¶ added in v1.5.1
func WriteResultFile(result *BackupResult, path string, logName string) error
Types ¶
type BackupLogInfo ¶
type BackupResult ¶ added in v1.5.0
type IncBackupLogInfo ¶
type NodeInfoMap ¶ added in v1.5.1
Click to show internal directories.
Click to hide internal directories.