Skip to content

Commit

Permalink
Merge pull request #6788 from Lyndon-Li/issue-fix-6748-3
Browse files Browse the repository at this point in the history
Fix issue 6748 [2]
  • Loading branch information
Lyndon-Li authored Sep 8, 2023
2 parents 6824227 + 9895428 commit 2348099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/uploader/kopia/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ func SnapshotSource(
manifest.Tags = snapshotTags

manifest.Description = description
manifest.Pins = []string{"velero-pin"}

if _, err = saveSnapshotFunc(ctx, rep, manifest); err != nil {
return "", 0, errors.Wrapf(err, "Failed to save kopia manifest %v", manifest.ID)
Expand Down
4 changes: 4 additions & 0 deletions pkg/uploader/provider/kopia.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ func (kp *kopiaProvider) RunBackup(
tags[uploader.SnapshotRequesterTag] = kp.requestorType
tags[uploader.SnapshotUploaderTag] = uploader.KopiaType

if realSource != "" {
realSource = fmt.Sprintf("%s/%s/%s", kp.requestorType, uploader.KopiaType, realSource)
}

snapshotInfo, isSnapshotEmpty, err := BackupFunc(ctx, kpUploader, repoWriter, path, realSource, forceFull, parentSnapshot, volMode, tags, log)
if err != nil {
if kpUploader.IsCanceled() {
Expand Down

0 comments on commit 2348099

Please sign in to comment.