1 install rabbit-youtube via. pip
pip install rabbit-backup 
2 config dropbox access token
login to dropbox developers (https://www.dropbox.com/developers), create a new app
nevigate to the app details page click 'Generate' to generate an access token, you may copy the token now.
run
rabbit-backup.py 
no config file found, please input your dropbox access token:
paste your access token and 'Enter'
3 Ready to use!
as appliction:
rabbit-backup.py -r /test -d 1 /tmp/test.txt
as API:
import logging
from rabbit_backup.rabbit_dropbox import BackupJob

if __name__ == '__main__':
    logging.basicConfig(level=logging.INFO)

    access_token = 'DropBox token'

    rabbit_dropbox_job = BackupJob(access_token, 'test', 5)
    rabbit_dropbox_job.backup_and_clear_history_data(['/tmp/test'])
Fork me on GitHub