Report this

What is the reason for this report?

File transfer time between servers

Posted on April 27, 2018

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.



This textbox defaults to using Markdown to format your 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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.