Creates and restores backups from a MySQL database source.
Hierarchy
- class Backup- class BackupDatabase- class BackupMySql
 
 
- class BackupDatabase
Expanded class hierarchy of BackupMySql
File
- core/includes/ backup/ backup.mysql.inc, line 11 
- Contains the BackupMySQL class.
Members
| Name   | Modifiers | Type | Description | 
|---|---|---|---|
| Backup:: | protected | property | The name of this backup. This is used as the basename of the backup file. | 
| Backup:: | protected | property | Indicates the item key to be backed up. | 
| Backup:: | protected | property | An array of log entries. The array is unindexed and contains nested, unindexed arrays, each with the following keys: | 
| Backup:: | protected | property | The settings array to configure the backup and restore process. | 
| Backup:: | public | function | Clear the log for this backup instance. | 
| Backup:: | public | function | Compress a backup file with gzip. | 
| Backup:: | constant | ||
| Backup:: | constant | ||
| Backup:: | public | function | Decompress a backup file with gzip. | 
| Backup:: | public | function | Return the log for this backup instance. | 
| Backup:: | public | function | Get the name of the backup. | 
| Backup:: | public | function | Get the target of the backup. | 
| Backup:: | protected | function | Log a message that occurs during a backup or migration process. | 
| Backup:: | constant | ||
| Backup:: | constant | ||
| Backup:: | constant | ||
| Backup:: | public | function | Prepare a file to receive a backup. | 
| Backup:: | protected | function | Determines if time for a page execution has run out. | 
| BackupDatabase:: | protected | property | The database connection to be used when doing a backup or restore. | 
| BackupDatabase:: | public | function | Run the full backup process, including generating the backup and saving it. Overrides Backup:: | 
| BackupDatabase:: | public | function | Get the form for the backup settings for this destination. Overrides Backup:: | 
| BackupDatabase:: | public | function | Get the file type supported when backing-up or restoring to/from a file. | 
| BackupDatabase:: | protected | function | Get a list of tables to be locked during the backup. | 
| BackupDatabase:: | protected | function | Get a list of objects in the database. | 
| BackupDatabase:: | public | function | Change a file after a backup is complete. Overrides Backup:: | 
| BackupDatabase:: | public | function | Change a file after restoration. Overrides Backup:: | 
| BackupDatabase:: | public | function | Prepare a file for restoration. Overrides Backup:: | 
| BackupDatabase:: | public | function | Restore a backup from a file. Overrides Backup:: | 
| BackupDatabase:: | public | function | The translated name of the backup type. Overrides Backup:: | 
| BackupMySql:: | protected | property | The table's data keyed by table name. | 
| BackupMySql:: | protected | property | The tables keyed by name. | 
| BackupMySql:: | protected | property | The views keyed by name. | 
| BackupMySql:: | public static | function | Determine if this backup source should be used for a particular target. Overrides Backup:: | 
| BackupMySql:: | protected | function | Backup the databases to a file. Overrides BackupDatabase:: | 
| BackupMySql:: | public | function | Get the version info for the given database. Overrides BackupDatabase:: | 
| BackupMySql:: | public | function | Get the default settings for this object. Overrides BackupDatabase:: | 
| BackupMySql:: | protected | function | Get the SQL to insert the data for a given table. | 
| BackupMySql:: | protected | function | Get the db connection for the specified db. Overrides BackupDatabase:: | 
| BackupMySql:: | protected | function | The footer of the SQL dump file. | 
| BackupMySql:: | protected | function | The header for the top of the SQL dump file. | 
| BackupMySql:: | protected | function | Get a list of table and view data from the database. | 
| BackupMySql:: | protected | function | Get a list of tables in the database. Overrides BackupDatabase:: | 
| BackupMySql:: | protected | function | Get a list of tables in the database. | 
| BackupMySql:: | protected | function | Get the SQL for the structure of the given table. | 
| BackupMySql:: | protected | function | Get the SQL for the structure of the given view. | 
| BackupMySql:: | protected | function | Get a list of views in the database. Overrides BackupDatabase:: | 
| BackupMySql:: | protected | function | Get a list of views in the database. | 
| BackupMySql:: | protected | function | Lock the database in anticipation of a backup. Overrides BackupDatabase:: | 
| BackupMySql:: | protected | function | Prepare the PHP environment for performing a backup or restore. Overrides Backup:: | 
| BackupMySql:: | protected | function | Run a query on this destination's database using Backdrop's MySQL engine. | 
| BackupMySql:: | private | function | Read a multiline sql command from a file. | 
| BackupMySql:: | protected | function | Backup the databases to a file. Overrides BackupDatabase:: | 
| BackupMySql:: | protected | function | Unlock any tables that have been locked. Overrides BackupDatabase:: | 
| BackupMySql:: | public | function | Constructor for creating a new MySQL-based backup. Overrides BackupDatabase:: | 
