PHP code example of parkourben99 / laravel-mysql-s3-backup

1. Go to this page and download the library: Download parkourben99/laravel-mysql-s3-backup library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

parkourben99 / laravel-mysql-s3-backup example snippets


    'providers' => array(
        ...
        'LaravelMysqlS3Backup\ServiceProvider',
    ),
    

    's3' => [
        'key'    => 'AMAZON_API_KEY',
        'secret' => 'AMAZON_API_SECRET',
        'bucket' => 'your-bucket-name',
    ],
    
bash
    $ php vendor:publish --provider=parkourben99/laravel-mysql-s3-backup
    
bash
$ php artisan db:backup