Files/folders not being backed up when selected together

New user here, liking Duplicati a lot but have come across some odd behaviour relating to file/folder selection.

I’m trying to back up an Adobe Lightroom Classic catalogue. This essentially comprises a file and folder both living in the same directory so I have: main.lrcat (the file) and main.lrcat-data (the folder) living in the \main\ folder. The lrcat-data folder is marked as a system folder. The file is about 3GB, the folder 5GB.

If I create a job with just the file - it works.
If I create a job with just the folder - it works.
If I create a job with both - then I ONLY get the file and not the folder. There is nothing in the log indicating any issue. I have no filters, advanced settings - just a plain vanilla job.

However, if I select the containing folder (Main\) and put an exclusion filter to get rid of the other cache folders that I don’t want backing up (using -*\*.lrdata\) then I do successfully get both the file and folder I do want.

So, while I have a working solution, this doesn’t explain why my original approach didn’t work. Any thoughts?

Many thanks

Welcome to the forum @PrettyPony

was a similar recent topic. I think the problem is in

It may think that a folder which starts with some other source is a subfolder.
It might just be a folder which starts with the name of a file, and not a folder.

This doesn’t seem to matter. Adding a filter may, as case is coded differently.
Any of the cases there will wind up saying something like this in Verbose log:

2026-08-19 09:41:18 -04 - [Verbose-Duplicati.Library.Main.Controller-RemovingSubfolderSource]: Removing source "C:\backup source\main\main.lrcat-data\" because it is a subfolder or subfile of "C:\backup source\main\main.lrcat"

Thanks @ts678, that is the problem.

I tested with a completely fresh example where I had a file and a folder which takes the root of the file name, and it only backs up the file and NOT the folder.

The log file has that “Removing source” line and I agree that the code snippet suggests that. Clearly just another manifestation of the other problem you referred to.

I don’t know how these things work but that’s been raised as a bug in the system has it?

Many thanks

Occasionally the developers will fix things right from a forum report.
That’s prone to being missed, as the forum is not a real bug tracker.

https://github.com/duplicati/duplicati/issues is the main bug tracker.
I opened an issue. Thanks for the report and confirming of problem.

backup quietly skips source folder if path start is also a source file #7189

That’s brilliant, thanks a lot. I know where to go now in future.

Thanks for reporting.
A fix will be applied to next canary: