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
- Host: GitHub
- URL: https://github.com/abecms/drupal_backup_db
- Owner: abecms
- License: gpl-2.0
- Created: 2024-01-15T19:44:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-15T21:37:42.000Z (over 2 years ago)
- Last Synced: 2025-06-02T01:10:12.541Z (about 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)