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

MythTV mythtv at cvs.mythtv.org
Tue Feb 12 04:53:59 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                                 |  
----------------------------------------------+-----------------------------

Comment(by cpinkham):

 (In [15932]) Various changes related to the new Database Backup that runs
 before any schema
 upgrade.

 - Don't bother running the backup if the existing DB Schema version is
 empty
   (ie, when the DB is first created).

 - Use system() instead of myth_system() so that we can get the result of
   the mysqldump command.

 - Break out the compression into a separate call so that we can get the
   result of mysqldump instead of the result of the gzip.

 - If the user chooses to upgrade the schema, display a warning if the
   database was not successfully backed up.

 - If the DB was succesfully backed up, display the filename along with a
   message telling the user where they can locate the backup file if they
   experience issues.

 References #4613.

 WARNING: This bumps the MYTH_BINARY_VERSION version because of changes to
   MythContext::PromptForSchemaUpgrade(), so a recompile of mythtv and all
   plugins is necessary.

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


More information about the mythtv-commits mailing list