Model
Db
Magento\Backup\Model\Db
What it does
This class handles database backup operations in Magento 2's Backup module.
Developers would use this to create complete SQL dumps of the database, including table structures, data, views, triggers, and foreign keys.
It intelligently handles large tables by breaking them into chunks and allows excluding certain tables from data backup.
Public Methods
- getResource()
- getTables()
- getTableCreateScript()
- getTableDataDump()
- getHeader()
- getFooter()
- renderSql()
- createBackup()
- getDBBackupSize()
- getIgnoreDataTablesList()