dev-master
9999999-devBackup the MySQL database of your Laravel app to Amazon S3
The Requires
- php >=5.4.0
- illuminate/support 4.2.*
- aws/aws-sdk-php 2.*
by Trevor Fitzgerald
Wallogit.com
2017 © Pedro Peláez
Backup the MySQL database of your Laravel app to Amazon S3
This is a very simple database backup script for Laravel. It takes a mysqldump and optionally saves it to Amazon S3., (*1)
This package is very opinionated. Other backup scripts can support other database types or other places besides S3 to store your backup. This does not., (*2)
Add it to your composer.json:, (*3)
"fitztrev/laravel-mysql-s3-backup": "dev-master"
Update your composer packages, (*4)
$ composer update
Update app/config/app.php:, (*5)
'providers' => array(
...
'Fitztrev\LaravelMysqlS3Backup\LaravelMysqlS3BackupServiceProvider',
),
Publish and edit the config, (*6)
$ php artisan config:publish fitztrev/laravel-mysql-s3-backup
Edit app/config/packages/fitztrev/laravel-mysql-s3-backup/config.php:, (*7)
's3' => [
'key' => 'AMAZON_API_KEY',
'secret' => 'AMAZON_API_SECRET',
'bucket' => 'your-bucket-name',
],
$ php artisan db:backup
That's it. No arguments or optional parameters., (*8)
Backup the MySQL database of your Laravel app to Amazon S3