Forum archive
TKLBAM and MySQL
I have a MySQL server which backs up daily via TKLBAM. I am using a lot of InnoDB tables, but had not set the "innodb_file_per_table" value to true until well after my ibdata1 file surpassed 10GB.
My question is two-fold:
1. Would you consider setting innodb_file_per_table=true as a default for future distributions? It makes more sense to have it that way for a couple reasons. Especially when it comes to backup and restore. My 10GB ibdata1 file changes daily which makes it necessary to backup each day during incremental backups when it would be easier to backup/restore separate files so you can fix single tables and not have an all-or-nothing situation on your hands.
2. When I do a restore of the databases only with TKLBAM does it recreate each database like it is being imported and not just place the files in the appropriate dorectories? I want to build a new database server with better hardware and SSD drives so I am wondering if I need to export/sync from the current server and import in to the new server so that the ibdata1 file won't get too bloated. Apparently, the ibdata1 file remains the same size even after you change the setting to use individual files and if that thing goes belly up you lose all the databases in the system (so I have read/experienced).
Thanks,
Rick
However, I recently wrote a suggestion for someone else to minimise the size of MySQL incremental backups using TKLBAM hooks. Have a look here if you're interested. If you wanted to create a TKLBAM hook to make better utilisation of InnoDB files then I'm sure that could be done instead. If you do, please share your work.