Issue backing up files and directories in Linux when directory ends in .d

OS: RHEL 10.2

When backing up similarly named files and directories, I only get the file, not the other directory and sub files/directories.

Example:

/etc/ssh/sshd_config.d/

/etc/ssh/sshd_config

My backup only has /etc/ssh/sshd_config. If I remove /etc/ssh/sshd_config from the backup source data list, I then get the files/directories under /etc/ssh/sshd_config.d/ properly. It seems that the “.d” is causing confusion in the backup routine if the file without it exists.

Look into the use and placement of the wildcard character “*” applied in Filters of the Source data.

Thank you - I will try to see what Duplicati does. The problem is that these are explicitly defined and not wild card defined items. I am trying to backup the file sshd_config and folder sshd_config.d without wild cards which is failing. I am thinking that the .d is causing a problem in how Duplicati coded it which can cause further issues that are not easily observed.

Files/folders not being backed up when selected together
was another report with cause suspect and issue opened:

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

Thanks for reporting.
A fix will be in next canary:

The problem was the duplicate-path detection logic, it was designed to capture this

/etc/ssh/ <- folder
/etc/ssh/stuff/ <- folder

Here, there is no need to include /etc/ssh/stuff. The problem is this setup:

/etc/ssh <- file
/etc/ssh/stuff/ <- folder

This triggers the same logic, but naturally /etc/ssh/stuff cannot be inside the file, so it should not be removed from the source list.

Thank you for looking at this. I appreciate it!