Use the rsync command and SCP command to copy the local 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/

[The above command] the local machine with a progress bar prompt copy can be achieved, different machines with a progress bar prompt copy, you can copy multiple files

 

SCP command

# SCP-V/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/
[Command above] The progress cannot be displayed for local copy

# SCP-V/mnt/yidong2/full20100526.tar.gz root@192.168.1.1:/mnt/yidong1/
[Command above] The progress bar can be displayed for copying different machines, even if the "-V" parameter is not included.

 

# SCP-V/mnt/yidong2/full20100526.tar.gz root@127.0.0.1:/mnt/yidong1/
[The above command]Disguised FormThe Local Machine prompts copying with a progress bar without the "-V" parameter.

 

CP command

No copy prompt with progress bar found. Please share it with anyone you know. Thank you.

 

Copy speed of rsync, SCP, and CP

I did a simple test and copied a M file for reference only.

# Cp full20100526.tar.gz full20100526.tar.gz. Bak

Fast

# Rsync-Av -- Progress full20100526.tar.gz full20100526.tar.gz. Bak

Fast (113.10 Mb/s)

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

Slow speed (26.9 Mb/s)

 

Methods for confirming 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: 11:02:01. 000000000 + 0800
Modify: 11:01:58. 000000000 + 0800
Change: 11:01:58. 000000000 + 0800

# Stat full20100526.tar.gz. bak2

Access: 11:01:58. 000000000 + 0800
Modify: 11:02:01. 000000000 + 0800
Change: 11:02:01. 000000000 + 0800

 

 

 

 

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.