backup

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Perform

func Perform(b Task, passphrase string) error

Perform create an encrypted backup archive from the specified set of files, using the specified passphrase. To support relative paths, it allows a cwd parameter to change directory before creating the file. Archive will be created in the current folder.

Types

type Task

type Task struct {
	// Name is the name of the backup task
	Name string
	// Source is the source location to backup
	Source string
	// Destination is the location to write the backup to
	Destination io.Writer
}

Task contains required information for backup operation.

func NewTask

func NewTask(name, source string, out io.Writer) (Task, error)

NewTask initialize a Task.

func (Task) Files

func (b Task) Files() ([]string, error)

Files retrieves list of files to backup by walking Source.

Jump to

Keyboard shortcuts

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