This usually happens when the permissions on the destination don’t match. To test this, it’s best to run the command as root rather than as a regular user. It can also occur if the file system format on the destination doesn’t support Unix permissions, for example NTFS or FAT.
Just check via journalctl or add a log to the script.
sent 301,20G bytes received 323,39K bytes 84,88M bytes/sec
total size is 301,13G speedup is 1,00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.4.1]
[Di 31. Mär 23:36:33 CEST 2026] Backup mit Fehlern beendet!
[Di 31. Mär 23:36:33 CEST 2026] === Backup-Skript beendet ===
I can’t actually delete files on one of the two hard drives. But I don’t want to tinker around with ChatGPT or Grok in the rights settings. Could you tell me how I can safely distribute the correct permissions to the users or the hard drives?