diff --git a/changelogs/unreleased/5713-qiuming-best b/changelogs/unreleased/5713-qiuming-best new file mode 100644 index 0000000000..c63b470309 --- /dev/null +++ b/changelogs/unreleased/5713-qiuming-best @@ -0,0 +1 @@ +Fix error with Restic backup empty volumes diff --git a/pkg/uploader/provider/restic.go b/pkg/uploader/provider/restic.go index 00fe420571..70ae4823c0 100644 --- a/pkg/uploader/provider/restic.go +++ b/pkg/uploader/provider/restic.go @@ -137,7 +137,7 @@ func (rp *resticProvider) RunBackup( summary, stderrBuf, err := restic.RunBackup(backupCmd, log, updater) if err != nil { - if strings.Contains(err.Error(), "snapshot is empty") { + if strings.Contains(stderrBuf, "snapshot is empty") { log.Debugf("Restic backup got empty dir with %s path", path) return "", true, nil }