get

Downloads one or more files from remote directory to local directory.

get <file> [ [ <file2> ... ] <directory>\[ <newname> ] ]

Downloads one or more files from remote directory to local directory. If only one parameter is specified downloads the file to local working directory. If more parameters are specified, all except the last one specify set of files to download. The last parameter specifies target local directory and optionally operation mask to store file(s) under different name. Destination directory must end with backslash. Filename can be replaced with wildcard to select multiple files. To download more files to current working directory use .\ as the last parameter.

Use option command to set transfer options (deprecated).

See also synchronize, if you need to transfer modified or non-existing files only.

Aliases: recv, mget

Switches:

Switch Description
-delete Delete source remote file(s) after transfer.
-resume Automatically resume transfer if possible (SFTP and FTP protocols only). Cannot be combined with -append.
-append Append source file to the end of target file (SFTP protocol only). Cannot be combined with -resume.
-preservetime Preserve timestamp
-nopreservetime Do not preserve timestamp
-speed=<kibps> Limit transfer speed
-transfer=<mode> binary|ascii|automatic
Transfer mode: binary, ascii (text), automatic (by extension). This feature is available only in the latest beta release.
-filemask=<mask> <mask>[;<mask2>...]
Sets file mask. This feature is available only in the latest beta release.

Effective options: transfer (deprecated), confirm, exclude (deprecated), include (deprecated), reconnecttime

XML log elements: download, rm (with -delete)

Examples

get index.html
get -delete index.html about.html .\
get index.html about.html d:\www\
get public_html/index.html d:\www\about.*
get *.html *.png d:\www\*.bak
get -filemask=*.html
 
  scriptcommand_get.txt · Last modified: 6 May 2012 by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Kyplex Cloud Security Seal - Click for Verification

Site design by Black Gate