SCP progress bar such as WGET in bash script

I have a folder called testfolder that contains some files of my machine in it. And I want to copy this folder to the remote machine using the scp command as shown below.

 scp -P 6969 testfolder user@remotemachine :/path/to/destination 

Here I need to display the progress bar that we get when using the wget command, as shown below.

 [ =============48% ] 

How can I implement using a bash shell script. Please advise me as I am starting to work with the shell very much.

Thanks in advance.

+4
source share
1 answer

You can use pv

Some examples here

0
source

Source: https://habr.com/ru/post/1495446/


All Articles