I’m unable to exclude the
lost+found folder in rsync – rights-related issues are considered as I/O errors by the program (?) and thus I can’t ever use the
--delete flag for instance:
If the sending side detects any I/O errors, then the deletion of any files at the destination will be automatically disabled. This is to prevent temporary filesystem failures (such as NFS errors) on the sending side from causing a massive deletion of files on the destination.
I made sure to pass the full path using
--exclude-from=/mnt/backup/lost+found. The error I receive:
rsync: [client] failed to open exclude file /mnt/backup/lost+found: Permission denied (13) rsync error: error in file IO (code 11) at exclude.c(1188) [client=3.2.3]
It should be noted that this is an external HDD and not a path within my home directory.
Lastly, the full rsync command, if relevant:
rsync --archive --no-compress --delete-before --info=progress2 --human-readable --exclude-from=/mnt/backup/lost+found /mnt/backup/ /mnt/backup-2/