Node:put, Next:pwd, Previous:prot, Up:Yafc commands
put
Send files to remote 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:
put [options] file ...
Options:
-a--append- Append if destination file exists.
-D--delete-after- Delete local 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 transferring each file.
-L FILE--logfile=FILE- Use FILE as logfile instead of
~/.yafc/nohup/nohup.<pid>for nohup transfers. -m GLOB--mask=GLOB- Only put files matching GLOB pattern.
-M REGEXP--rx-mask=REGEXP- Only put files matching REGEXP pattern.
-n--newer- Only transfer file if local is newer than remote file.
-o DEST--output=DEST- Specify other destination. If more than one file is transferred, or option
--recursiveis given, DEST denotes a directory. Otherwise (if only one file is to be transferred), DEST denotes a filename.Examples:
put foo.tar.gz -o bar.tar.gz
will transfer the local filefoo.tar.gzto the remote filebar.tar.gz.put *.tar.gz -o foo
will transfer all local*.tar.gzfiles to a remote directory namedfoo.put foo -r -o bar
will transfer the local filefooto a remote directory namedbar. Iffoois a directory, it will be uploaded recursively. -p--preserve- Try to preserve file attributes (permissions).
-P--parents- Append source path to destination.
-q--quiet- Overrides
--verbose. -r--recursive- Upload directories recursively.
-R--resume- Resume broken transfer (restart at EOF).
-s--skip-existing- Always skip existing files.
-t--tagged- Transfer (locally) tagged files.
--type=TYPE- Specify transfer type, 'ascii' or 'binary'.
-u--unique- Always store as unique file (if server supports the STOU command).
-v--verbose- Explain what is being done.
--help- Show a short syntax description.