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



fxp

Transfer files from one remote server to another remote server, bypassing the client. This is done by setting up a passive mode connection on the source host and using the obtained port for an active connection on the target host. The source host is the current active host, the target host must be specified using the --target=HOST option.

This will not always work with all ftp servers, either because passive mode is not supported on the source host, or because the target refuses the given port. The target ftp server might refuse the port as a security policy. You might get the error 'Illegal PORT Command' or 'Possible port theft'.

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:

fxp [options] file ...

Options:


-a
--append
Append if destination exists.
-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 transfer files matching GLOB pattern.
-M REGEXP
--rx-mask=REGEXP
Only transfer files matching REGEXP pattern.
-n
--newer
Only transfer file if remote is newer than local file.
-o DEST
--output=DEST
Specify other destination. If more than one file is transferred, or option --recursive is given, DEST denotes a directory. Otherwise (if only one file is to be transferred), DEST denotes a filename.

Examples:

fxp --target=2 foo.tar.gz -o bar.tar.gz
will transfer the remote file foo.tar.gz on the currently active remote server to the remote file bar.tar.gz on the remote server specified with the --target option (in this case the second open connection).
fxp --target=funet *.tar.gz -o foo
will transfer all remote *.tar.gz files to a directory named foo on the host specified with the --target option (in this case 'funet').
fxp -T ftp.stacken.kth.se foo -r -o bar
will transfer the remote file foo to a directory named bar on ftp.stacken.kth.se. If foo is a directory, it will be downloaded recursively.
-p
--preserve
Try to preserve file attributes.
-P
--parents
Append source path to destination.
-q
--quiet
Overrides --verbose.
-r
--recursive
Transfer directories recursively.
-R
--resume
Resume broken download (restart at EOF).
-s
--skip-existing
Always skip existing files.
-t
--tagged
Transfer tagged files.
-T HOST
--target=HOST
This option is required and specifies which remote server is the target. The HOST parameter can be a complete hostname, an alias or the connection number. The connection number is 1 for the first open connection, 2 for the second and so on. It might be useful to include that information in the prompt using the %C code, See Prompt codes.
--type=TYPE
Specify transfer type, 'ascii' or 'binary'.
-u
--unique
Always store as unique target file.
-v
--verbose
Explain what is being done.
--help
Show a short syntax description.