Sorry... @UKHeliBob Eager to get an answer I did not read carefully the category description policy. And further I was a bit overwhelmed by all the choices to make... Will put more attention to it in the future. Thanks for the update.
Thanks @J-M-L I could do that, however, I like the backup in case of mistakes I make. I could also just delete the backup file prior to submitting, but I was kind of hoping there is a sort of blacklist file I could make to prevent the IDE to upload certain files. I do recollect seeing something like it but cannot find it anymore.
It isn't actually Arduino IDE that uploads the filesystem. It is a 3rd party "Tool" (AKA "plugin") you installed in order to add the filesystem upload capability to Arduino IDE.
So any sort of an exclusion capability would be implemented in that Tool rather than in Arduino IDE.
For this reason, it would be helpful if you would add a reply here on the forum thread to give us the link to where you obtained the specific Tool you are using (there are several littlefs filesystem uploader Tools).
What program makes these "backups"?
That program should be configured in a way, that backups are stored in a different folder not interfering with the (Arduino) toolchain.
It will be a good idea for you to document such things in the future.
The truth is that it is likely the Tool you are using doesn't have an exclusion feature simply because these are generally hobby projects where there aren't a lot of development resources to put towards adding such supplemental features after the work to implement the essential functionality has been completed. However, we could only say that conclusively if we took a look at the documentation (and source code if we wanted to be sure, since developers often don't bother to document supplemental features they added to the code) of the Tool you are using. Without doing that, we can only make guesses.
We might be able to determine which Tool you are using from data about the Tool file. If you would like to try to gather that data, I'll provide instructions:
Start Arduino IDE.
Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Note the path shown in the "Sketchbook location:" field of the "Preferences" dialog.
Click the "Cancel" button in the "Preferences" dialog.
Select File > Quit (or Arduino > Quit Arduino for macOS users) from the Arduino IDE menus.
All Arduino IDE windows will close.
Using your file manager, open the folder at the path that was shown in the "Sketchbook location" IDE preference.
Look for a folder named tools. If the Tool was installed following best practices, it should be installed under this folder. Unfortunately a lot of Tool developers provide outdated instructions for installing the Tool to an inferior location so you might not see a tools folder there. If so, add a reply here on the forum thread to let us know and we'll provide instructions for finding the alternative installation location.
Open the tools folder.
You should see a subfolder inside the tools folder. Tell us the name of that folder.
Open the subfolder.
Open the tool folder you will find in the subfolder.
You should see a file with .jar file extension in this folder. Please provide the following information about this file:
I concur. I looked through the source code and didn't find any exclusion capability.
I also checked the source code of the mklittlefs command line tool that is used under the hood by the "Arduino ESP8266 LittleFS Filesystem Uploader" Arduino IDE Tool to generate the filesystem image, but unfortunately I didn't find any usable exclusion capability in that tool either (it does exclude a hardcoded list of files, but it would be quite hacky to leverage that feature for your use case).
Thanks for trying. I submitted a request for adding this functionality to the tool developer. It is not essential but would make life just that bit easier