Download the PHP package bszalai/dropboxupload without Composer
On this page you can find all versions of the php package bszalai/dropboxupload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dropboxupload
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
-
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 providersSchickling\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
- Create another CRON job for the Dropbox upload, set the run time after the backup surely finished
License
Dropboxbackup is under MIT License
Copyright
© 2014 Barna Szalai
All versions of dropboxupload with dependencies
illuminate/support Version 4.1.*
dropbox/dropbox-sdk Version 1.1.*
schickling/backup Version dev-master