File transfer time between servers

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Accepted Answer

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.


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

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.