Nice writeup - the "recovery hasn't performed to reasonable expectations" gap you mention is worth digging into a bit, because I think it's a fundamental issue with backing up information_schema rows rather than DDL.
information_schema is a live view of current state, not a set of replayable statements. When you write those rows to Delta and later try to "restore" from them, you end up having to reverse-engineer CREATE TABLE / GRANT / COMMENT statements from tabular metadata, which is slow and fragile - that's almost certainly what's fighting you on performance. The fix that's worked for me is to capture the DDL text directly instead of (or alongside) the info_schema snapshot:
- SHOW CREATE TABLE catalog.schema.table for table definitions (gives you a replayable CREATE statement, not just column metadata).
- SHOW GRANTS ON TABLE/SCHEMA/CATALOG ... for permissions, since grants aren't fully captured by the older information_schema views on every workspace - system.information_schema.grants or system.access.* (System Tables) is a more complete source if it's enabled on your account.
- Store these as plain text per-object rather than as a dataframe of metadata rows. Restore then becomes "replay the DDL," which is orders of magnitude faster than trying to reconstruct statements from rows at recovery time.
On the parallelization side: spark.catalog.listTables() and looping table-by-table is inherently serial. Since each backup is just a metadata query plus a small write, you can fan it out with a ThreadPoolExecutor (Python threads are fine here since the work is I/O-bound - waiting on the metastore and object storage, not CPU) instead of dbutils.notebook.run per catalog, which has heavier per-call overhead. That's the difference between backing up "system" (every catalog) taking hours vs. minutes.
Also worth noting for anyone using this as a real DR plan: this captures Unity Catalog's own metadata, but doesn't capture Volumes' underlying file listings or external location/storage credential definitions, which live outside information_schema entirely and need their own SHOW-based capture.