Skip to content

Commit

Permalink
Merge pull request #346 from portworx/PB-5823
Browse files Browse the repository at this point in the history
added log to identify if it's a resource only backup
  • Loading branch information
shkumari-px authored Mar 11, 2024
2 parents 0a603a5 + b9503b6 commit 0807e9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/executor/kopia/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0807e9a

Please sign in to comment.