ctl: Fix Filesystem store output for the backup command
@@ -57,7 +57,10 @@ func backup(cn *pbm.PBM, bcpName, compression string) (string, error) {
return "", err
}
- storeString := "s3://"
+ storeString := ""
+ switch stg.Type {
+ case pbm.StorageS3:
+ storeString = "s3://"
if stg.S3.EndpointURL != "" {
storeString += stg.S3.EndpointURL + "/"
}
@@ -65,6 +68,9 @@ func backup(cn *pbm.PBM, bcpName, compression string) (string, error) {
if stg.S3.Prefix != "" {
storeString += "/" + stg.S3.Prefix
}
+ case pbm.StorageFilesystem:
+ storeString = stg.Filesystem.Path
+ }
return storeString, nil
}
