pip install rabbit-backup
rabbit-backup.pypaste your access token and 'Enter'
no config file found, please input your dropbox access token:
rabbit-backup.py -r /test -d 1 /tmp/test.txtas 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'])