美文网首页
2021-02-23 rsync通过ssh增量同步目录

2021-02-23 rsync通过ssh增量同步目录

作者: 五大RobertWu伍洋 | 来源:发表于2021-03-01 23:30 被阅读0次
src=/root/testdir/d
dest=/tmp/
destIp=localhost
#destIp=root@localhost

/usr/bin/rsync --delay-updates -F --compress --archive --rsh="/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --chmod=Fu+r,g+r,o+r --out-format="<<CHANGED>>%i %n%L" $src $destIp:$dest

--rsh=选项给了使用ssh时更多的控制项!

相关文章

网友评论

      本文标题:2021-02-23 rsync通过ssh增量同步目录

      本文链接:https://www.haomeiwen.com/subject/lmkrfltx.html