I use a simple scheme, only doing fulls & incrementals, with file splitting thus I can't use consolidation, but CAN determine this from the filename.
Anything ending 00-??.mrimg/mrbak is a full or part thereof
Anything ending ??-??.mrimg/mrbak & not matching the above first is an incremental
Any backups where the 16 character hex names match are part of a set
I'm not sure how differentials, or consolidation, would play into that, but this alone may solve the issue if you don't use them.
So far as other methods go, subject to time on your hands, & not minding a lot of disk activity, & some specific criteria being met, namely:
- You have WSL installed along with some Linux distro,
- Your backup definitions are separate for Full, Differential, & Incremental
- You don't encrypt your backups (at least, this is untried with encrypted backups)
Then since the definition file is embedded in each backup, then the following, issued in a command window in the directory where the backups are stored:
wsl grep -iaHEm 1 "<method>[0-3]</method>" *.mrimg *.mrbak >> BkpType.txt
Apart from grep spitting an error into the command window if either type is missing this will *EVENTUALLY* spit out a list in the format:
Where N translates as follows
0 = Full
1 = Incremental
2 = Differential
3 = Auto (or specified on command line as happens in my backup script)
Which is no use to me, all my backups are method 3, but prove if nothing else I made the attempt, unfortunately the scripting/Windows automation tools I tried wouldn't return anything useful, & the info needed seems to be an inconsistent number of lines from the end, so
wsl tail -n XXX
Piped to grep turned out less useful than I'd hoped speeding up the process, I think a variable length index is stored afterwards, or something, though there may be some scope there.
In terms of optimising this, anything [Sixteen Digit HEX]-00-??.extension is always a Full, I'll leave scripting skipping those to you, but Linux (and thus WSL) has good regex handling, so it should be possible to only check to distinguish Diffs. from Incs.
I get tied in knots by tokens, delims, etc in a DOS batch file, though searching the files using Windows native abilities is probably also possible.