Cloudberry Explorer PowerShell错误

我正尝试使用Cloudberry Explorer PowerShell脚本自动将文件从Amazon S3存储拉到本地磁盘。 使用桌面应用程序,我能够手动连接并将文件转移到本地文件夹就好了。 当使用PowerShell时,我收到一个错误,指出The Remote name could not be resolved 'http' 。 下面是我的代码,我相信是正确的。 我尝试过,没有代理信息,我得到同样的错误。 我也有我的networkingpipe理员绕过代理validation的网站。 我不知道还有什么可能导致这个错误。

 Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn #Set Proxy info Set-CloudOption -ProxyAddress [proxy info here] -ProxyPort 8080 #Set connection to Amazon S3 account with access key and secret key $s3 = Get-CloudS3Connection -Key ***** -Secret ***** -SignatureVersion 2 -UseSSL #Set source and Destination folders $source = $s3 | Select-CloudFolder -Path "my folder/subfolder" $local = Get-CloudFileSystemConnection $target = $local | Select-CloudFolder "C:\localdrive" #Run sync folders source to target: $source | Copy-CloudSyncFolders $target -DeleteOnTarget -MissingOnly 

在我看来,最好使用本地S3 API来实现相对简单的任务自动化。 我发现在这种情况下,Cloudberry的API不太可靠。 在这里看看更多的信息: http : //docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html

只用 – 使用SSL就足够了。

-SignatureVersion 2仅用于S3兼容的提供商。

这应该工作:

$ s3 = Get-CloudS3Connection -UseSSL -Key ***** -Secret *****

另外,为了确保您可以将“CloudBerry Explorer.exe”添加到networking排除列表中,以避免可能的networking错误。

最后要注意的是 – 目前Powershell是支持的。