volume

package
v0.0.0-...-97c84cb Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Volume

type Volume struct {
	Path      string   `arg:"" env:"PATH_TO_BACKUP" help:"Path to synchronize." type:"path" group:"Volume"`
	IndexFile string   `help:"File where synchronisation data will be kept." optional:"" default:".changes.log" group:"Volume"`
	Excludes  []string `name:"exclude" env:"BACKUP_EXCLUDES" help:"Exclude some files and directories by name" optional:"" sep:"," group:"Volume"`
}

func (Volume) CreateIndex

func (c Volume) CreateIndex() (index.Index, error)

func (Volume) GetChanges

func (c Volume) GetChanges() (model.Changes, index.Index, error)

func (Volume) SaveFile

func (c Volume) SaveFile(file model.FileWithContent) error

Jump to

Keyboard shortcuts

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