laravel-mysql-s3-backup maintained by parkourben99
Description
Backup the MySQL database of your Laravel app to Amazon S3
Authors
Last update
2020/04/24 03:58
(dev-master)
Downloads
211
Laravel MySQL to S3 Backup
This package was rewritten and extra features added, it can be found https://github.com/ayles-software/laravel-mysql-s3-backup
This is a very simple database backup script for Laravel. It takes a mysqldump and optionally saves it to Amazon S3.
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.
Installation
-
Install package
composer require parkourben99/laravel-mysql-s3-backupOr add it to your
composer.json:"parkourben99/laravel-mysql-s3-backup": "1.*" -
Update your composer packages
$ composer update -
Update
config/app.php:Service Provider is autoloaded if you want to registered it manually then add
'providers' => array( ... 'LaravelMysqlS3Backup\ServiceProvider', ), -
Publish and edit the config
$ php vendor:publish --provider=parkourben99/laravel-mysql-s3-backupEdit
config/laravel-mysql-s3-backup.php:'s3' => [ 'key' => 'AMAZON_API_KEY', 'secret' => 'AMAZON_API_SECRET', 'bucket' => 'your-bucket-name', ],
Usage
$ php artisan db:backup
That's it. No arguments or optional parameters.