0

I need to connect to my bucket via cloudberry powershell snap in. I go through these steps:

Set-CloudOption -ProxyAddress {muProxyAddress} -ProxyPort 80
$s3 = Get-CloudS3Connection -Key myKey -Secret mySecret
$source = $s3 | Select-CloudFolder -Path myBucketName/myFolderName

But I get this error:

Select-CloudFolder : Redirect location is empty
At line:1 char:17
+ $source = $s3 | Select-CloudFolder -Path myBucketName/myFolderName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 + CategoryInfo : NotSpecified: (:) [Select-CloudFolder], Exception
 + FullyQualifiedErrorId : System.Exception,CloudBerryLab.Explorer.PSSnapIn.Commands.SelectCloudFolder

And this is what is written in log file:

2016-09-01 16:06:03,368 [S3] [Pipeline Execution Thread] INFO - HEAD request, bucket: myBucketName, key: , version: 2016-09-01 16:06:04,738 [Base] [Pipeline Execution Thread] INFO - MovedPermanently to

4

1 回答 1

0

这应该有效。

Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
Set-CloudOption -ProxyAddress xxxx -ProxyPort xxxx -PathStyle Path
$key = "xxxx"
$secret = "xxxx"
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup
于 2016-09-05T09:38:05.333 回答