antony-sklyar/laravel-dropbox-backup

This package is abandoned and no longer maintained. No replacement package was suggested.

Artisan commands to backup your website storage folder and database dump to Dropbox.

v1.0 2018-01-14 19:43 UTC

This package is not auto-updated.

Last update: 2019-01-15 22:06:20 UTC


README

This package is intended to backup those parts of your Laravel web app / website that are intentionally not placed into the version control, e.g. storage folder and database.

You should set up Dropbox integration token (as described below) and then just schedule your backup process through the Laravel's built-in schedule system by calling backup:database and/or backup:storage artisan commands on a daily/weekly basis.

Setup & Usage

  1. Install package as usual through composer require antony-sklyar/laravel-dropbox-backup.
  2. Set up Dropbox app token at https://www.dropbox.com/developers (after creating the app use "Generated access token" option).
  3. Provide the token you generated in your .env file as DROPBOX_TOKEN variable.
  4. Add Dropbox driver parameters to your config/filesystems.php (see below).
  5. Schedule artisan call like so: $schedule->command('backup:database')->daily();

That's basically it!

Dropbox driver in filesystems.php goes like this:

    'disks' => [
        ...
        'dropbox' => [
            'driver' => 'dropbox',
            'token' => env('DROPBOX_TOKEN'),
        ],
    ],

See artisan help for above-mentioned commands for additional options.