Yellow,
I've treid how to get ods-version _only_ of backup. Can minimize restore it elf by restoring the metadata only, but it takes quite a while still.
Little background. If our appo starts to do a restore, it needs to know is original backup 2.5.x or fb4.x or newer (for now at least). If it is older backup, made with FB2.5 I need to find out that before restore, so I can switch process/code path, and then restore it with fb2.5 embedded, and then do database structure update, so it is compatible with FB4+
I could do it with something like :
gbak -replace fb25x.fbk unique_temp_db_name.fbd -z -meta_data
And get what gbak echoes into the "Command prompt", and parse ods-version from that, it just takes a few seconds to find out, which I would hope it to take only millisecond or maybe few.
Is there a solution for that? if not, maybe make such a feature for FB 5x
-Tee-