I am happy to announce version 0.4 of
mylvmbackup, a tool to perform consistent backups of a MySQL server's tables using Linux LVM snapshots.
For this release I'd like to especially thank Robin H. Johnson from the Gentoo project, who contributed another batch of useful changes and informed me that mylvmbackup is now in productive use to perform backups of the MySQL databases that power the project's Bugzilla bug tracking system. I am always glad to read about such use cases - how do you utilize mylvmbackup in your environment?
- The option handling has been improved. mylvmbackup now starts by using the builtin defaults, followed by the default configuration file (/etc/mylvmbackup.conf, followed by an alternative configuration file (specified via CLI arguments), followed by the remainer of the CLI arguments.
- Changed the capture of the position file and tarball creation to not use absolute path names, and instead use them relative to $mountdir. This means that the content of the backup tar archives has changed with regards to the directory structure, please keep this in mind when restoring from backups!
- Now utilizes a bindmount to get the position directory near the $mountdir for the tarball creation.
- Directory names are sanitized for excessive whitespace and trailing slashes
- Code cleanup: use my $variable instead of use vars
In addition to Robin's improvements, the following changes were made by me:
- Fixed DSN string handling (thanks to Peter Zaitsev for spotting this)
- Fixed logging to the console (log levels were not printed)
- Removed a few currently unused configuration options from the config file