bbFTP Usage Examples
+ bbFTP Source Code
The bbFTP application is a multi-stream file transfer application that is recommended in place of SCP or FTP for the data transfer of large files over long distances. It provides a secure control channel over SSH and allows data to be transferred in cleartext to reduce overhead in unnecessary encryption.
This page provides some bbFTP command usage examples.
General Information
bbFTP is the client program
bbFTPD is the server program
Options
| -e | | Defines commands to be used on client
Commands in single quotes (e.g., bbftp -e 'put bigfile.dat' ...)
|
| -E | | Defines commands to be used on server
Commands on server executed using ssh
Commands in single quotes (e.g., bbftp -e 'put bigfile.dat' -E '/usr/local/bin/bbftpd -s' ...)
|
| -u | | username |
| -s | | (use ssh) |
| -V | | (verbose) |
Commands
| setsendwinsize <value in kilobytes> | | Sets sending TCP window size
|
| setrecvwinsize <value in kilobytes> | | Sets receiving TCP window size
|
| put <file name> | | Put file |
| get <file name> | | Get file |
| cd | | Change Directory |
Examples
| General Example: | | |
| localhost> bbftp -e 'get bigfile.dat' -E '/usr/local/bin/bbftpd -s' remotehost.nasa.gov |
| NAS login is different from that on the local machine: | | |
| localhost> bbftp -u myloginname -e 'put other.dat' -E '/usr/local/bin/bbftpd -s' remotehost.nasa.gov |
| Setting the number of multiple streams during file transfer (maximum multiple streams is 12): |
| localhost> bbftp -e 'setnbstream 12; get bigfile.dat' -E '/usr/local/bin/bbftpd -s' remotehost.nasa.gov |
| Changing the TCP windows sizes: |
| localhost> bbftp -e 'setrecvwinsize 1024; setsendwinsize 1024; put other.dat' -E '/usr/local/bin/bbftpd -s' remotehost.nasa.gov |
| Changing directories locally: |
| localhost> bbftp -e 'cd /home/username/other-dir; setnbstream 12; setrecvwinsize 1024; setsendwinsize 1024; put other.dat' -E '/usr/local/bin/bbftpd -s' remotehost.nasa.gov |
| Changing directories remotely: |
| localhost> bbftp -e 'setnbstream 12; setrecvwinsize 1024; setsendwinsize 1024; get bigfile.dat' -E 'cd /home/username/otherother-dir; /usr/local/bin/bbftpd -s' remotehost.nasa.gov |
|