dirsnapshots

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(b *Backups) error

Save writes the configuration to file.

Types

type Backups

type Backups struct {
	Snapshots map[string][]string
	Version   uint8
	// contains filtered or unexported fields
}

Backups defines the programs configuration.

func Load

func Load() (*Backups, error)

Load reads the configuration from file.

func (*Backups) PopDir

func (b *Backups) PopDir(orig string) (string, bool)

PopDir pops a directory from the stack.

func (*Backups) PushDir

func (b *Backups) PushDir(orig, bak string)

PushDir pushes a directory the stack.

func (*Backups) SnapshotsDir

func (b *Backups) SnapshotsDir() string

SnapshotsDir returns the snapshots base path.

Jump to

Keyboard shortcuts

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