A destination type for saving to a database server.

Hierarchy

Expanded class hierarchy of BackupDatabase

File

core/includes/backup/backup.database.inc, line 12
Functions to handle the direct to/from database backup source.

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::applies public static function Determine if this backup source should be used for a particular target.
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::prepareEnvironment protected function Prepare the PHP environment for performing a backup or restore.
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::backupDatabaseToFile abstract protected function Backup the databases to a file.
BackupDatabase::backupSettingsForm public function Get the form for the backup settings for this destination. Overrides Backup::backupSettingsForm
BackupDatabase::databaseInfo public function Get the version info for the given database.
BackupDatabase::defaultSettings public function Get the default settings for this object. Overrides Backup::defaultSettings
BackupDatabase::getDatabaseConnection protected function Get the db connection for the specified db.
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::getTableNames abstract protected function Get a list of tables in the database.
BackupDatabase::getViewNames abstract protected function Get a list of views in the database.
BackupDatabase::lockTables abstract protected function Lock the database in anticipation of a backup.
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::restoreDatabaseFromFile abstract protected function Backup the databases to a file.
BackupDatabase::typeLabel public function The translated name of the backup type. Overrides Backup::typeLabel
BackupDatabase::unlockTables abstract protected function Unlock any tables that have been locked.
BackupDatabase::__construct public function Constructor for creating a new backup of any type. Overrides Backup::__construct