老男人百科 > 百科 > 正文

rsync: The server is configured to refuse --delete 错误的解决方法之一

2023-06-30 04:53:10 阅读( 2238)

使用rsync向服务器端传输数据时,如果使用了--delete参数,有可能会遇到以下错误:rsync:Theserverisconfiguredtorefuse--deletersyncerror:requestedactionnotsupported(code4)atclientserver.c(685)[receiver=2.6.8]rsync:readerror:Conne

使用rsync向服务器传输数据时,如果使用- delete参数,可能会遇到以下错误:

rsync: The server is configured to refuse --delete

rsync error: requested action not supported (code 4) at clientserver.c(685) [receiver=2.6.8]

rsync: read error: Connection reset by peer (104)

rsync error: error in rsync protocol data stream (code 12) at io.c(614) [sender=2.6.8]

上述错误可能是由于以下原因造成的:

(rsync的服务器端配置文件rsyncd.conf中增加了拒绝选项=删除。

(2)修改配置文件后,rsync服务器程序没有重启。

对于rsync服务器,如果你修改了它的配置文件,在某些情况下会有效,在某些情况下如果你不重启rsync服务器程序就会无效。

根据我尝试过的:在rsyncd.conf中,修改一个block(用方括号括起来的一段配置称为block)中的配置,不需要重启rsync服务器程序。

但是,如果是公共的全局配置参数(即配置参数不在块中,而是在rsyncd.conf文件的顶部),那么就需要重启rsync服务器程序才能使配置生效。

对了,记住rsync的各种返回值的含义:

0 Success

1 Syntax or usage error

2 Protocol incompatibility

3 Errors selecting input/output files, dirs

4 Requested action not supported: an attempt was made to manipulate 64-bit files on a platform that cannot support them; or an option was specified that is supported by the client and not by the server.

5 Error starting client-server protocol

10 Error in socket I/O

11 Error in file I/O

12 Error in rsync protocol data stream

13 Errors with program diagnostics

14 Error in IPC code

20 Received SIGUSR1 or SIGINT

21 Some error returned by waitpid()

22 Error allocating core memory buffers

23 Partial transfer due to error

24 Partial transfer due to vanished source files

30 Timeout in data send/receive

猜你喜欢

Guessyoulike
女孩什么时候来月经(女孩什么时候来月经正常)
这些自慰谣言(有关新型冠状病毒的网络谣言)
精液检查要禁欲几天(精液检查要禁欲几天)
引起男人不育的三个坏习惯(导致男性不育的因素)
专题页