application/Espo/Core/Upgrades/Actions/Extension/Install.php
protected function backupExistingFiles()
    {
        parent::backupExistingFiles();

        $backupPath = $this->getPath('backupPath');

        /** copy scripts files */
        $packagePath = $this->getPackagePath();

        return $this->copy(array($packagePath, self::SCRIPTS), array($backupPath, self::SCRIPTS), true);
    }
protected function backupExistingFiles()
    {
        parent::backupExistingFiles();

        $backupPath = $this->getPath('backupPath');

        /** copy scripts files */
        $packagePath = $this->getPackagePath();

        return $this->copy(array($packagePath, self::SCRIPTS), array($backupPath, self::SCRIPTS), true);
    }
protected function backupExistingFiles ( ) { parent :: backupExistingFiles ( ) ; $ backupPath = $ this -> getPath ( 'backupPath' ) ; /** copy scripts files */ $ packagePath = $ this -> getPackagePath ( ) ; return $ this -> copy ( array ( $ packagePath , self :: SCRIPTS ) , array ( $ backupPath , self :: SCRIPTS ) , true ) ; }
Copy Existing files to backup directory

@return bool
Copy Existing files to backup directory