New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

fitztrev/laravel-mysql-s3-backup

Backup the MySQL database of your Laravel app to Amazon S3
244 11
Install
composer require fitztrev/laravel-mysql-s3-backup:dev-master
PHP:>=5.4.0
Last Updated:Aug 8, 2014
Links: GitHub  ·  Packagist
Maintainer: fitztrev

Laravel MySQL to 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

  1. Add it to your composer.json:

    "fitztrev/laravel-mysql-s3-backup": "dev-master"
    
  2. Update your composer packages

    $ composer update
    
  3. Update app/config/app.php:

    'providers' => array(
        ...
        'Fitztrev\LaravelMysqlS3Backup\LaravelMysqlS3BackupServiceProvider',
    ),
    
  4. 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',
    ],
    

Usage

$ php artisan db:backup

That's it. No arguments or optional parameters.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663