Documentation ¶
Index ¶
- Constants
- Variables
- func BackupMetadata(ctx context.Context, srcDS datastore.Batching, fpath string) error
- func CopyFiles(srcDir, destDir string, flist []string) error
- func CopyKeysBetweenRepos(srcRepo lotus_repo.LockedRepo, dstRepo lotus_repo.LockedRepo) error
- func GenerateBkpFileList(repoPath string, offline bool) ([]string, error)
- type BackupMgr
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 CopyKeysBetweenRepos ¶
func CopyKeysBetweenRepos(srcRepo lotus_repo.LockedRepo, dstRepo lotus_repo.LockedRepo) 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
Click to show internal directories.
Click to hide internal directories.