Using BASH script
Download the dropbox_uploader.sh BASH script from https://github.com/andreafabrizi/Dropbox-Uploader
Run the script
It’ll print out the below:
This is the first time you run this script. Please open this URL from your Browser, and access using your account: -> https://www2.dropbox.com/developers/apps If you haven't already done, click "Create an App" and fill in the form with the following data: App name: MyUploader888 Description: What do you want... Access level: App folder or Full Dropbox Now, click on the "Create" button. When your new App is successfully created, please type the App Key, App Secret and the Access level: # App key:
Sign into Dropbox and create an app for uploader.
Follow the instruction in command line. Once you completed the procedure, you can upload/download individual files from the command line to and from Dropdox.
To upload files : -
./dropbox_uploader.sh upload /your/local/file/test.zip
For more commands visit : https://github.com/andreafabrizi/Dropbox-Uploader
For backup script visit : https://github.com/andreafabrizi/Dropbox-Uploader/wiki/Simple-backup-script
PHP Dropbox Uploader
Download the PHP script from https://github.com/jakajancar/DropboxUploader/
require 'DropboxUploader.php'; $uploader = new DropboxUploader('firstname.lastname@example.org', 'password'); $uploader->upload('path/to/your/file.zip');
Use cron jobs to schedule automatic backup to DropBox