gpt4 book ai didi

linux - Linux 上的 rsnapshot 失败并显示 "returned 12 while processing"

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:58:13 24 4
gpt4 key购买 nike

我以为我已经正确设置了所有 rsnapshot,但在第二天检查我的日志后,我发现了以下内容:

[05/Sep/2014:10:34:11] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync returned 12 while processing john@192.168.0.102:/media/linuxstorage/docs/

返回代码“12”是什么意思?

最佳答案

为了查看发生了什么,我手动运行它然后去做其他事情:

raspberrypi $ sudo rsnapshot daily

好吧,嘿,它一直坐在那里等待我的密码。

john@192.168.0.102's password: 
Connection closed by 192.168.0.102
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receiver=3.0.9]
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/bin/rsnapshot daily
----------------------------------------------------------------------------
ERROR: /usr/bin/rsync returned 12 while processing bgrissom@192.168.0.102:/medi/linuxstorage/docs/

我在 /etc/crontab 中将 rsnapshot 用户从 pi 更改为 rootroot 不是为远程主机设置“没有密码的 ssh” key 。我所要做的就是解决这个问题:

raspberrypi $ sudo bash
raspberrypi # ssh-copy-id john@192.168.0.102

关于linux - Linux 上的 rsnapshot 失败并显示 "returned 12 while processing",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25690660/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com