Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'd like to be able to set up my Dropbox account as a destination for the backups.
The destination page should let me enter my Dropbox credentials, and a target folder inside my Dropbox account.
This feature can use the Dropbox Uploader class (http://jaka.kubje.org/projects/dropbox-uploader/) just like the Dropbox Integration module.
Comment | File | Size | Author |
---|---|---|---|
#4 | backup_migrate-dropbox.patch | 4.12 KB | alonpeer |
#2 | Backup_Migrate_Dropbox.zip | 1.84 KB | alonpeer |
Comments
Comment #1
alonpeer CreditAttribution: alonpeer commentedAnother possible library to be used: http://code.google.com/p/dropbox-php/
Comment #2
alonpeer CreditAttribution: alonpeer commentedI'm not good with patches and stuff.
In any case, here's a prototype I created that implements this using the Dropbox Uploader library.
And that's it, you are ready to go.
NOTICE: The Dropbox Uploader library only supports file uploads and not the full Dropbox API via OAuth. I chose to use it because it was quick and easy, and it doesn't involve any special PEAR libraries etc. like the Google Code implementation.
If someone can create a patch from this, I would be grateful. Also, any comments are welcome.
Comment #3
alonpeer CreditAttribution: alonpeer commentedComment #4
alonpeer CreditAttribution: alonpeer commentedOK, I give up. Here's my patch.
Comment #5
Danny EnglanderSubscribing
Comment #6
alonpeer CreditAttribution: alonpeer commentedMoving this to 6.x-2.x-dev, maybe this way it'll get some attention.
Comment #7
alonpeer CreditAttribution: alonpeer commentedNo attention...?
Comment #8
ronan CreditAttribution: ronan commentedThanks for the hard work on this. Since the dropbox module promises API support, I'd love to see a solution that leverages the work done there, especially if third party libraries are required for this to work.
Comment #9
AdrianB CreditAttribution: AdrianB commentedSubscribing.
Comment #10
JayKayAu CreditAttribution: JayKayAu commentedThanks, this looks very interesting. Subscribing...
Comment #11
meba CreditAttribution: meba commentedhttps://www.dropbox.com/developers/docs#authentication-for-mobile-devices
Mobile authentication is done using a call named token that's in the Mobile API specification section. Token takes a user's username and password and returns a working access token/secret pair to your application that you can use from then on. It's a relatively simple process, but with one caveat: you cannot store the user's password in your application. You can store a username for usability purposes or in case re-authentication is needed. However, there is no reason you should store their password.
In fact, because you are receiving a working OAuth access token for the user, there's really no need to store their username and password in your application at all. Simply store the tokens instead and use them in all of your subsequent calls. The Objective-C libraries in the SDK actually do this for you in order to make sure you get it right the first time.
It's worth mentioning here that the tokens given out via the mobile authentication process don't expire for ten years.
Comment #12
wundo CreditAttribution: wundo commentedModule created, please take a look here: http://drupal.org/project/backup_migrate_dropbox
Comment #13
wundo CreditAttribution: wundo commentedComment #14
BenK CreditAttribution: BenK commentedKeeping track of this thread...
Comment #16
lukehan CreditAttribution: lukehan commentedreally useful and cool module, can't wait to try for my site
Comment #17
Sandip Choudhury CreditAttribution: Sandip Choudhury commentedUseful module, please keep up updating!!!
Comment #18
Hadi Farnoud CreditAttribution: Hadi Farnoud commentedplease add some guidance on the module page fgs
Comment #19
krak CreditAttribution: krak commentedIs version 6.x-2.x working? How config? I can't backup database to dropbox.