I'd like to backup my database automatically but store each table in separate file. I've found a simple script here: http://www.jamescoyle.net/how-to/1167-export-mysql-database-into-separate-files-per-table.
However problem with this is that the data could be inconsistent if the database is changed when the script is running. I basically need to run the backup in single transaction or something like that.
Any tips?
EDIT: I could dump the entire database using one mysqldump, import it into dome dummy database to create a duplicate and then I wouldn't have to worry about transactions. Is that a good or bad idea?