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!
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.
output
...
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.