package
0.9.7
Repository: https://github.com/quinn/restic.git
Documentation: pkg.go.dev

# Functions

All returns a list of cache directories.
DefaultDir returns $RESTIC_CACHE_DIR, or the default cache directory for the current OS if that variable is not set.
IsOld returns true if the timestamp is considered old.
New returns a new cache for the repo ID at basedir.
Old returns a list of cache directories with a modification time of more than 30 days ago.
OlderThan returns the list of cache directories older than max.
TestNewCache returns a cache in a temporary directory which is removed when cleanup is called.

# Constants

MaxCacheAge is the default age (30 days) after which cache directories are considered old.

# Structs

Backend wraps a restic.Backend and adds a cache.
Cache manages a local cache.