Exemple #1
0
 /**
  * Implements Create Backup functionality for Db
  *
  * @return bool
  */
 public function create()
 {
     set_time_limit(0);
     ignore_user_abort(true);
     $this->_lastOperationSucceed = false;
     $backup = $this->_backupFactory->createBackupModel()->setTime($this->getTime())->setType($this->getType())->setPath($this->getBackupsDir())->setName($this->getName());
     $backupDb = $this->_backupFactory->createBackupDbModel();
     $backupDb->createBackup($backup);
     $this->_lastOperationSucceed = true;
     return true;
 }
Exemple #2
0
 /**
  * Get database size
  *
  * @return int
  */
 public function getDBSize()
 {
     $backupDb = $this->_backupFactory->createBackupDbModel();
     return $backupDb->getDBBackupSize();
 }