1、安装pv yum install pv -y
yum install pv
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package pv.x86_64 0:1.4.6-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================
Package Arch Version Repository Size
================================================================================================
Installing:
pv x86_64 1.4.6-1.el7 epel 47 k
Transaction Summary
================================================================================================
Install 1 Package
Total download size: 47 k
Installed size: 93 k
Is this ok [y/d/N]: y
Downloading packages:
pv-1.4.6-1.el7.x86_64.rpm | 47 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : pv-1.4.6-1.el7.x86_64 1/1
Verifying : pv-1.4.6-1.el7.x86_64 1/1
Installed:
pv.x86_64 0:1.4.6-1.el7
Complete!
2、安装lz4
[root@VM-20-8-centos postgresql-14.4]# yum list lz4
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Installed Packages
lz4.x86_64 1.8.3-1.el7
3、传输文件
[root@VM-16-10-centos fastdfs]# tar -c storage/* |pv|lz4 -B4 |ssh -p2289 -o"MACs umac-64@openssh.com" 101.42.14.43 "lz4 -d |tar -xC /fastdfs/storage/"
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




