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
Requires
- php: >=7.0
- benjamincrozat/laravel-dropbox-driver: ^2.0
- laravel/framework: 5.5.*
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
- Install package as usual through
composer require antony-sklyar/laravel-dropbox-backup
. - Set up Dropbox app token at https://www.dropbox.com/developers (after creating the app use "Generated access token" option).
- Provide the token you generated in your
.env
file asDROPBOX_TOKEN
variable. - Add Dropbox driver parameters to your
config/filesystems.php
(see below). - 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.