New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bszalai/dropboxupload

Upload database dumps to Dropbox
22

Larablocks Analysis

bszalai/dropboxupload works with Laravel 4 (latest release 1.0, Apr 16, 2014), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 4, past end of life
  • No release in the last 12 months (last: Apr 16, 2014)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 16, 2014.
  • No releases in the last 12 months.
  • First released: Apr 16, 2014.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.

Install
composer require bszalai/dropboxupload
Latest Version:1.0
PHP:>=5.3.0
Laravel:4
License:MIT
Last Updated:Oct 25, 2016
Links: GitHub  ·  Packagist
Maintainer: bszalai

NOTE!

Please use this package for Laravel 5 and up: https://github.com/backup-manager/laravel

Database dump Dropbox upload

Dropbox upload is a Laravel 4 package, which uploads a previously dumped database file to a Dropbox account. The database backup is made by the package schickling/backup. Thanks Johannes!

The big advantage of this package is that it doesn't ask you to enter any input, because uses a permanent token key, your uploads will happen in the background..

Usage

Generate a permanent token for the package

  • Go to https://dropbox.com/developers/apps and generate api keys.

  • Install Dropboxupload

    composer require bszalai/dropboxupload:dev-master

  • Create a file keys.json and fill it with your keys

{  
   	"key" : "Dropbox app key",  
   	"secret": "Dropbox app secret"  
}    
  • Copy this file into the Dropbox package's examples folder (vendor/dropbox/dropbox-sdk/examples).

  • Open a terminal, go to the above folder and enter

    php authorize.php keys.json token.json

  • Click on the url in the terminal, it'll open a browser window, Allow the app to access your folder, and copy the provided key (you have to log in to Dropbox if you aren't logged in)

  • Go back to terminal, and paste the above key, and press Enter.

  • You'll have a token.json file created.

  • Copy this file into the app/storage folder. You are done.

Using the package

  • Edit your app.php in the app/config folder, and add the following lines to the service providers

    Schickling\Backup\BackupServiceProvider,
    Bszalai\Dropboxupload\DropboxuploadServiceProvider

  • Publish the package config file

    php artisan config:publish bszalai/dropboxupload

  • Edit the config file (app/config/packages/bszalai/dropboxupload/config.php), you have several options

    • prefix - name-prefix of the source file

    • uploadfolder - where to upload the file

    • compress - if set to true, it'll create a zip file

    • encrypt - encrypt the source file, set the encryption key so you can decrypt your file later

  • Create a CRON job for the Backup package

Example:

/usr/local/bin/php53 /path/to/your/app/artisan db:backup
  • Create another CRON job for the Dropbox upload, set the run time after the backup surely finished
Example:

/usr/local/bin/php53 /path/to/your/app/artisan dropbox:upload

License

Dropboxbackup is under MIT License

© 2014 Barna Szalai

Related Packages

dcblogdev/laravel-dropbox

A Laravel Dropbox v2 package

87,312 32
benjamincrozat/laravel-dropbox-driver

Dropbox storage driver for Laravel.

306,546 52
jeylabs/laravel-dropbox-storage-driver

Dropbox storage driver for Laravel.

758 1
naturalweb/nwlaravel-dropbox

Dropbox SDK Service Provider for the Laravel PHP Framework

359 1
spatie/dropbox-api

A minimal implementation of Dropbox API v2

8,011,787 307

Version History

Version Released PHP Laravel License
1.0 >=5.3.0 4.1.* MIT