Using Usn policy can cause loss of files

Steps to duplicate this error.

  1. Add file or files to a backup. Files or files must be manually added by check-mark or specify one by one in command line.
  2. Run backup.
  3. Set usn policy to Auto.
  4. Run backup.
  5. Check results: old file is deleted in a new snapshot. No file is added, even if file was changed. File is just lost from now (because it only exist in the first backup so if retention policy is short enough…).
    5a. Usn policy seems to work when files are added by directories.

Duplicati 2.0.7.1, Windows 10.

Thanks for the steps, but problem is not reproducible with them on 2.0.8.0 Experimental, and I’m not seeing About → Changelog showing USN fixes, so tentatively I will wonder if we’re testing this differently somehow.

I added one file to a new backup using a check mark, ran it, added policy at Auto, ran it, got no new version (which is correct since nothing changed), so Restore menu only shows the first, but there are logs for both.

I’m running as an elevated administrator on Windows 10. Can you spot anything different in our procedure?

Thanks for testing. Hm. One more thing maybe, can you try add a new file while usn is on? Or change a file to see if new version will be processed? I just redone my test and results are the same - Duplicati doesn’t see new files or changed old files. If those files are in selected sub-directories (as oppose to individual selection of files) everything works as it should.

It works. Now I have two versions and both files.

Now three versions and both files. Let me restore. It works, and restored modified version of second file.

I’m doing individual selection of files.

Thanks… Well, I don’t know what is causing this in my system. I do know, that I can replicate this behavior every time when I try usn auto on individual files (source is 0 bytes and no files are added).

Can you cause it from scratch on a new backup?

Tested in a new backup now, but this happens in my old backups as well (if I re-enable usn).

There are a surprisingly large number of settings besides Off and Auto. Do On or Required USN better?

Right. “Usn On” cause - [Warning-Duplicati.Library.Main.Operation.BackupHandler-FailedToUseChangeJournal]: Failed to use change journal for volume "C:": Access is denied.

Hm. And this error happens when I selected sub-directories as well. “Usn Required” just throws “access denied”.

After giving administrator rights for Duplicati, those “access is denied” errors vanished, but nothing else changed, Duplicati still not adding files.

What happens if you start fresh with an elevated administrator, which is the way that I tested it?

Maybe what you can do is describe an exact test, including file names, then I can try to repeat it.

Ultimately this might also need logs, so it would be nice to not have sensitive path names in use.

Mine were just A.txt and B.txt in C:\backup source.

An information level log is pretty safe, and USN code sometimes uses that, but some is profiling.

looks like On got a Warning (so got noisy), and Auto might have just logged at Information, unseen.
I don’t know the details of the code. If it can be turned into good steps, perhaps author of it will help.

Thank you for some pointers to check. Running with administrator rights changes nothing (new backup, new database). Fresh backup, usn auto and a two individual files:

C:\Users\Xxx\aranym\config
C:\Users\Xxx\.matplotlib\fontlist-v330.json

These are just a random text files.

Log just show stuff like:

“DeletedFiles”: 0,
“DeletedFolders”: 0,
“ModifiedFiles”: 0,
“ExaminedFiles”: 0,
“OpenedFiles”: 0,
“AddedFiles”: 0,

…etc.

Log fragment about usn:

“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started: ()”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed: ()”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.Operation.BackupHandler-SkipUsnForVolume]: Performing full scan for volume "C:\": Previous backup did not record USN journal info”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.Operation.DeleteHandler-PreventingLastFilesetRemoval]: Preventing removal of last fileset, use --allow-full-removal to allow removal …”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.Operation.DeleteHandler-DeleteResults]: No remote filesets were deleted”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started: ()”,
“2024-05-04 02:15:27 +02 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed: ()”

So… There is nothing really interesting.

What’s odd is your logs look nothing like an initial backup. Here’s my attempt to replicate your result:

image

image

“DeletedFiles”: 0,
“DeletedFolders”: 0,
“ModifiedFiles”: 0,
“ExaminedFiles”: 2,
“OpenedFiles”: 2,
“AddedFiles”: 2,

How are you doing initial backup of two files without any log showing them? Anyway, I edited config

image

was the log from backup, exactly as was expected. Restore now has two versions, two files in each.

is also kind of strange for an initial backup. Is there some retention policy that wasn’t talked about yet?

I also checked the pull requests (only checked changelog before), and can’t see any recent changes.
Possibly I would be surprised if I ran the same test on 2.0.7.1, but I still suspect some test difference.

EDIT:

2.0.7.1 runs fine too. I used the same setup, except for reducing the log to information. Here is the log:

2024-05-04 13:55:28 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started
2024-05-04 13:55:32 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()
2024-05-04 13:55:32 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  ()
2024-05-04 13:55:32 -04 - [Information-Duplicati.Library.Main.Operation.BackupHandler-SkipUsnForVolume]: Performing full scan for volume "C:\": Previous backup did not record USN journal info
2024-05-04 13:55:33 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-b5553a8e8b26a4110a03daf3c2e3cb74b.dblock.zip (1.10 KB)
2024-05-04 13:55:33 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-b5553a8e8b26a4110a03daf3c2e3cb74b.dblock.zip (1.10 KB)
2024-05-04 13:55:33 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-if920e4f3634e45abae013119ce3c1d63.dindex.zip (686 bytes)
2024-05-04 13:55:33 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-if920e4f3634e45abae013119ce3c1d63.dindex.zip (686 bytes)
2024-05-04 13:55:33 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-20240504T175532Z.dlist.zip (769 bytes)
2024-05-04 13:55:33 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-20240504T175532Z.dlist.zip (769 bytes)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.Database.LocalDeleteDatabase-CompactReason]: Compacting not required
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (3 bytes)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20240504T175532Z.dlist.zip (769 bytes)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-20240504T175532Z.dlist.zip (769 bytes)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-if920e4f3634e45abae013119ce3c1d63.dindex.zip (686 bytes)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-if920e4f3634e45abae013119ce3c1d63.dindex.zip (686 bytes)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b5553a8e8b26a4110a03daf3c2e3cb74b.dblock.zip (1.10 KB)
2024-05-04 13:55:34 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b5553a8e8b26a4110a03daf3c2e3cb74b.dblock.zip (1.10 KB)
2024-05-04 13:58:25 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started
2024-05-04 13:58:25 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()
2024-05-04 13:58:25 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (3 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-b90eacd385f204c1da1070472484a0a53.dblock.zip (687 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-b90eacd385f204c1da1070472484a0a53.dblock.zip (687 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-i685c12baf1754392961e8c5e854ab837.dindex.zip (607 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-i685c12baf1754392961e8c5e854ab837.dindex.zip (607 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-20240504T175825Z.dlist.zip (771 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-20240504T175825Z.dlist.zip (771 bytes)
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.Database.LocalDeleteDatabase-CompactReason]: Compacting not required
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()
2024-05-04 13:58:26 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (6 bytes)
2024-05-04 13:58:27 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20240504T175825Z.dlist.zip (771 bytes)
2024-05-04 13:58:27 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-20240504T175825Z.dlist.zip (771 bytes)
2024-05-04 13:58:27 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-i685c12baf1754392961e8c5e854ab837.dindex.zip (607 bytes)
2024-05-04 13:58:27 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-i685c12baf1754392961e8c5e854ab837.dindex.zip (607 bytes)
2024-05-04 13:58:27 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b90eacd385f204c1da1070472484a0a53.dblock.zip (687 bytes)
2024-05-04 13:58:27 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b90eacd385f204c1da1070472484a0a53.dblock.zip (687 bytes)
2024-05-04 13:58:58 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation List has started
2024-05-04 13:58:59 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation List has started
2024-05-04 13:58:59 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation List has started
2024-05-04 13:59:04 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation List has started

Thank you again for thorough troubleshooting. This ensure me, this is something in my individual settings/system. I will look deeper into this. My test backup is just a test one - creating from scratch (delete database etc). Retention policy is set to “smart retention”. So there should be no interference from other factors. But maybe some of my settings gets in a way… Anyway, my test shows just 0 bytes and zero files - when I created backup from scratch with usn auto on. No matter of settings… I have no idea what is wrong here.

A log file at verbose level might show something relevant. So you got basically an empty backup? Strange.

EDIT:

Here’s a verbose log from my initial backup. Maybe you can compare to yours:

2024-05-04 17:29:12 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  ()
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Snapshots.UsnJournalService-UsnInitialize]: Reading USN journal for volume: C:\
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.Operation.BackupHandler-SkipUsnForVolume]: Performing full scan for volume "C:\": Previous backup did not record USN journal info
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\.matplotlib\fontlist-v330.json
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\.matplotlib\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\config
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\.matplotlib\fontlist-v330.json
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\config
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\.matplotlib\fontlist-v330.json
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\.matplotlib\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\config
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\.matplotlib\fontlist-v330.json
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Maintenance\aranym\config
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-CheckFileForChanges]: Checking file for changes C:\Users\Maintenance\aranym\.matplotlib\fontlist-v330.json, new: True, timestamp changed: True, size changed: True, metadatachanged: True, 5/4/2024 4:13:00 PM vs 1/1/0001 12:00:00 AM
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-CheckFileForChanges]: Checking file for changes C:\Users\Maintenance\aranym\config, new: True, timestamp changed: True, size changed: True, metadatachanged: True, 5/4/2024 5:57:08 PM vs 1/1/0001 12:00:00 AM
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-NewFile]: New file C:\Users\Maintenance\aranym\.matplotlib\fontlist-v330.json
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-NewFile]: New file C:\Users\Maintenance\aranym\config
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-bbbe8d8be2b5d4463bad67b4712de4b0e.dblock.zip (1.11 KB)
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-bbbe8d8be2b5d4463bad67b4712de4b0e.dblock.zip (1.11 KB)
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-i8f08f84e1f784e2fab423efd821a7772.dindex.zip (684 bytes)
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-i8f08f84e1f784e2fab423efd821a7772.dindex.zip (684 bytes)
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-20240504T212915Z.dlist.zip (771 bytes)
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-20240504T212915Z.dlist.zip (771 bytes)
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Database.LocalDeleteDatabase-FullyDeletableCount]: Found 0 fully deletable volume(s)
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Database.LocalDeleteDatabase-SmallVolumeCount]: Found 1 small volumes(s) with a total size of 1.11 KB
2024-05-04 17:29:16 -04 - [Verbose-Duplicati.Library.Main.Database.LocalDeleteDatabase-WastedSpaceVolumes]: Found 0 volume(s) with a total of 0.00% wasted space (0 bytes of 298 bytes)
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.Database.LocalDeleteDatabase-CompactReason]: Compacting not required
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()
2024-05-04 17:29:16 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (3 bytes)
2024-05-04 17:29:17 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20240504T212915Z.dlist.zip (771 bytes)
2024-05-04 17:29:17 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-20240504T212915Z.dlist.zip (771 bytes)
2024-05-04 17:29:17 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-i8f08f84e1f784e2fab423efd821a7772.dindex.zip (684 bytes)
2024-05-04 17:29:17 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-i8f08f84e1f784e2fab423efd821a7772.dindex.zip (684 bytes)
2024-05-04 17:29:17 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-bbbe8d8be2b5d4463bad67b4712de4b0e.dblock.zip (1.11 KB)
2024-05-04 17:29:17 -04 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-bbbe8d8be2b5d4463bad67b4712de4b0e.dblock.zip (1.11 KB)

My log shows:

2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx.matplotlib\fontlist-v330.json
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Xxx.matplotlib
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Xxx
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-ExcludingPathFromAttributes]: Excluding path due to attribute filter: C:
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx\aranym\config
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Xxx\aranym
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx.matplotlib\fontlist-v330.json
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Xxx.matplotlib
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Xxx
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-ExcludingPathFromAttributes]: Excluding path due to attribute filter: C:
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx\aranym\config
2024-05-05 00:08:33 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Xxx\aranym\

Hm. “No filters matched”? What this is about?

By the way, when usn is off, log shows:

2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx.matplotlib\fontlist-v330.json
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx\aranym\config
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx.matplotlib\fontlist-v330.json
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingSourcePath]: Including source path: C:\Users\Xxx\aranym\config
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-CheckFileForChanges]: Checking file for changes C:\Users\Xxx.matplotlib\fontlist-v330.json, new: True, timestamp changed: True, size changed: True, metadatachanged: True, 2024.05.03 23:31:27 vs 0001.01.01 00:00:00
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-CheckFileForChanges]: Checking file for changes C:\Users\Xxx\aranym\config, new: True, timestamp changed: True, size changed: True, metadatachanged: True, 2017.07.06 14:32:58 vs 0001.01.01 00:00:00
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-NewFile]: New file C:\Users\Xxx.matplotlib\fontlist-v330.json
2024-05-05 00:15:22 +02 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-NewFile]: New file C:\Users\Xxx\aranym\config

… and backup is fine.

image

Filters are path based. Attributes are whatever your OS uses, e.g. Windows uses things like System.

If you want files backed up, look for IncludingSourcePath and no ExcludingPathFromAttributes.

ExcludingPathFromAttributes]: Excluding path due to attribute filter: C:

is worrisome. Did it think you excluded the whole drive? That might cause it to not pick up any files…

OK. I found culprit! Thanks to @ts678 and suggestion to use a totally fresh profile. With new profile everything works as it should. Previously I used my test profile and “only” deleted database, destination backup files and source files (as well as filters and settings), I thought that’s enough for to be a “clear and new profile”. But that was not a case. So something in empty profile itself create a culprit which confusing usn. Case closed I think. Thanks @ts678 again for help.

For curiosity sake, I exported fault profile and imported back to check if error persist. It did. If you can check this profile? I wonder, where exactly is a problem here. I don’t see anything suspicious in the .json profile file. Source and destination doesn’t matter.

test3-duplicati-config.zip (921 Bytes)

Is this the same job you’ve been showing logs for and describing? The source looks different. Suspect:

      {
        "Filter": "",
        "Name": "--exclude-files-attributes",
        "Value": "system",
        "Argument": null
      }

except the logs were talking about specific files in C:, then C: itself, and the source here appears to be:

    "Sources": [
      "D:\\!!\\test\\fontlist-v330.json",
      "D:\\!!\\test\\config"
    ],

You could find a job that’s not backing up those files, see if that Exclude is set, and if so, try turning it off.

EDIT:

Going the other way, adding Exclude System files and backing up thinks both files were deleted. Log:

2024-05-04 19:46:47 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\.matplotlib\
2024-05-04 19:46:47 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\aranym\
2024-05-04 19:46:47 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\Maintenance\
2024-05-04 19:46:47 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-IncludingPath]: Including path as no filters matched: C:\Users\
2024-05-04 19:46:47 -04 - [Verbose-Duplicati.Library.Main.Operation.Backup.FileEnumerationProcess-ExcludingPathFromAttributes]: Excluding path due to attribute filter: C:\

and again the worrisome exclude of the drive root, but I can’t get Windows to tell me drive root’s attributes.

Possibly USN and Exclude System files used in combination have a bug that you were the first to see?

Bingo! You are right “Exclude System files” is the culprit. That one, too innocent for me to turn it off… I suppose this is a sort of corner case - use usn auto and manual selection of individual files and “Exclude System files” equals no backup of those files. Also, “Exclude System files” is off when user create a new profile, that why new profile works. Well, I am glad that sorted things out. Phew… :slight_smile: Thanks again for help @ts678!

2 Likes