How to stop bak files being created
Moderators: helmut, XnTriq, xnview, Dreamer
Re: How to stop bak files being created
Thanks, Pierre!
Re: How to stop bak files being created
This problem is supposed to be fixed in XnView MP 1.4.0. Please check and confirm the bug fix here.
Pierre.
Re: How to stop bak files being created
Hello
With XnViewMP 1.4.2 (on windows 11), I have a problem similar to the description of that post.
Settings/General/File operations
Description of the problem
The problem occurs when I add or remove category (and so XMP et IPTC data) to an important quantity of pictures.
With XnViewMP 1.4.2 (on windows 11), I have a problem similar to the description of that post.
Settings/General/File operations
- Make backup for lossless flip/rotation : not checked
- Make backup for lossless crop : not checked
- Make backup for other lossless operations : not checked
- Export catalog's category to XMP subjetct and IPTC Keywords : Checked
- Create XMP data : Checked
- Create IPTC data : Checked
- Automatically apply parent category : Checked
Description of the problem
The problem occurs when I add or remove category (and so XMP et IPTC data) to an important quantity of pictures.
- I use "Categories Filter" pannel and I display all pictures that have the category "Toto" : 4000 pictures.
- I select 1 picture and I remove "Toto" Category with Categories Pannel => No .bak file => OK for me
- I select 14 pictures and I remove "Toto" Category with Categories Pannel => No .bak file => OK for me
- I select 300 pictures and I remove "Toto" Category with Categories Pannel => 1 .bak file created => I dont' understand
- I select 2300 pictures and I remove "Toto" Category with Categories Pannel => 116 .bak files created (>600 Mo) => I dont' understand
- etc ...
- I use "Categories Filter" pannel and I display all pictures that have the category "Blabla" : more than 6000 pictures.
- I select all the pictures (CTRL+A) and I remove "Blabla" Category with Categories Pannel (it creates a lot of .bak files as described previously)
- In the "Categories Filter" pannel XnViewMP indicates that 0 picture still have "Blabla" Category
- I clean and rebuild my catalog (Settings/Catalog/Delete all + Optimize + OK + Close XnViewMP + Open XnViewMP + Settings/Catalog/Import Folder ...)
- In the "Categories Filter" pannel XnViewMP indicates that several hundreds pictures still have the categorie "Blabla" => It seems to miss some category removing when doing it on an important number of pictures.
Re: How to stop bak files being created
files are jpeg? you can only reproduce on large list?
Pierre.
Re: How to stop bak files being created
All my files are jpg.
For the moment I only observe this problem when I work on large list (more than 200) but for me it is the case most of time.
When I try with small number of pictures it seems to be OK for the moment.
For the moment I only observe this problem when I work on large list (more than 200) but for me it is the case most of time.
When I try with small number of pictures it seems to be OK for the moment.
Re: How to stop bak files being created
Hello, I don't know if I do something wrong but the problem of .bak files is really annoying and systematic.
Here are some tests I did yesterday.
For all the following : Files are Jpg and I did nothing except what I describe below.
Settings are :
XnViewMP 1.4.2 :
XnViewMP 1.4.0 :
XnViewMP 1.4.3 :
Clean catalog
Here are some tests I did yesterday.
For all the following : Files are Jpg and I did nothing except what I describe below.
Settings are :
- no backup for lossless flip/rotation, no backup for lossless crop, no backup for other lossless operations
- Export catalog's category to XMP subjetct and IPTC Keywords : YES, Create XMP data : YES, Create IPTC data : YES
XnViewMP 1.4.2 :
- Initial sate
- I open Windows File Explorer and I look for all the files having the extension .bak in my "Pictures" folder : 0
- Adding Category
- In "Categories Filter" pannel, I display all pictures that already have the category "reference" : 13000 pictures.
- I wait progression bar to reach 100%
- I select all the 13000 pictures (CTRL+A)
- With "Categories" Pannel, I click to add a new "test_1" category to all the selected pictures (then I wait)
- When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that 13000 pictures ares linked to the "test_1" Category : OK for me
- In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 2233 files (7,45 Go) : Not OK for me
- Changing XnViewMP version
- I clean my catalog (See details below)
- I uninstall XnViewMP 1.4.2 and I install older version XnViewMP 1.4.0
- In Windows File Explorer, I delete all the 2233 files having the extension .bak in my "Pictures" folder
XnViewMP 1.4.0 :
- Initial sate
- I rebuild my catalog (See details below)
- In "Categories Filter" pannel, XnViewMP indicates that 10767 pictures ares linked to the "test_1" Category (instead of 13000 before cleaning catalog with XnViewMP 1.4.2) : Not OK for me
- In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 0
- Adding Category
- In "Categories Filter" pannel, I display all pictures that already have the category "reference" : 13000 pictures.
- I wait progression bar to reach 100%
- I select all the 13000 pictures (CTRL+A)
- With "Categories" Pannel, I click to add a new "test_2" category to all the selected pictures (then I wait)
- When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that 13000 pictures ares linked to the "test_2" Category : OK for me
- In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 1726 files (5,87 Go) : Not OK for me
- Changing XnViewMP version
- I uninstall XnViewMP 1.4.0 and I install new available version XnViewMP 1.4.3
- In Windows File Explorer, I delete all the 1726 files having the extension .bak in my "Pictures" folder
XnViewMP 1.4.3 :
- Initial sate
- I clean my catalog (See details below)
- I rebuild my catalog (See details below)
- In "Categories Filter" pannel, XnViewMP indicates that 10767 pictures ares linked to the "test_1" Category which is the same result as previously (after rebuilding catalog with XnViewMP 1.4.0) but not the same as the 13000 that it should have been (when I clicked to add "test_1" category with XnViewMP 1.4.2) : Not OK for me
- In "Categories Filter" pannel, XnViewMP indicates that 11478 pictures ares linked to the "test_2" Category (instead of 13000 before cleaning catalog with XnViewMP 1.4.0) : Not OK for me
- In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 0
- Removing Category
- In "Categories Filter" pannel, I display all pictures that already have the category "test_1" : 10767 pictures.
- I wait progression bar to reach 100%
- I select all the 10767 pictures (CTRL+A)
- With "Categories" Pannel, I click to remove the "test_1" category to all the selected pictures (then I wait)
- When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that no picture is linked to the "test_1" Category : OK for me
- In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 2053 files (6,49 Go) : Not OK for me
- Adding Category
- In Windows File Explorer, I delete all the 2053 files having the extension .bak in my "Pictures" folder
- In "Categories Filter" pannel, I display all pictures that already have the category "reference" : 13000 pictures.
- I wait progression bar to reach 100%
- I select all the 13000 pictures (CTRL+A)
- With "Categories" Pannel, I click to add the "test_1" category to all the selected pictures (then I wait)
- When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that 13000 pictures ares linked to the "test_1" Category : OK for me
- In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 718 files (2,83 Go) : Not OK for me
- I clean my catalog (See details below)
- I rebuild my catalog (See details below)
- In "Categories Filter" pannel, XnViewMP indicates that 12397 pictures ares linked to the "test_1" Category : Not OK for me
Clean catalog
- Settings/Catalog : click on Delete all
- Settings/Catalog :click on Optimize with all boxes checked
- Click OK and close Settings
- Close XnViewMP
- Open XnViewMP
- Settings/Catalog : click on Import Folder
- Select Pictures folder and wait a long time the import process to finish
Re: How to stop bak files being created
I've just done the same kind of actions with 114 pictures and XnView create 1 file with extension .bak (XnViewMP 1.4.3).
Re: How to stop bak files being created
i've tried with 3000 files but can't reproduce. All files are in the same folder? You click outside thumbnails to apply category changes?
Pierre.
Re: How to stop bak files being created
In all my previous messages, files were not in the same folder but they were displayed together as result of a research.xnview wrote: Wed Mar 01, 2023 11:09 am i've tried with 3000 files but can't reproduce. All files are in the same folder?
After your message, I tried to affect a category to 3000 pictures in the same folder and it creates 173 files with .bak extension.
Yes. I select all thumbnails, I apply the category by clicking in Categories Panel, then I click outside thumbnails to apply category changes (and IPTC/XMP export in my case).
I don't know how to be more precise because it is very easy to reproduce for me: files .bak are created all the time

Maybe something is wrong in my settings but I don't see what.
Re: How to stop bak files being created
Hello
I reopen this old post because I encounter the same case on a specific file.
I am using XnView Mp 1.8.6 with Windows 10
The case
Setings
-Import meta : off
-Export meta : on
-Sidecar : off
-Lossless operations : NoBackup
Actions
1 Select the file "Clan Renaud 20020824.jpg"
2 Check a category
3 Un-select the file
Result
-The category is assigned and saved in the file
-Creation of file "Clan Renaud 20020824.jpg.bak
Comments
This behavior is specific to the attached file and can be repeated. It is a small file 353Kb.
I have the same result with 1.8.1 and 1.8.5
I hope this case can help to make XnView even better
I reopen this old post because I encounter the same case on a specific file.
I am using XnView Mp 1.8.6 with Windows 10
The case
Setings
-Import meta : off
-Export meta : on
-Sidecar : off
-Lossless operations : NoBackup
Actions
1 Select the file "Clan Renaud 20020824.jpg"
2 Check a category
3 Un-select the file
Result
-The category is assigned and saved in the file
-Creation of file "Clan Renaud 20020824.jpg.bak
Comments
This behavior is specific to the attached file and can be repeated. It is a small file 353Kb.
I have the same result with 1.8.1 and 1.8.5
I hope this case can help to make XnView even better
Last edited by XnTriq on Thu Feb 27, 2025 3:45 am, edited 1 time in total.
Reason: Attachment removed upon user's request
Reason: Attachment removed upon user's request
Re: How to stop bak files being created
I answer to my previous post:
The cause is that the file is "read only"
XnView reaction is a bit surprising since the changed category has been written into the "read-only" file
but once you know..
ps How can I remove the photo of my original post.
The cause is that the file is "read only"
XnView reaction is a bit surprising since the changed category has been written into the "read-only" file
but once you know..
ps How can I remove the photo of my original post.
Re: How to stop bak files being created
I deleted the attachment.