Jojodae Ganesh Sivaji
December 26, 2012
This is one of the errors that annoyed me much at work lately. This happened when I had to restore a database from mydumper backup. If you are engaged in maintaining relatively big (in terms of data size) and dynamic database-driven sites, you would have probably heard about this mighty DB backup utility.
Mydumper (aka. MySQL Data Dumper) is a high-performance multi-threaded backup (and restore) toolset for MySQL and Drizzle. The main developers originally worked as Support Engineers at MySQL (one has moved to Facebook and another to SkySQL) and this is how they would envisage mysqldump based on years of user feedback.Features
- Lightweight C source
- Up to 10x faster dumps compared to mysqldump
- Consistent snapshots for transactional and non-transactional tables
- File compression on-the-fly
- Binary log dumps
- Multi-threaded restore utility
- Daemon mode for timed snapshots and continuous binary logs
** (myloader:766): CRITICAL **: the specified directory is not a mydumper backup
grep
the command for the words in the error message "the specified directory" and found the lines that did the check-in reporting the error message. I have quoted the same below, } else {
char *p= g_strdup_printf("%s/metadata", directory);
if (!g_file_test(p, G_FILE_TEST_EXISTS)) {
g_critical("the specified directory is not a mydumper backup\n");
exit(EXIT_FAILURE);
}
}
metadata,
which is a hidden file in mydumper 0.2.3 (with dot prefixed), while in version 0.5.1, it is a standard plain text file. This little convention change in a different version of mydumper made me 'run in a circle' for a couple of hours. Changing the metadata
file as needed solved the issue.Just like how your fellow techies do.
We'd love to talk about how we can work together
Take control of your AWS cloud costs that enables you to grow!