File transfers using the bbftp command

Before the first transfer

To use the bbftp command, it is necessary for the corresponding deamon to be installed on the distant machine. To download the package, you should go to the following address: http://doc.in2p3.fr/bbftp/download.html
Here is some advice for downloading files:

  • In the list which is proposed to you, we recommend choosing the most recent version.
  • The files suffixed with i386.rpm contain the Linux executable files.
  • The files suffixed with tar.gz contain the source files which can be compiled on the Unix and Linux machines.
  • The file whose name contains cygwin and is suffixed with .zip contains the Windows executable files.
  • If you wish to use the bbftp command only from the IDRIS machines to transfer files to your local machine, you can install just the server file in your laboratory. If, in addition, you wish to use the transfer command on your local machine to transfer files to IDRIS machines, you should also install the client file.
  • On Windows, only the client mode is available: The bbftp command does not allow you to transfer files from a batch job running on an IDRIS machine to a Windows PC. In case of difficulty during the installation, an IDRIS network engineer can help you.

File transfer in interactive

For transferring a file from a local machine to an IDRIS machine:

$ bbftp -e 'put mon_fichier1' -u rlabxxx -s mach_id.idris.fr
Password (max length = 8192):
put mon_fichier1 OK 

For transferring a file from an IDRIS machine to a local machine by entering the command on the local machine:

$ bbftp -e 'get mon_fichier2' -u rlabxxx -s mach_id.idris.fr
Password (max length = 8192):
get mon_fichier2 OK

File transfer from a job batch running on the compute machines

To transfer files which are in a job batch, it is necessary to use the bbftp command via an SSH authentication, after having generated public keys which have “empty” passphrases. Cf. the procedure for putting an SSH authentication in place.

Transferring a file

$ bbftp -e 'put mon_fichier1' -u login -s mach_loc.domaine.fr
put mon_fichier1 OK

or:

$ bbftp -e 'put mon_fichier1 mon_fichier_local' -u login -s mach_loc.domaine.fr
put mon_fichier1 mon_fichier_local OK

Transferring several files : option ''-i''

$ bbftp -i liste_commande -u login -s mach_loc.domaine.fr

The liste_commande file contains lines which correspond to commands entered with option -e, for example :

$ cat liste_commande
put mon_fichier1
put mon_fichier1 rep/mon_fichier_local
mget repertoire/*

Transferring a directory:

$ bbftp -e 'mput rep_i/*' -u login -s mach_loc.domaine.fr

or :

$ bbftp -e 'mkdir rep_l; mput rep_i/* rep_l' -u login -s mach_loc.domaine.fr