diff --git a/info.go b/info.go index fcce269..968014c 100644 --- a/info.go +++ b/info.go @@ -34,6 +34,7 @@ func (info *Info) LastmodUnix() float64 { func GetInfo(path string) (*Info, error) { cmd := exec.Command("borg", "info", "--json", path) cmd.Env = append(cmd.Env, "BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes") + cmd.Env = append(cmd.Env, "BORG_RELOCATED_REPO_ACCESS_IS_OK=yes") stdout, err := cmd.Output() if err != nil { diff --git a/list.go b/list.go index a50eb49..f492cc7 100644 --- a/list.go +++ b/list.go @@ -28,6 +28,7 @@ func (list *List) LastArchiveUnix() float64 { func GetList(path string) (*List, error) { cmd := exec.Command("borg", "list", "--json", path) cmd.Env = append(cmd.Env, "BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes") + cmd.Env = append(cmd.Env, "BORG_RELOCATED_REPO_ACCESS_IS_OK=yes") stdout, err := cmd.Output() if err != nil {