Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Backup the MySQL database of your Laravel app to Amazon S3

License

Notifications You must be signed in to change notification settings

parkourben99/laravel-mysql-s3-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Install package

    composer require parkourben99/laravel-mysql-s3-backup

    Or add it to your composer.json:

    "parkourben99/laravel-mysql-s3-backup": "1.*"
    
  2. Update your composer packages

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

    Service Provider is autoloaded if you want to registered it manually then add

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

About

Backup the MySQL database of your Laravel app to Amazon S3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%