backup

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	S3 *storage.S3
}

Manager type

func NewManager

func NewManager(S3 *storage.S3) *Manager

NewManager create a new backup manager

func (*Manager) Backup

func (m *Manager) Backup(directory, archive string) error

Backup creates a backup of any directory directory must be absolute path like /etc/app and archive same /etc/app.tar.gzip"

func (*Manager) ProcessBackup

func (m *Manager) ProcessBackup(message module.BackupMessage) error

ProcessBackup process a backup request

func (*Manager) Restore

func (m *Manager) Restore(archive, destination string) error

Restore uncompress .tar.gzip archive

Jump to

Keyboard shortcuts

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