ayles-software/laravel-mysql-s3-backup
最新稳定版本:4.9.0
Composer 安装命令:
composer require ayles-software/laravel-mysql-s3-backup
包简介
Backup the MySQL database of your Laravel app to Amazon S3
README 文档
README
This is a very simple database backup script for Laravel. It takes a mysqldump and saves it to Amazon S3 or compatible object storage.
It also supports trimming backups to only have X days worth on 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 ayles-software/laravel-mysql-s3-backup -
Publish and edit the config
php artisan vendor:publish --provider="LaravelMysqlS3Backup\ServiceProvider"Edit
config/laravel-mysql-s3-backup.php:'s3' => [ 'key' => 'AMAZON_API_KEY', 'secret' => 'AMAZON_API_SECRET', 'bucket' => 'your-bucket-name', 'region' => 'your-bucket-region', 'endpoint' => env('AWS_ENDPOINT'), 'folder' => env('BACKUP_FOLDER'), ],
Usage
$ php artisan db:backup
That's it. No arguments or optional parameters.
Credit
This package was originally forked from fitztrev before a complete rewrite.
License
Laravel MySQL to S3 Backup is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 23.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-04-24