WordPress.org

Plugin Directory

Changeset 458083


Ignore:
Timestamp:
11/01/11 00:34:33 (2 years ago)
Author:
GamerZ
Message:

Adding --force. Thanks to belg4mit http://wordpress.org/support/profile/belg4mit

Location:
wp-dbmanager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-dbmanager/trunk/database-backup.php

    r426418 r458083  
    5959                $backup['filename'] = $backup['date'].'_-_'.DB_NAME.'.sql.gz'; 
    6060                $backup['filepath'] = $backup['path'].'/'.$backup['filename']; 
    61                 $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' | gzip > '.$brace.$backup['filepath'].$brace; 
     61                $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --force --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' | gzip > '.$brace.$backup['filepath'].$brace; 
    6262            } else { 
    6363                $backup['filename'] = $backup['date'].'_-_'.DB_NAME.'.sql'; 
    6464                $backup['filepath'] = $backup['path'].'/'.$backup['filename']; 
    65                 $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' > '.$brace.$backup['filepath'].$brace; 
     65                $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --force --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' > '.$brace.$backup['filepath'].$brace; 
    6666            } 
    6767            $error = execute_backup($backup['command']); 
  • wp-dbmanager/trunk/wp-dbmanager.php

    r426418 r458083  
    9999            $backup['filename'] = $backup['date'].'_-_'.DB_NAME.'.sql.gz'; 
    100100            $backup['filepath'] = $backup['path'].'/'.$backup['filename']; 
    101             $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' | gzip > '.$brace.$backup['filepath'].$brace; 
     101            $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --force --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' | gzip > '.$brace.$backup['filepath'].$brace; 
    102102        } else { 
    103103            $backup['filename'] = $backup['date'].'_-_'.DB_NAME.'.sql'; 
    104104            $backup['filepath'] = $backup['path'].'/'.$backup['filename']; 
    105             $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' > '.$brace.$backup['filepath'].$brace; 
     105            $backup['command'] = $brace.$backup['mysqldumppath'].$brace.' --force --host="'.$backup['host'].'" --user="'.DB_USER.'" --password="'.$backup['password'].'"'.$backup['port'].$backup['sock'].' --add-drop-table --skip-lock-tables '.DB_NAME.' > '.$brace.$backup['filepath'].$brace; 
    106106        } 
    107107        execute_backup($backup['command']); 
Note: See TracChangeset for help on using the changeset viewer.