PHP code example of jrosasr / laravel-backup

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

    

jrosasr / laravel-backup example snippets


   'b2' => [
       'driver' => 's3',
       'endpoint' => env('B2_ENDPOINT'),
       'key' => env('B2_APPLICATION_KEY_ID'),
       'secret' => env('B2_APPLICATION_KEY'),
       'region' => env('B2_REGION'),
       'bucket' => env('B2_BUCKET_NAME'),
       'throw' => false,
       'docker_container_name' => env('DB_DOCKER_CONTAINER_NAME')
   ],
   'local' => [
       'driver' => 'local',
       'root' => storage_path('app/private'),
       'serve' => true,
       'throw' => false,
       'report' => false,
   ],
   
bash
   php artisan vendor:publish --tag=backup-config
   
bash
php artisan lbackup:db
bash
php artisan lbackup:storage