parkourben99 / laravel-mysql-s3-backup
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (3.0) of this package.
Backup the MySQL database of your Laravel app to Amazon S3
3.0
2020-04-15 02:44 UTC
Requires
- php: ^7.0
- aws/aws-sdk-php: ^3.0
- illuminate/support: ^5.2||^6.0||^7.0
This package is auto-updated.
Last update: 2020-05-24 02:06:17 UTC
README
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-backup
Or 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-backup
Edit
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.