2

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.

Travis J
  • 81,153
  • 41
  • 202
  • 273
JulianWgs
  • 961
  • 1
  • 14
  • 25
  • What user is running the rsync command? In the linked guide they are running everything as "bu" and you are writing to "backupuser" 's home directory – Morifen Aug 29 '17 at 20:42
  • The name of my user is "backupuser" and I changed everything in the code accordingly. Everything is working fine on my laptop. – JulianWgs Aug 30 '17 at 07:07

0 Answers0