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


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.


fxp [options] file ...


Append if destination exists.
Delete remote file after successful transfer.
Enter only directories matching GLOB pattern.
Enter only directories matching REGEXP pattern.
Overwrite existing destinations, never prompt.
Transfer files in background (nohup mode), quits yafc.
Prompt before each transfer.
Use FILE as logfile instead of ~/.yafc/nohup/nohup.<pid>.
Only transfer files matching GLOB pattern.
Only transfer files matching REGEXP pattern.
Only transfer file if remote is newer than local file.
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.


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 foo -r -o bar
will transfer the remote file foo to a directory named bar on If foo is a directory, it will be downloaded recursively.
Try to preserve file attributes.
Append source path to destination.
Overrides --verbose.
Transfer directories recursively.
Resume broken download (restart at EOF).
Always skip existing files.
Transfer tagged files.
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.
Specify transfer type, 'ascii' or 'binary'.
Always store as unique target file.
Explain what is being done.
Show a short syntax description.