Documentation
¶
Index ¶
- func IsFolderRepository(path string) bool
- func IsURLPath(s string) bool
- func RunBackup(repository *config.Repository) (bool, error)
- func RunForget(repository *config.Repository) (bool, error)
- func RunInit(repository *config.Repository) (bool, error)
- func RunIntegrityCheck(repository *config.Repository) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFolderRepository ¶
IsFolderRepository returns a boolean indicating if the folder has the structure of a restic repository
func IsURLPath ¶
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.
Click to show internal directories.
Click to hide internal directories.