Node:get, Next:help, 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
--recursiveis 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 fileREADMEto the local filereadmeifreadmeis not an existing local directory.get README -o readme/
will transfer the remote fileREADMEto the local directoryreadme.get *.tar.gz -o foo
will transfer all remote*.tar.gzfiles to a local directory namedfoo.get foo -r -o bar
will transfer the remote filefooto a local directory namedbar. Iffoois 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.