backup

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataBackupDir = "/data_backup"
	MetaBackupDir = "/meta_backup"
	FullBackupLog = "full_backup_log.json"
	IncBackupLog  = "inc_backup_log.json"
	MetaBackupLog = "meta_backup_log.json"
	BackupLogPath = "/backup_log"
	ResultLog     = "result"

	IsInc            = "isInc"
	IsRemote         = "isRemote"
	IsNode           = "isNode"
	BackupPath       = "backupPath"
	OnlyBackupMaster = "onlyBackupMaster"
)

Variables

This section is empty.

Functions

func FileCopy

func FileCopy(src, dst string) error

func FileMove

func FileMove(src, dst string) error

func FolderCopy

func FolderCopy(src, dst string) error

func FolderMove

func FolderMove(src, dst string) error

func ReadBackupLogFile

func ReadBackupLogFile(filePath string, backuplog interface{}) error

func WriteBackupLogFile

func WriteBackupLogFile(content []byte, path string, logName string) error

Types

type BackupLogInfo

type BackupLogInfo struct {
	FullBackupTime int64                 `json:"fullBackupTime"`
	IncBackupTime  int64                 `json:"incBackupTime"`
	FileListMap    map[string][][]string `json:"orderFileListMap"`
}

type IncBackupLogInfo

type IncBackupLogInfo struct {
	AddFileListMap map[string][][]string `json:"addOrderFileListMap"`
	DelFileListMap map[string][][]string `json:"delOrderFileListMap"`
}

type MetaBackupLogInfo

type MetaBackupLogInfo struct {
	MetaIds []string `json:"metaIds"`
	IsNode  bool     `json:"isNode"`
}

Jump to

Keyboard shortcuts

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