Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
检查远程 SSH rsync 是否从主机失败的最简单方法是什么?
我不在乎是否找不到文件,是否无法建立连接,或者 RSYNC 的狗是否死亡并不得不参加其葬礼。我将如何指定:
如果 RSYNC 失败,做些什么?
编辑:RSYNC SSH 不是守护进程。
您可以创建一个 bash 脚本,例如:
if ssh <server> rsync; then echo "SUCCESS" else echo "FAIL" fi