I have two servers in Digital Ocean and I needed to send file from one server to another. In this case, is it somehow possible to find out how much time it took to transfer the file? Or at what time I send the file from Server 1 and at what time it was received in server 2?
I am working on live migration in Docker.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

scp -Cv file username@hostname/ip:/path/to/destination will compress your files on the fly and provide you with information about the transfer including number of bytes sent, received, and time it took.

output

...
Transferred: sent 97614832, received 25976 bytes, in 1661.3 seconds
...

https://www.tecmint.com/scp-commands-examples/

Hi, thank you very much for the exact answer. I have to ask you another question, do you know why sent data is far larger then received data in this example? What does the term “received” mean here ?
thanks.

Submit an Answer