我有一个简单的rsync任务,运行如下:
while :
do
rsync -rLvz --size-only --ipv4 --progress source target
done
原因是在一个点之后,rsync命令失败并出现以下错误:
rsync: send_files failed to open "/source/filename": Transport endpoint is not connected (107)
然后是rsync文件列表中所有剩余未传输文件的错误,并重新启动rsync。
我意识到我在这里的while循环就像它们来的一样简单。一出现第一个错误,是否可以停止并重新启动rsync?
我已经用Google搜索了这个并且会继续寻找,但是非常感谢任何帮助。