How It Works
dbdump uses a two-phase approach to ensure your database structure stays intact:
- Phase 1 - Structure: Dumps the schema (CREATE TABLE) for ALL tables
- Phase 2 - Data: Dumps data only for tables you want to keep
This means excluded tables will exist in your dump as empty tables, so foreign keys never break.