From b9503b6e152b6ffbcd21f9c1c9168089cf4af055 Mon Sep 17 00:00:00 2001 From: shkumari-px Date: Mon, 11 Mar 2024 04:50:20 +0000 Subject: [PATCH] added log to identify if it's a resource only backup --- pkg/executor/kopia/maintenance.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/executor/kopia/maintenance.go b/pkg/executor/kopia/maintenance.go index b5e2ffd12..fed164276 100644 --- a/pkg/executor/kopia/maintenance.go +++ b/pkg/executor/kopia/maintenance.go @@ -171,6 +171,10 @@ func runMaintenance(maintenanceType string) error { repo.Name = genericBackupDir + "/" bucket = blob.PrefixedBucket(bucket, repo.Name) repoList, err = getRepoList(bucket) + if len(repoList) == 0 { + logrus.Warnf("Provider is non-nfs, No directory %v exists, verify if it is a resource only backup", repo.Name) + return nil + } if err != nil { logrus.Errorf("getting repo list failed for bucket [%v]: %v", repo.Path, err) return err