Hi

I try to replace ncftpput with lftp (to use bandwith control and 
retry-on-error).

My script uses this line :

find ${zipdir}/ -type f -printf "\"%p\"\n" | xargs ncftpput -u "${ftpuser}" -p "${ftppassword}" ${OPTION_FTP} 
"${ftpserver}" "${ftpdir}" >> ${LOGFILE} 2>&1

And I can't find a good equivalent with lftp.

I can support to lose file-upload feature and I tried to do a mirror equivalent 
:

lftp -e " mirror -vvv -R ${zipdir}/ ${ftpdir} ; exit" -u ${ftpuser},${ftppassword} 
"${ftpserver}"


But I would like to keep info about speed tranfert.

A example of ncftpput output :

ncftpput -u user -p password -F serveur remote/directory /home/local/transfert/
...home/local/transfert/file1.xml:   82.84 kB    2.45 MB/s
...home/local/transfert/file1.xml:   82.84 kB    2.45 MB/s
...home/local/transfert/file1.jpg:   75.73 kB    2.07 MB/s
...home/local/transfert/file2.jpg:   75.73 kB    2.07 MB/s

Any ideas ?

Thanks in advance for your help.

--
Thomas Poindessous


Reply via email to