Changeset 36 for trunk/www/backup.php
- Timestamp:
- Jun 15, 2009, 10:34:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/backup.php
r35 r36 32 32 'mysql --user=server'.$ServerId.' --password=server'.$ServerId.' server'.$ServerId.'_scriptdev2 < temp/wowhosting/scriptdev2.sql', 33 33 'rm -rf temp/wowhosting', 34 'php www/shell.php ServerDatabaseChange '.$ServerId.' '.$this->Backup['Database'], 34 35 'php www/shell.php ServerUnLock '.$ServerId, 35 36 )); … … 41 42 $Server = new Server($this->Database, $ServerId); 42 43 $Description = 'MaNGOS r'.$Server->Server['Database']['Emulator']['Revision'].', UDB r'.$Server->Server['Database']['Revision'].', SD2 r'.$Server->Server['Database']['ScriptDev2Revision'].', Client '.$Server->Server['Database']['Emulator']['Client']['Version']; 43 $this->Database->insert('Backup', array('Server' => $ServerId, 'Time' => 'NOW()', 'Description' => $Description, 'Lock' => 1 ));44 $this->Database->insert('Backup', array('Server' => $ServerId, 'Time' => 'NOW()', 'Description' => $Description, 'Lock' => 1, 'Database' => $Server->Server['Database']['Id'])); 44 45 $this->Id = $this->Database->insert_id; 45 46 $this->Task->Add('Záloha databáze serveru', array(
Note:
See TracChangeset
for help on using the changeset viewer.