*/ class Mage_Backup_Nomedia extends Mage_Backup_Snapshot { /** * Implementation Rollback functionality for Snapshot * * @throws Mage_Exception * @return bool */ public function rollback() { $this->_prepareIgnoreList(); return parent::rollback(); } /** * Implementation Create Backup functionality for Snapshot * * @throws Mage_Exception * @return bool */ public function create() { $this->_prepareIgnoreList(); return parent::create(); } /** * Overlap getType * * @return string * @see Mage_Backup_Interface::getType() */ public function getType() { return 'nomedia'; } /** * Add media folder to ignore list * * @return Mage_Backup_Media */ protected function _prepareIgnoreList() { $this->addIgnorePaths($this->getRootDir() . DS . 'media'); return $this; } }