bradtreloar / drupal-s3-backup
S3 Backup for Drupal sites
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:project
Requires
- php: >=7.1
- aws/aws-sdk-php: ^3.117
- vlucas/phpdotenv: ^4.0
- webflo/drupal-finder: ^1.0
- webmozart/path-util: ^2.3
This package is auto-updated.
Last update: 2025-01-19 23:32:24 UTC
README
Simple backup utility that backs up a Drupal website to an AWS S3 bucket.
Requirements:
- Drupal 8+
- PHP 7+
- Drupal site must be using MySQL.
Usage
Install this utility as a composer dependency of your Drupal site.
composer require bradtreloar/drupal-s3-backup
Set your AWS credentials and bucket name in your site's .env
file.
AWS_ACCESS_KEY_ID="AKIAIOSFODNN7EXAMPLE"
AWS_SECRET_ACCESS_KEY="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
DRUPAL_S3_BACKUP_BUCKET="example-bucket"
To do a backup from the command line:
cd /path/to/drupal && php -q ./vendor/bin/drupal-s3-backup