Node:get, Next:, Previous:fxp, Up:Yafc commands



get

Transfer files from remote server to local computer.

If the destination file already exists, and none of the options --append, --force, --newer, --resume, --skip-existing or --unique is given, you will be prompted what to do.

Usage:

get [options] file ...

Options:


-a
--append
Append if destination exists.
-c PERM
--chmod=PERM
Change mode of transferred files to PERM.
--chgrp=GROUP
change group of transferred files to GROUP. You need to be a member of GROUP.
-d
--no-dereference
Copy symbolic links as symbolic links.
-D
--delete-after
Delete remote file after successful transfer.
--dir-mask=GLOB
Enter only directories matching GLOB pattern.
--dir-rx-mask=REGEXP
Enter only directories matching REGEXP pattern.
-f
--force
Overwrite existing destinations, never prompt.
-H
--nohup
Transfer files in background (nohup mode), quits yafc.
-i
--interactive
Prompt before each transfer.
-L FILE
--logfile=FILE
Use FILE as logfile instead of ~/.yafc/nohup/nohup.<pid>.
-m GLOB
--mask=GLOB
Only get files matching GLOB pattern.
-M REGEXP
--rx-mask=REGEXP
Only get files matching REGEXP pattern.
-n
--newer
Only get file if remote is newer than local file.
-o DEST
--output=DEST
Specify other destination. If more than one file is transferred, option --recursive is given, or DEST ends in a slash, then DEST denotes a directory. Otherwise (if only one file is to be transferred), DEST denotes a filename. However, if DEST already exists and is a directory, DEST denotes a directory.

Examples:

get README -o readme
will transfer the remote file README to the local file readme if readme is not an existing local directory.
get README -o readme/
will transfer the remote file README to the local directory readme.
get *.tar.gz -o foo
will transfer all remote *.tar.gz files to a local directory named foo.
get foo -r -o bar
will transfer the remote file foo to a local directory named bar. If foo is a directory, it will be downloaded recursively.
-p
--preserve
Try to preserve file attributes and timestamps.
-P
--parents
Append source path to destination.
-q
--quiet
Overrides --verbose.
-r
--recursive
Get directories recursively.
-R
--resume
Resume broken download (restart at EOF).
-s
--skip-existing
Always skip existing files.
-t
--tagged
Transfer tagged files.
--type=TYPE
Specify transfer type, 'ascii' or 'binary'.
-u
--unique
Always store as unique local file.
-v
--verbose
Explain what is being done.
--help
Show a short syntax description.