安装rsync
- sudo apt install rsync
- 查看rsync的服务情况:systemctl status rsync
- 启动rsync服务:
- 参考文档:
- 1.https://www.rehiy.com/post/98/
- 存在的问题:
-
- rsync启动失败:rsync -av start.conf mongo1@192.168.220.139:/home/mongo1 执行时报错信息:
The authenticity of host '192.168.220.139 (192.168.220.139)' can't be established. ED25519 key fingerprint is SHA256:M6LoOJh/s6K5rh03S3eepNDf9JC+9JxqjC5dm0rzox4. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? Host key verification failed. rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]
-