Amazon s3 バケットとローカル フォルダーの間で自動同期を試みています。
しかし、コマンドを実行すると:
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup
以下のエラーが表示されます:
Select-CloudFolder : The remote server returned an error: (400) Bad Request.
At line:1 char:35
+ $source = $s3 | Select-CloudFolder <<<< -path TestAutoSync/backup
+ CategoryInfo : NotSpecified: (:) [Select-CloudFolder], BadRequestException
+ FullyQualifiedErrorId : CloudBerryLab.Base.Exceptions.BadRequestException,CloudBerryLab.Explorer.PSSnapIn.Comman
ds.SelectCloudFolder
バケット「TestAutoSync」は私の s3 アカウントに存在し、「キー」と「シークレット」を相互検証しました。cloud-berry ui インターフェイスを介して接続すると、完全に正常に動作します。
以下は、上記のステートメントまで実行された完全なコードです
Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
Set-CloudOption -ProxyAddress xxxx -ProxyPort xxxx
$key = "xxxx"
$secret = "xxxx"
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup
以前にそのようなシナリオを回避したことがある場合は、意見をお聞かせください。