Help with rclone sync and exclude

What is the problem you are having with rclone?

I am trying to sync an ext4 file system on a RAID1 array with pcloud using rclone.
From an older test and recovery session, there has been left a folder named lost+found that I do not want to sync. The problem with this is that I cannot delete it because it has the immutable flag (i) and I cannot change that with chattr.
I use this command to test if everything is OK:
$ rclone sync /mnt/raid1 remote: -v -i -n --exclude /mnt/raid1/lost+found/
however, I get this:
2025/07/04 15:51:10 ERROR : lost+found: failed to open directory "lost+found": open /mnt/raid1/lost+found: permission denied
How can I get rid of this error?

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.1

  • os/version: raspbian 10.13
  • os/kernel: 5.10.103-v7l+ (armv7l)
  • os/type: linux
  • os/arch: arm (ARMv7 compatible)
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Paste command here

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Paste config here

A log from the command that you were trying to run with the -vv flag

Paste  log here

welcome to the forum,

filters are relative to the source path.

rclone tree --dirs-only /mnt/raid1/ --exclude="/mnt/raid1/lost+found/"
/
├── dir00
├── dir01
└── lost+found

rclone tree --dirs-only /mnt/raid1/ --exclude="/lost+found/"
/
├── dir00
└── dir01

for a deeper look, --dump=filters