NetCmdlets 2016
NetCmdlets 2016
Questions / Feedback?

RemoteFile Parameter (Get-CloudStorage Cmdlet)

The name of the remote file(s)/directory to download.

Syntax

Get-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

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
NetCmdlets 2016 - Version 16.0 [Build 6656]