PHP code example of ayles-software / laravel-mysql-s3-backup

1. Go to this page and download the library: Download ayles-software/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/ */

    

ayles-software / laravel-mysql-s3-backup example snippets


    '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'),
    ],
    
bash
    php artisan vendor:publish --provider="LaravelMysqlS3Backup\ServiceProvider"
    
bash
$ php artisan db:backup