r/Veeam • u/McLovinAllNightLong • 4d ago
Difference between a BCO-file and a DB-dump
Hello fellow Veeam'rs,
As someone once said; "there are no stupid questions" I'm kind of feeling embarrassed right now.
I've actually got two questions and they are probably indirectly the same.
Could someone please tell me:
- What the difference is between a BCO-file and a DB-dump (created while the Veeam services are all stopped)?
- If a BCO-file is being used for importing the previous state, does it recreate the database (aka, drop database; create database; insert data)?
The reason for asking this, is because I've many times imported a DB-dump (including the Veeam reg keys containing the salts and hashes) and the VBR just worked flawlessly afterwards.
Bonus question: what kind of information does the BCO-file -not- store?
My apologies for such a ridiculous post (knowing that I've been a VMCE for many years....)
2
u/tdic89 4d ago
As far as I know, the BCO file also contains version information and the restore process will account for that because it’s the actual app doing it.
Doing a database restore means you’re simply throwing the data back into the database as it was, which is probably fine if the version you’re running is identical. If not, hypothetically you could end up with a number of strange issues which are very difficult to fix.
If an app has a way to backup and restore data, I’d always suggest using that in the first instance as it will likely account for any database migrations between different versions.
2
u/ToilLess_Dev 4d ago
Hello McLovinAllNightLong,
not a stupid question at all; the two look similar from the outside but work differently.
A DB dump is the raw database. It only works if you restore it into the same VBR version on the same database engine, plus the registry bits you already mentioned. You've been doing exactly that, which is why it worked.
The .bco is an export of VBR's configuration data. You restore it through the Configuration Restore wizard, not SQL. The wizard writes the data into a new or existing database (an existing one gets overwritten), and it can do things a dump can't: restore into a newer VBR build, or move between MS SQL and PostgreSQL. Just not both at once; an engine migration only works within the same VBR version, so you'd upgrade first and then switch engines. At the end, the wizard also syncs backups and tape libraries, so the restore point chains in the database match what's actually in the repositories.
Bonus question: as far as I know, if the configuration backup isn't encrypted, it doesn't include the passwords for stored credentials, so you'd have to re-enter them after a restore. That's the main reason Veeam recommends always encrypting it. It also doesn't contain the backup files themselves or any custom registry tweaks you made on the server, so document those separately.