Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added log to identify if it's a resource only backup #346

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here repo name will be "genericBackupDir/" It is better to add the backup location CR name in the debug statement.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repo name and backup location cr name are the same

return nil
}
if err != nil {
logrus.Errorf("getting repo list failed for bucket [%v]: %v", repo.Path, err)
return err
Expand Down
Loading