I set up rsync on my raspberry pi 2 using this guide.
I am on step "18. Backup Control File on the Raspberry Pi", this is the code which is producing the error:
if [[ ${now} != ${last} ]]
then
# New Month
mkdir -p "${basePath}/current/"
rm -Rf "${basePath}/current/"*
echo "${now}" > "checkMonth.txt"
fi
Im using windows 10 64bit myself. It works fine on my laptop from which I did the setup, but on my desktop it produces the following error.
rsync: recv_generator: mkdir "/home/backupuser/current/***/***" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
The script creates folders which cant be accessed by any user on the pi. On the laptop everything still works fine. Also ssh with my desktop works fine, too.
The folders have the rights: ---rwx---
I dont think this question is related to rsync - mkstemp failed: Permission denied (13) because Im already using ssh and the error message is different.