An open API service indexing awesome lists of open source software.

https://github.com/abecms/drupal_backup_db

Drupal database backup module
https://github.com/abecms/drupal_backup_db

Last synced: 10 months ago
JSON representation

Drupal database backup module

Awesome Lists containing this project

README

          

This module provides database export functionality with help from a php version of mysqldump. The library (https://github.com/ifsnop/mysqldump-php) supports the following features.

- output binary blobs as hex.
- resolves view dependencies (using Stand-In tables).
- output compared against original mysqldump. Linked to travis-ci testing system.
- dumps stored procedures.
- does extended-insert and/or complete-insert.

This module depends upon Composer Manager to install the mysqldump-php library; please follow the installation section below.

Installation (@ref, http://cgit.drupalcode.org/address/tree/README.md)

1. cd / navigate to the Drupal root directory

2. add the Drupal Packagist repository
``
composer config repositories.drupal composer https://packages.drupal.org/8
``

3. use composer to download the module and it's dependencies
``
composer require drupal/backup_db
``

4. enable the Backup Database module.

Manual usage

1. $client = \Drupal::service('backup_db.client');
2. Do client things (update settings, set new connection)
$client->setConnection();
3. Select our adapter/handler.
4. Do the magic
$handler->export();

More information
- https://www.drupal.org/node/2405811

Credits
- ifsnop (https://github.com/ifsnop)