@@ -320,6 +320,8 @@ func waitForBcpStatus(ctx context.Context, conn connect.Client, bcpName string,
320320
321321type bcpDesc struct {
322322 Name string `json:"name" yaml:"name"`
323+ Profile string `json:"profile,omitempty" yaml:"profile,omitempty"`
324+ StorageType storage.Type `json:"storage_type,omitempty" yaml:"storage_type,omitempty"`
323325 OPID string `json:"opid" yaml:"opid"`
324326 Type defs.BackupType `json:"type" yaml:"type"`
325327 LastWriteTS int64 `json:"last_write_ts" yaml:"-"`
@@ -335,7 +337,6 @@ type bcpDesc struct {
335337 SizeUncompressed int64 `json:"size_uncompressed" yaml:"-"`
336338 HSize string `json:"size_h" yaml:"size_h"`
337339 HSizeUncompressed string `json:"size_uncompressed_h" yaml:"size_uncompressed_h"`
338- StorageName string `json:"storage_name,omitempty" yaml:"storage_name,omitempty"`
339340 Err * string `json:"error,omitempty" yaml:"error,omitempty"`
340341 Replsets []bcpReplDesc `json:"replsets" yaml:"replsets"`
341342}
@@ -413,6 +414,8 @@ func describeBackup(
413414
414415 rv := & bcpDesc {
415416 Name : bcp .Name ,
417+ Profile : bcp .Store .Name ,
418+ StorageType : bcp .Store .Type ,
416419 OPID : bcp .OPID ,
417420 Type : bcp .Type ,
418421 Namespaces : bcp .Namespaces ,
@@ -428,7 +431,6 @@ func describeBackup(
428431 HSize : byteCountIEC (bcp .Size ),
429432 SizeUncompressed : bcp .SizeUncompressed ,
430433 HSizeUncompressed : byteCountIEC (bcp .SizeUncompressed ),
431- StorageName : bcp .Store .Name ,
432434 }
433435 if bcp .SizeUncompressed > 0 {
434436 rv .HSizeUncompressed = byteCountIEC (bcp .SizeUncompressed )
0 commit comments