[mythtv-commits] mythtv commit: r15901 - in trunk/mythtv/libs by cpinkham
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Mon Feb 11 04:32:54 UTC 2008
Author: cpinkham
Date: 2008-02-11 04:32:54 +0000 (Mon, 11 Feb 2008)
New Revision: 15901
Changeset: http://cvs.mythtv.org/trac/changeset/15901
Added:
trunk/mythtv/libs/libmyth/dbutil.cpp
trunk/mythtv/libs/libmyth/dbutil.h
Modified:
trunk/mythtv/libs/libmyth/libmyth.pro
trunk/mythtv/libs/libmyth/storagegroup.cpp
trunk/mythtv/libs/libmythtv/dbcheck.cpp
Log:
Add code to backup the database before any schema upgrade. By default this
DB backup will be dumped into the Default Storage Group. If you assign dirs
to the special 'DB Backups' Storage Group then these backups will be dumped
into that directory. If gzip is present in /usr/bin or /bin, then it will
be used to compress the dump file. mysqldump is required to be on the system
because it is used to make the backup file.
For users upgrading from a pre-Storage Groups version of Myth, the backup file
will be created in the directory specified in the old RecordFilePrefix setting.
This also adds a DBUtil class with several helper functions to deal with
things like DBMS version checking, backups, etc..
Closes #4613 using patch by Michael T. Dean.
More information about the mythtv-commits
mailing list