backup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 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"

	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"`
	OrderFileListMap      map[string][][]string `json:"orderFileListMap"`
	OutOfOrderFileListMap map[string][][]string `json:"outOfOrderFileListMap"`
}

type IncBackupLogInfo

type IncBackupLogInfo struct {
	AddOrderFileListMap      map[string][][]string `json:"addOrderFileListMap"`
	DelOrderFileListMap      map[string][][]string `json:"delOrderFileListMap"`
	AddOutOfOrderFileListMap map[string][][]string `json:"addOutOfOrderFileListMap"`
	DelOutOfOrderFileListMap map[string][][]string `json:"delOutOfOrderFileListMap"`
}

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