GithubHelp home page GithubHelp logo

parkourben99 / laravel-mysql-s3-backup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fitztrev/laravel-mysql-s3-backup

1.0 2.0 0.0 24 KB

Backup the MySQL database of your Laravel app to Amazon S3

License: MIT License

PHP 100.00%

laravel-mysql-s3-backup's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.