2020年6月19日星期五

VPS用rsync 互相同步



例子
vps1:aws的debian,root下有test文件夹
vps2:gcp的35.86.67.65 22端口,密码登陆方式

vps1 安装rsync ,debian9自带
apt install rsync 


vps2不用装rsync,开通ssh密码登陆。



vps1把test整个文件夹推送到vps2 root下的方式

rsync -auz -e 'ssh -p 22' /root/test root@35.86.67.65:/root


回车后提示按yes,然后提示输入vps2的ssh密码
实测10-20MB/S,整个文件夹不压缩也有这速度

没有评论:

发表评论

openwrt在线编译 插件名字查找

openwrt在线编译 https://firmware-selector.staging.immortalwrt.org/ 插件名字查找 https://downloads.staging.immortalwrt.org/releases/23.05.1/packages/x8...