Frequently Asked Questions
Does Bacula’s MySQL plugin support replication setups?
Yes. MySQL’s binary logs drive both replication and Point-In-Time Recovery (PITR), and Bacula’s MySQL agent captures those logs automatically on every backup job. In Binary mode, the backup records the binary log file name and position at the time of backup, which provides the coordinates needed to resume or configure replication after a restore.
Can Binary mode backups run without interrupting a live MySQL database?
Yes. In Binary mode, Percona XtraBackup copies InnoDB data files at the storage level without acquiring a global database lock, so the MySQL instance stays online and serves production traffic throughout the backup window. Non-InnoDB files require only a brief backup lock rather than a full table lock.
What happens if binary logs are unavailable during a MySQL PITR restore?
Bacula’s MySQL agent captures binary log files as part of every backup job and manages them automatically across the full backup chain. If binary logs are unavailable at restore time, recovery defaults to the most recent consistent backup snapshot. Recovering to a precise transaction point requires an unbroken binary log chain from that snapshot forward.
Can I back up multiple MySQL databases on the same server with Bacula?
Yes. The MySQL agent auto-detects all databases on the server without manual configuration. Specific databases can be targeted by name in the Fileset configuration, and object filtering lets administrators include or exclude specific databases and tables without editing dump files manually.
What is the impact of backups on MySQL performance?
In Binary mode, Percona XtraBackup copies InnoDB data files at the storage level without acquiring a global database lock, so the impact on the running MySQL instance is minimal and production traffic continues uninterrupted. In Dump mode, the mysqldump process generates CPU and I/O overhead that scales with database size. Generally, running Dump mode jobs during off-peak hours is recommended for production systems under heavy write load.
Can MySQL backup integrity be verified automatically?
Yes. Bacula’s Silent Data Corruption Detection verifies the integrity of backed-up data independently of the source system. Data Poisoning Detection identifies corrupted or tampered data before it propagates into the backup chain, so integrity issues are caught before a restore is needed.
How does backup retention policy affect MySQL recovery options?
Retention policies directly control how far back a restore can reach. A shorter retention window reduces storage consumption but limits recovery flexibility. A longer retention window, on the other hand, increases storage use and allows recovery from older incidents or delayed data corruption events. In Bacula, retention periods are configurable at the job, pool, and volume level. This gives administrators precise control over how long MySQL backup sets remain available for recovery.
Do I need database administrator (DBA) expertise to manage MySQL backups with Bacula?
No. The MySQL plugin abstracts MySQL-specific backup mechanics and no custom scripting is required. The backup administrator configures and manages all operations through Bacula’s standard interface. A basic understanding of recovery objectives, specifically RPO and RTO, is still useful when deciding between Dump and Binary mode for your environment.