[mythtv-commits] Ticket #4613: Backup database before schema upgrade

MythTV mythtv at cvs.mythtv.org
Mon Feb 11 04:32:57 UTC 2008


#4613: Backup database before schema upgrade
----------------------------------------------+-----------------------------
 Reporter:  sphery <mtdean at thirdcontact.com>  |        Owner:  cpinkham
     Type:  patch                             |       Status:  closed  
 Priority:  critical                          |    Milestone:  0.21    
Component:  mythtv                            |      Version:  head    
 Severity:  high                              |   Resolution:  fixed   
  Mlocked:  0                                 |  
----------------------------------------------+-----------------------------
Changes (by cpinkham):

  * status:  assigned => closed
  * resolution:  => fixed


Comment:

 (In [15901]) 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.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4613#comment:3>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list