Versions in this module Expand all Collapse all v0 v0.1.0 Jun 21, 2017 Changes in this version + const APP_ROOT + const MODE_FULL + const MODE_INCREMENT + const StateBackuping + const StateFree + const StateRecovering + func Delete(name string) error + func FileList(name string) ([]os.FileInfo, error) + func Init(localip, driver string) + func Register(driver Storage) + func Release() + type BackupStats struct + func (b *BackupStats) Free(path string) + func (b *BackupStats) Set(path, stat string) error + type Entity struct + Containers []string + Created time.Time + InstanceNo int + Mode string + Name string + Server string + Size uint64 + Source string + Volume string + func Info(name string) (Entity, error) + func List(dir ...string) ([]Entity, error) + func NewEntity(src, archive string, instanceNo int, containers []string, volume string, ...) *Entity + func (ent *Entity) Backup(driver Storage) error + func (ent *Entity) IncrementBackup() error + func (ent *Entity) IncrementRecover(files []string) error + func (ent *Entity) Recover(driver Storage, ns, file string) error + type Meta struct + Entities map[string][]Entity + func NewMeta(backend Storage, namespace string) *Meta + func (meta *Meta) Add(ent Entity) + func (meta *Meta) Array(src ...string) []Entity + func (meta *Meta) Delete(name string) + func (meta *Meta) Get(name string) *Entity + func (meta *Meta) LoadFromBackend() error + func (meta *Meta) Set(src string, ents []Entity) + func (meta *Meta) Sync() error + type Storage interface + Delete func(file string) error + Download func(writer io.Writer, src string) error + FileInfo func(name string) (os.FileInfo, error) + List func(dir string) ([]os.FileInfo, error) + Name func() string + Rsync func(src, dest string) error + Upload func(reader io.Reader, dest string) error