restic

package
v0.0.0-...-ced7c3a Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFolderRepository

func IsFolderRepository(path string) bool

IsFolderRepository returns a boolean indicating if the folder has the structure of a restic repository

func IsURLPath

func IsURLPath(s string) bool

IsURLPath is a modified version of the location.isPath function to check if a string a path from the restic repository, origin: https://github.com/restic/restic/blob/master/internal/backend/location/location.go

func RunBackup

func RunBackup(repository *config.Repository) (bool, error)

RunBackup prepares the restic backup command and returns the result

func RunForget

func RunForget(repository *config.Repository) (bool, error)

RunForget prepares the restic forget command and returns the result

func RunInit

func RunInit(repository *config.Repository) (bool, error)

RunInit prepares the restic init command and returns the result

func RunIntegrityCheck

func RunIntegrityCheck(repository *config.Repository) (bool, error)

RunIntegrityCheck prepares the restic check command and returns the result

Types

This section is empty.

Jump to

Keyboard shortcuts

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