AWS S3

This module provides a database backup solution and exports to the AWS S3 storage system. Backups can also be exported to local file system or downloaded remotely.

Features

  • Keeps a history of database backups and can be accessed via interface.
  • Allows backups to be exported to AWS S3 storage system.
  • Allows for configurable endpoint in AWS S3 storage system.
  • Allows for sub-folders in AWS S3 storage system.
  • Allows backups to be stored in private or public file system. Private is recommended.
  • Allows backups to be downloaded remotely via interface.
  • Backups can be generated via Drupal cron and interval can be configured.
  • Drush command available to help generate database backups via cli.

Backup Features

  • Supports sqlite, mysql, pgsql and dblib.
  • Supports compressions gzip and bzip2.
  • Supports a large option set as found in mysqldump.
  • Supports stored procedures.
  • Select which tables are included or excluded on export.

Required

Composer Dependencies

This module depends upon Composer to install it's dependencies. See below for the libraries used in this module.

Module Dependencies

The Key module (https://www.drupal.org/project/key) is required for storing AWS S3 access and secret keys securely.

Both keys can now be stored on one key using the Key AWS S3 module (https://www.drupal.org/project/key_aws_s3). It will store the access and secret key data in it.

AWS S3 access and secret keys are managed through the use of the Key module.

Keys can be setup and managed here:
/admin/config/system/keys

Once the keys are setup, you can link them up here:
/admin/config/s3-db-backup/settings

Install/Usage

If installing via composer, see the command below:

composer require drupal/s3_db_backup
  1. Install module like any other contributed module. Installing through composer will pull in all required dependencies as required.
  2. Setup access & secret keys using the key module:
    /admin/config/system/keys
  3. Once installed, setup configuration at:
    /admin/config/s3-db-backup/settings
  4. If storing or exporting to local, please setup or use the private directory instead of public.
  5. Now you are ready to start exporting your database backups:
    /admin/config/s3-db-backup

Drush Command

Once the module is configured and setup. Database backups/exports can be generated via drush command. Please keep in mind that the export links are only made available in Drupal admin back-end, for security reasons.

drush s3-db-backup:export
Supporting organizations: 

Project information

Releases