backup

package
v0.0.0-...-a9bd8d8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name           = "backup"
	ScopeFilePath  = "file_path"
	ScopeDataBase  = "database"
	BackupFilePath = path.DEFAULT_PATH_BACK_UPCACHE + "/" + Name
	Type           = plugin.BCollect
)

Variables

This section is empty.

Functions

func New

func New() plugin.Plugin

func Zip

func Zip(srcFile string, destZip string) error

Zip srcFile could be a single file or a directory destZip必须为一个正确的文件路径,否则返回错误

Types

type Backup

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

func (*Backup) Caller

func (b *Backup) Caller(s plugin.Single)

func (*Backup) GetName

func (b *Backup) GetName() string

func (*Backup) GetSupport

func (b *Backup) GetSupport() []uint32

func (*Backup) GetType

func (b *Backup) GetType() plugin.Type

func (*Backup) SetSource

func (b *Backup) SetSource(source *plugin.Source)

func (*Backup) Start

func (b *Backup) Start(args []string)

Jump to

Keyboard shortcuts

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