Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Scp and rsyc speed-limited transmission

2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Http://blog.chinaunix.net/uid-23544240-id-3488256.html

1. Scp speed limit 1m

Scp-l 1000 file name account @ remote machine IP

At this time, the transmission rate is about 1M/8=100K.

2. Rsync is (limited to 100k Bytes/s):

Rsync-auvzP--bwlimit=100 local files remote files

Parameter description:

V: detailed prompt

A: operate in archive mode, copy directories, symbolic links, equivalent to-rlptgoD.

Z: compression

U: update only to prevent new local files from being rewritten, pay attention to the clock of both machines at the same time

P: it integrates the two parameters-- partial-- progress.

So the rsync at this time supports the continuation of the breakpoint.

Transferring files between computer rooms is generally worried about taking up too much bandwidth, especially in the case of shared bandwidth. Two commonly used software can limit speed:

Scp can add the-l parameter:

Quote

-l limit

Limits the used bandwidth, specified in Kbit/s.

Rsync can add-- bwlimit parameter

Quote

-I,-itemize-changes output a change-summary for all updates

-- log-format=FORMAT output filenames using the specified format

-- password-file=FILE read password from FILE

-- list-only list the files instead of copying them

-- bwlimit=KBPS limit Imax O bandwidth; KBytes per second

-- write-batch=FILE write a batched update to FILE

-- like-- write-batch but Whampoo updating dest

KBs is the abbreviation of KByte/s, and Kbit/s should be Kbps (abbreviated to KB/s). KB/s is usually used for transfer speed, such as when copying files. Kb/s is commonly used

At broadband speed, such as 512Kb/s.

Broadband is usually installed in kilobytes per second, but the actual download speed is completely different from the usual kilobytes. For example: 512kbps broadband, download speed per second

512 / 8=64KB/s .

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report