Search code examples
macospermissionsbackuprsync

rsync backup to external hard disk exFat fails


I tried to back up data from my macbook to an external hard drive - formatted with exFat (bacause of the Windows and Linux/Mac compatibility).

With Automator I will create a little Program, to backup my data easily. It works fine on the local drive and from local drive to an SD-Card. But it do not work from local drive to an external hard drive. What's wrong?

SOURCE=/Users/username/Pictures/test
TARGET=/Volumes/Backup/
LOG=~/Documents/AutomatorLogs/BackupSync.log

rsync -aze "ssh" --delete --exclude=".*" "$SOURCE" "$TARGET" > "$LOG"

I got this Error:

rsync: recv_generator: mkdir "/Volumes/Backup/test" failed: Permission denied (13)


Solution

  • I think, I've got it:

    It is related to the name of the external hard disk. With the name "Backup" for my external hard drive, it does not work. If I changed the name to anything else, it works.

    (I tested some other exFat formatted external hard drives with other names and it worked. So I changed the name of this external drive to anything else and now it works. Crazy...)