Original link: http://afoo.me/posts/2023-03-13-rsync-permission-err.html
Rsync error Permission denied – Mr. Fuqiang said: the thinking and precipitation of an architect
Rsync error Permission denied
Wang Fuqiang
2023-03-13
When backing up the video in the morning, I found that rsync reported an error:
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(231) [sender=3.2.7] Permission denied, please try again.
I haven’t touched the local and NAS environment, and it’s always been fine. It made Fuqiang’s teacher, Zhanger Monk, confused, so I Googled it. Well, I haven’t developed the habit of asking ChatGPT directly, and finally found it on stackoverflow. I tried a tip, and it runs smoothly, just add a --rsync-path
parameter to indicate the rsync installation location on the remote server, for example:
rsync -zahuv --rsync-path="/bin/rsync" --exclude-from=${HOME}/FuqiangWorks/templates/config/rsync/excludes ${HOME}/Movies/ {DEST}
Leaving it here, hope it helps others too.
Everything is homebrewed with pandoc and Markdown , little Scala also included.
This article is reproduced from: http://afoo.me/posts/2023-03-13-rsync-permission-err.html
This site is only for collection, and the copyright belongs to the original author.