I am trying to automate pulling files from Amazon S3 storage to a local disk using a Cloudberry Explorer PowerShell script. Using the Desktop app, I am able to manually connect and bring files over to the local folder just fine. When using PowerShell I am receiving an error stating The Remote name could not be resolved 'http'
. Below is my code, which I believe is correct. I've tried with and without the proxy info, and I get the same error. I also had my Network Admin bypass proxy authentication for the site as well. I'm not sure what else could be causing this error.
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