Package Data | |
---|---|
Maintainer Username: | fitztrev |
Maintainer Contact: | fitztrev@gmail.com (Trevor Fitzgerald) |
Package Create Date: | 2014-08-07 |
Package Last Update: | 2014-08-08 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-23 03:14:00 |
Package Statistics | |
---|---|
Total Downloads: | 244 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 11 |
Total Watchers: | 4 |
Total Forks: | 8 |
Total Open Issues: | 1 |
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.
Add it to your composer.json
:
"fitztrev/laravel-mysql-s3-backup": "dev-master"
Update your composer packages
$ composer update
Update app/config/app.php
:
'providers' => array(
...
'Fitztrev\LaravelMysqlS3Backup\LaravelMysqlS3BackupServiceProvider',
),
Publish and edit the config
$ php artisan config:publish fitztrev/laravel-mysql-s3-backup
Edit app/config/packages/fitztrev/laravel-mysql-s3-backup/config.php
:
'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.