Backup Database
Categories
Component ID
2611130
Component name
Backup Database
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
10347
Component created
Component changed
Component body
This module provides database backup and export functionality. Thanks to the PHP version of mysqldump. This module is similar to Backup and Migrate without all the bells and whistles.
Features
- Supports sqlite, mysql, pgsql and dblib
- Supports compression gzip and bzip2
- Tracks local export history
- Supports a large option set as found in mysqldump
- Allows backups to be exported locally or downloaded directly
- Supports stored procedures
- Include and exclude tables on export
This module depends upon Composer to install (it's dependencies) the mysqldump-php library; please follow the installation section in the readme.
Usage
In addition to the web interface; BackupDatabase may also be invoked manually by calling the following service. The adapter being interchanged as required.
$client = Drupal::service('backup_db.client');
$handler = new BackupDatabaseS3Adapter($client);
$handler->export();
Roadmap
- Drupal console integration, backup with options
Cron integration, backup on schedule
