How to show sftp progress

rchcoffey picture rchcoffey · Feb 15, 2017 · Viewed 7.8k times · Source

I have script that sftp files . i would like to display a progress bar showing the transfer of the files

sftp -o StrictHostKeyChecking=no  [email protected] << !
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye

Answer

codeforester picture codeforester · Feb 15, 2017

Try this:

sftp -o StrictHostKeyChecking=no  [email protected] << !
 progress
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye

From man sftp:

 progress
   Toggle display of progress meter.