本地磁盘之间的 cygwin rsync 失败,并出现 rsync 错误:rsync 协议数据流中的错误(代码 12)

发布于 2024-11-04 22:11:17 字数 1136 浏览 2 评论 0原文

我正在使用 cygwin rsync 将本地磁盘备份到 USB 3.0 外部磁盘。通常,该过程会失败并出现以下错误:

alex/Pictures/AppData/Lightroom/Current
Db/Lightroom
Previews.lrdata/0/03E9/03E9CB0E-96B7-4602-BBAE-CBF820381731-514d8ee17112aeee3852fda5392a8ee8.lr-preview.noindex
    rsync: writefd_unbuffered failed to write 4092 bytes to socket
[sender]: Software caused connection
abort (113)
    rsync: connection unexpectedly closed (35523 bytes received so far)
[sender]
    rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/package/rsync-3.0.8-1/src/rsync-3.0.8/io.c(601)
[sender=3.0.8]
    Traceback (most recent call last):
      File "simpleBackupTest.py", line 23, in <module>
        subprocess.check_call(rsyncCommand,
shell=True)
      File "/usr/lib/python2.6/subprocess.py",
line 498, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command 'rsync -v
--log-file=/cygdrive/c/data/logs/rsync/rsync_backup_task.log
-a /cygdrive/c/Users/ /cygdrive/j/backup/Users' returned
non-zero exit status 12

本地磁盘似乎在 & 之前可用。发生此错误后,所以我不认为驱动器已断开连接。

有什么想法可能导致这种情况吗?

I'm using cygwin rsync to backup my local disk to a USB 3.0 external disk. Frequently, the process fails with the following error:

alex/Pictures/AppData/Lightroom/Current
Db/Lightroom
Previews.lrdata/0/03E9/03E9CB0E-96B7-4602-BBAE-CBF820381731-514d8ee17112aeee3852fda5392a8ee8.lr-preview.noindex
    rsync: writefd_unbuffered failed to write 4092 bytes to socket
[sender]: Software caused connection
abort (113)
    rsync: connection unexpectedly closed (35523 bytes received so far)
[sender]
    rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/package/rsync-3.0.8-1/src/rsync-3.0.8/io.c(601)
[sender=3.0.8]
    Traceback (most recent call last):
      File "simpleBackupTest.py", line 23, in <module>
        subprocess.check_call(rsyncCommand,
shell=True)
      File "/usr/lib/python2.6/subprocess.py",
line 498, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command 'rsync -v
--log-file=/cygdrive/c/data/logs/rsync/rsync_backup_task.log
-a /cygdrive/c/Users/ /cygdrive/j/backup/Users' returned
non-zero exit status 12

The local disk seems to be available before & after this error, so I don't think its the drive being disconnected.

Any ideas what could be causing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文