backupmgr

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const ConfigDirName = "config"
View Source
const MetadataFileName = "metadata"

Variables

View Source
var BkpFileList = []string{"config.toml",
	"storage.json",
	"token"}
View Source
var RestoreFileChk = []string{
	"metadata",
	"boost.db",
}

Functions

func BackupMetadata

func BackupMetadata(ctx context.Context, srcDS datastore.Batching, fpath string) error

func CopyFiles

func CopyFiles(srcDir, destDir string, flist []string) error

func CopyKeysBetweenRepos

func CopyKeysBetweenRepos(srcRepo lotus_repo.LockedRepo, dstRepo lotus_repo.LockedRepo) error

func GenerateBkpFileList

func GenerateBkpFileList(repoPath string, offline bool) ([]string, error)

Types

type BackupMgr

type BackupMgr struct {
	// contains filtered or unexported fields
}

func NewBackupMgr

func NewBackupMgr(src lotus_repo.LockedRepo, ds datastore.Batching, name string, db *sql.DB) *BackupMgr

func (*BackupMgr) Backup

func (b *BackupMgr) Backup(ctx context.Context, dstDir string) error

Jump to

Keyboard shortcuts

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