Use the rsync command and the SCP command to implement a copy of this machine with a progress bar prompt

Source: Internet
Author: User
Tags rsync scp command

rsync Command

#rsync-av--progress/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/

[above command] can realize the machine with a progress bar prompt copy, can realize different machine with progress bar prompt copy, can copy multiple files

SCP Command

#scp-V/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/
[Above command] native copy cannot show progress

#scp-V/mnt/yidong2/full20100526.tar.gz root@192.168.1.1:/mnt/yidong1/
[above command] different machine copies can display the progress bar, even without the "-V" parameter can also display the progress bar

#scp-V/mnt/yidong2/full20100526.tar.gz root@127.0.0.1:/mnt/yidong1/
[Above command] In disguise to implement the machine with a progress bar prompt copy, you can without "-V" parameter

CP Command

Not found with progress bar hint copy, have know friend please share, thank you.

about Rsync, SCP, CP copy Speed

I made a simple test to copy a 240M file for reference only

#cp full20100526.tar.gz Full20100526.tar.gz.bak

Very fast

#rsync-av--progress full20100526.tar.gz Full20100526.tar.gz.bak

Faster (113.10MB/S)

#scp-V full20100526.tar.gz root@127.0.0.1:/root/full20100526.tar.gz

A bit slow (26.9mb/s)

method to confirm CP copy Speed

#cp full20100526.tar.gz full20100526.tar.gz.bak1 && full20100526.tar.gz.bak1 FULL20100526.TAR.GZ.BAK2

#stat FULL20100526.TAR.GZ.BAK1

access:2010-06-11 11:02:01.000000000 +0800
modify:2010-06-11 11:01:58.000000000 +0800
change:2010-06-11 11:01:58.000000000 +0800

#stat FULL20100526.TAR.GZ.BAK2

access:2010-06-11 11:01:58.000000000 +0800
modify:2010-06-11 11:02:01.000000000 +0800
change:2010-06-11 11:02:01.000000000 +0800 Related content tags: rsync scp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.