backupdb.php 411 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Database backup
  4. */
  5. if (ubRouting::get('action') == 'backupdb') {
  6. if ($alterconf['MYSQLDUMP_PATH']) {
  7. $backpath = zb_BackupDatabase(true);
  8. if (@$alterconf['BACKUPS_MAX_AGE']) {
  9. zb_BackupsRotate($alterconf['BACKUPS_MAX_AGE']);
  10. }
  11. } else {
  12. die(__('You missed an important option') . ': MYSQLDUMP_PATH');
  13. }
  14. die('OK:BACKUPDB ' . $backpath);
  15. }