From the sound of this, you could use a different DB infrastructure.
Based on your aforementioned needs, I have a suggestion but would require a little compromise.
SUGGESTION #1 : Use MySQL Replication on the Same Server but Different Disk
Your second need (No need of real-time replication
) would have to take a slight backseat in this suggestion. Since you have an external harddrive big enough for XtraBackup, why not use as a datadir for a second instance of MySQL on the same box?
I scripted my own service to provision dedicated mysql instance for ports 3307 - 3399. Here are my past posts on this:
SUGGESTION #2 : Use MySQL Replication on the Different Server
In consideration of your first need (Low Cost
), if you have access to a commodity server with adequate diskspace, setup MySQL Replication to that external server. That way you can run backups on the Slave as follows
STOP SLAVE;
- XtraBackup
START SLAVE;
You can do this with zero impact (no server load, no disk I/O) on the Master
SUGGESTION #3 : Parallel mysqldumps
You can setup parallel mysqldumps of databases or tables. This may result in a shorter window of time for backups. XtraBackup essentially does a checkpointed transactional backup with point-in-time sensitive operations so that the point-in-time of the backup is when the backup finished. With parallel mysqldumps on a slave which is not replicating gives you backups whose point-in-time is the beginning of the backup. Doing mysqldump on a stopped slave would be storage engine agnostic. In other words, it would not matter whether tables are InnoDB or MyISAM.
If you apply this to SUGGESTION #1, this will incur server load and disk I/O since both Master and Slave reside on the same machine.
If you apply this to SUGGESTION #2, there is no penalty on the Master. You can run backups at will on the Slave. You also will not have to concern yourself with locking MyISAM tables.
Please see my past posts on doing parallel mysqldumps