current state

This commit is contained in:
2021-04-12 10:55:57 +02:00
parent d293e93fa8
commit 640b60c47f
11 changed files with 113 additions and 22 deletions

View File

@@ -45,6 +45,9 @@ func GetPathRelativeToConfig(p string) (string, error) {
}
func (c *Config) CheckConfig() error {
if !CheckIfResticIsCallable() {
return fmt.Errorf(`restic was not found. Install either with "autorestic install" or manually`)
}
found := map[string]bool{}
for _, backend := range c.Backends {
if err := backend.validate(); err != nil {