Thanks 1fallen
Unlike your syntax, I have a backslash ( \ ) before lost+found in mine:
`--exclude ignorecase:'**\lost+found'`
But I still get the error:
PermissionError: [Errno 1] Operation not permitted: b'/media/backStorageON/lost+found'
So the backup does not complete, below is the full response:
NOTE: Starting mirror from source path /media/storage to destination path /media/backStorageON
WARNING: ListError: '/media/backStorageON/lost+found' [Errno 13] Permission denied: b'/media/backStorageON/lost+found'
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 33, in <module>
sys.exit(load_entry_point('rdiff-backup==2.2.6', 'console_scripts', 'rdiff-backup')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/rdiffbackup/run.py", line 35, in main
sys.exit(main_run(sys.argv[1:]))
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/rdiffbackup/run.py", line 108, in main_run
ret_val |= conn_act.run()
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/rdiffbackup/actions/backup.py", line 159, in run
backup.mirror_compat200(
File "/usr/lib/python3/dist-packages/rdiff_backup/backup.py", line 39, in mirror_compat200
DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python3/dist-packages/rdiff_backup/backup.py", line 197, in patch
ITR(diff.index, diff)
File "/usr/lib/python3/dist-packages/rdiff_backup/rorpiter.py", line 142, in __call__
if self._finish_branches(index):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/rdiff_backup/rorpiter.py", line 179, in _finish_branches
to_be_finished.end_process_directory()
File "/usr/lib/python3/dist-packages/rdiff_backup/backup.py", line 641, in end_process_directory
self.base_rp.rmdir()
File "/usr/lib/python3/dist-packages/rdiff_backup/rpath.py", line 807, in rmdir
self.conn.os.chmod(self.path, 0o700)
PermissionError: [Errno 1] Operation not permitted: b'/media/backStorageON/lost+found'
The destination folder is at the root level of the drive…

I assume rdiff-backup is trying to delete the lost+found folder on the destination drive ?
Though I’m not sure why the folder is not excluded as I requested ?
Is it ok to have the rdiff-backup destination at the root level of the drive, or does it need to be in a sub folder ?
I have tried it without the backslash before lost+found:
`--exclude ignorecase:'**lost+found'`
But still get the same error !