Dropbox support in Drupal’s Backup and Migrate module

A guest post by Alon Pe’er

Just like any good open source project or feature, it started with a personal wish of mine to see it implemented.

The Backup and Migrate contributed Drupal module is one of the most useful ones out there. And while it has great support for various backup destinations, Dropbox wasn’t one of them. Until now.

Following a request by one of my clients, making me wish I could do it in my own projects as well, I sat down and looked at the module’s API as well as the Dropbox API and available libraries.
I bumped into 2 possible solutions:

Although the dropbox-php provides a full solutions using the Dropbox OAuth protocol, it relies on more than one extensions and packages, and even though I have them available, it’s more than likely that fellow Drupalers won’t have them on their server.
So I went with the simple Dropbox Uploader library that only lets me upload files to Dropbox (all I really need, really).

The patch is available on Drupal.org (for Drupal 6 at the moment).

I’d love to get feedback regarding performance, security etc. Also, if you know the dropbox-php project and want to create an integration with it as well, then I’d love to see it in action.