2009-06-18 Lenz Grimmer <email address hidden>
- Fixed allowed format strings for timestamped backupdir and mountdir
directory names
- Updated documentation: added information about hooks as Perl modules,
added new logerr hook to the list of available hooks, use of format
strings for the backupdir and mountdir. Documented the fact that these
directories are now created automatically, if they don't exist.
- Fixed Makefile and RPM spec file to install Perl hooks (and include them
in the distribution)
- Removed the absolute path names to external tools, as they tend to differ
between Linux distributions - ensure to configure $PATH correctly instead
- Added --log-err to the startup options of the InnoDB recovery instance
to redirect logging output to $TMP/mylvmbackup_recoverserver.err (instead
of using the primary instance's error log file, in case it has been defined
in my.cnf)
2009-06-14 Lenz Grimmer <email address hidden>
- Merged contributions from Matthew Boehm:
- Added support for date/time formatted file paths for the backupdir
and mountdir. Example: $backupdir=/path/to/%Y/%m/%d will expand to
/path/to/2008/10/02 and backups will go in there.
- Added support to attempt to create $backupdir and $mountdir if they do
not exist.
- Added support for using Perl modules as hook scripts. Module must be
named <hook>.pm and must be a package of type <hook>. Module must
implement ->execute() which is called by mylvmbackup to initiate the
hook. It must return boolean true/false (1 or 0) on success/failure.
->execute() will be passed 2 parameters. The first parameter is a
clone() of the global $dbh. This will allow hook scripts to perform
actions on the DB using the existing connection. The second parameter
is a string containing any messages passed to the run_hook() function.
Module must also implement ->errmsg() which will return a string error
message to be sent to log_msg(). This will be called by mylvmbackup
when ->execute() returns false/0.
- Added new hook, 'logerr'. Called by log_msg() when log severity is
LOG_ERR. Passes $msg to hook script.
2009-06-13 Lenz Grimmer <email address hidden>
- Removed the bind mount of the position file directory: copy the config
files (position record and my.cnf) into the writable snapshot directly
- Fixed the backup backends to honor this change, fixed the rsnap plugin
to actually include the config files as well
- Removed some hardcoded /tmp paths with a $TMP variable
- Removed superflous $lvm_version variable
2009-06-07 Lenz Grimmer <email address hidden>
- Made Linux LVMv2 a requirement
2009-05-07 Lenz Grimmer <email address hidden>
- Applied patch by Tim Stoop: added option --keep_mount which keeps the
snapshot mounted after the mylvmbackup run (which also implies
--keep_snapshot)
2009-03-02 Lenz Grimmer <email address hidden>
- Updated all URL references to point to lenzg.net instead of lenzg.org
- Applied small patch from Baron Schwartz to allow reading from ~/.my.cnf
2008-12-17 Lenz Grimmer <email address hidden>
- Added project home page URL to the --help output, added note about
the existence of a sample config file to the man page
- Add build date to the version string in the help output
- Fixed check for backupdir to not require it when using rsync to a
remote server or when not doing any backups with backuptype=none
(Thanks to Ronald Bradford for these suggestions)