Creates and restores backups from a MySQL database source.

Hierarchy

Expanded class hierarchy of BackupMySql

File

core/includes/backup/backup.mysql.inc, line 11
Contains the BackupMySQL class.

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
Backup::$backupName protected property The name of this backup. This is used as the basename of the backup file.
Backup::$backupTarget protected property Indicates the item key to be backed up.
Backup::$log protected property An array of log entries. The array is unindexed and contains nested, unindexed arrays, each with the following keys:
Backup::$settings protected property The settings array to configure the backup and restore process.
Backup::clearLog public function Clear the log for this backup instance.
Backup::compress public function Compress a backup file with gzip.
Backup::COMPRESSION_GZIP constant
Backup::COMPRESSION_NONE constant
Backup::decompress public function Decompress a backup file with gzip.
Backup::getLog public function Return the log for this backup instance.
Backup::getName public function Get the name of the backup.
Backup::getTarget public function Get the target of the backup.
Backup::log protected function Log a message that occurs during a backup or migration process.
Backup::LOG_ERROR constant
Backup::LOG_INFO constant
Backup::LOG_SUCCESS constant
Backup::preBackup public function Prepare a file to receive a backup.
Backup::timeoutCheck protected function Determines if time for a page execution has run out.
BackupDatabase::$connection protected property The database connection to be used when doing a backup or restore.
BackupDatabase::backup public function Run the full backup process, including generating the backup and saving it. Overrides Backup::backup
BackupDatabase::backupSettingsForm public function Get the form for the backup settings for this destination. Overrides Backup::backupSettingsForm
BackupDatabase::getFileTypeId public function Get the file type supported when backing-up or restoring to/from a file.
BackupDatabase::getLockedTables protected function Get a list of tables to be locked during the backup.
BackupDatabase::getObjectNames protected function Get a list of objects in the database.
BackupDatabase::postBackup public function Change a file after a backup is complete. Overrides Backup::postBackup
BackupDatabase::postRestore public function Change a file after restoration. Overrides Backup::postRestore
BackupDatabase::preRestore public function Prepare a file for restoration. Overrides Backup::preRestore
BackupDatabase::restore public function Restore a backup from a file. Overrides Backup::restore
BackupDatabase::typeLabel public function The translated name of the backup type. Overrides Backup::typeLabel
BackupMySql::$tableData protected property The table's data keyed by table name.
BackupMySql::$tableNames protected property The tables keyed by name.
BackupMySql::$viewNames protected property The views keyed by name.
BackupMySql::applies public static function Determine if this backup source should be used for a particular target. Overrides Backup::applies
BackupMySql::backupDatabaseToFile protected function Backup the databases to a file. Overrides BackupDatabase::backupDatabaseToFile
BackupMySql::databaseInfo public function Get the version info for the given database. Overrides BackupDatabase::databaseInfo
BackupMySql::defaultSettings public function Get the default settings for this object. Overrides BackupDatabase::defaultSettings
BackupMySql::dumpTableDataSqlToFile protected function Get the SQL to insert the data for a given table.
BackupMySql::getDatabaseConnection protected function Get the db connection for the specified db. Overrides BackupDatabase::getDatabaseConnection
BackupMySql::getSqlFileFooter protected function The footer of the SQL dump file.
BackupMySql::getSqlFileHeader protected function The header for the top of the SQL dump file.
BackupMySql::getTableData protected function Get a list of table and view data from the database.
BackupMySql::getTableNames protected function Get a list of tables in the database. Overrides BackupDatabase::getTableNames
BackupMySql::getTables protected function Get a list of tables in the database.
BackupMySql::getTableStructureSql protected function Get the SQL for the structure of the given table.
BackupMySql::getViewCreateSql protected function Get the SQL for the structure of the given view.
BackupMySql::getViewNames protected function Get a list of views in the database. Overrides BackupDatabase::getViewNames
BackupMySql::getViews protected function Get a list of views in the database.
BackupMySql::lockTables protected function Lock the database in anticipation of a backup. Overrides BackupDatabase::lockTables
BackupMySql::prepareEnvironment protected function Prepare the PHP environment for performing a backup or restore. Overrides Backup::prepareEnvironment
BackupMySql::query protected function Run a query on this destination's database using Backdrop's MySQL engine.
BackupMySql::readSqlCommandFromFile private function Read a multiline sql command from a file.
BackupMySql::restoreDatabaseFromFile protected function Backup the databases to a file. Overrides BackupDatabase::restoreDatabaseFromFile
BackupMySql::unlockTables protected function Unlock any tables that have been locked. Overrides BackupDatabase::unlockTables
BackupMySql::__construct public function Constructor for creating a new MySQL-based backup. Overrides BackupDatabase::__construct