RemoteFile Parameter (Rename-CloudStorage Cmdlet)
The name of the remote file(s)/directory to download.
Syntax
Rename-CloudStorage -RemoteFile string
Remarks
The RemoteFile is either an absolute file path, or a relative path based on the home path set by the server. If a filemask is provided, all files matching the mask will be downloaded, and if a directory is specified, the directory will be downloaded.
For instance:
#download all text files from a subfolder of Box
Get-CloudStorage -ServiceProvider Box -OAuthClientId $boxid -OAuthClientSecret $boxsecret -RemoteFile
"test/*.txt"
-LocalFile
"C:/test"
#download a single file from Wasabi
Get-CloudStorage -ServiceProvider Wasabi -WasabiAccessKey $accesskey -WasabiSecretKey $secretkey -RemoteFile
"Apple.txt"
-LocalFile
"C:/test/downloaded_apple.txt"
#download an entire directory from DropBox
Get-CloudStorage -ServiceProvider DropBox -OAuthClientId $dropboxid -OAuthClientSecret $dropboxsecret -RemoteFile
"folder/subfolder"
-LocalFile
"C:/test"
Default Value
""
Parameter Position
1
Parameter Alias
Download