Dropbox


41 posts   Page 1 of 2   1, 2
by sharix » Sun Jun 03, 2012 4:21 pm
Is there a way to have dropbox synchronization on the Pi (debian)? I'd like to have a selective folder synchronization option so the desktop client is probably a must.
Posts: 164
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
by AndrewS » Mon Jun 04, 2012 12:49 am
Never gonna work. Dropbox for Linux only runs on x86 :( so won't work on Raspi's ARM CPU.
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by JeremyF » Mon Jun 04, 2012 1:16 am
You could make a complex system in which you install Dropbox on a Windows machine, and mount the Dropbox folder as a Samba share so you can access the "remote-remote" folder on the Pi.
{sig} Setup: Original version Raspberry Pi (B, rev1, 256MB), Dell 2001FP monitor (1600x1200), 8GB Class 4 SD Card with Raspbian and XBMC, DD-WRT wireless bridge
Posts: 522
Joined: Wed Jan 25, 2012 9:06 pm
by felix123 » Mon Jun 04, 2012 5:38 am
dropdav

(It'll cost you though.)
Posts: 153
Joined: Tue May 15, 2012 6:06 am
by cheery » Mon Jun 04, 2012 6:12 am
Might be too early for dropbox to set in.. but who knows ask them whether they can provide support now. :)
User avatar
Posts: 219
Joined: Wed Jan 25, 2012 9:39 pm
by AndrewS » Mon Jun 04, 2012 9:40 am
cheery wrote:Might be too early for dropbox to set in.. but who knows ask them whether they can provide support now. :)

Nice idea, but people have been asking (and voting) for a Dropbox Linux ARM client for many many years, but all the requests fall on deaf ears :(
https://www.dropbox.com/votebox/358/linux-arm-support
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by sharix » Mon Jun 04, 2012 4:28 pm
But my armv6 android phone has dropbox.
Posts: 164
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
by AndrewS » Mon Jun 04, 2012 5:16 pm
sharix wrote:But my armv6 android phone has dropbox.

Yup https://www.dropbox.com/android

But the mobile Dropbox clients work very differently to the desktop Dropbox clients.
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by abishur » Mon Jun 04, 2012 5:17 pm
sharix wrote:But my armv6 android phone has dropbox.


Yep, your android OS can do something that a bare Linux OS cannot do. I know at the end of the day, Android is just a fancy GUI and assorted ins and outs on top of linux, but it really does make a difference. Just because something runs on one doesn't mean instant compatibility for the other. ;-)
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4265
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by EdwinJ85 » Wed Jun 06, 2012 1:21 pm
Would the web client not work? It wouldn't be perfect but you could get files from A to B with reasonable speed.
Getting doom to run is my "Hello World".
Posts: 208
Joined: Wed Feb 01, 2012 4:44 pm
by sharpapotheosis » Sun Jun 10, 2012 3:01 pm
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=7536 suggests owncloud, which looks pretty good. I'm about to try it out now :)
Posts: 58
Joined: Thu May 24, 2012 6:47 pm
by Crook » Mon Jun 11, 2012 9:41 am
Look up lftp - I want this capability and have my own FTP space (as I suspect many here do as well). Don't know much about it yet but that seems to do what you want and sync locally with a remote.
Posts: 42
Joined: Mon Jun 04, 2012 5:57 pm
by bredman » Mon Jun 11, 2012 10:04 am
If you are looking for a file backup/restore service, Duplicity (http://duplicity.nongnu.org/) is available for the RPi by using the command
sudo apt-get duplicity

Duplicity is the built-in backup solution used by Ubuntu. It can backup over ssh/scp, samba, rsync, ftp, HSI, WebDAV, Tahoe-LAFS, and Amazon S3.

I have used it for years (under the name deja-dup) to backup daily to a Samba drive and it is rock-solid.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by meltwater » Mon Jun 11, 2012 2:28 pm
I was just thinking about this, although the other services sound good, I think I could have a good simple solution (which will hopefully work for my situation where the RPi does not have internet access (due to company proxy) but does have network, so I can use through VNC).

1. Set up a SMB shared drive on rpi, so it can be viewed from windows PC.
2. Setup up file sync software (i.e. AllwaySync) to mirror these files to a sub-directory in windows which is within dropbox...

Bingo...end up with dropbox backup of files and easy way to drop files on the RPi. If I set up another SD-card with the same share, it'll keep both cards synced too.

Just need to work out how to share a directory on the RPi now...
As, bredman has pointed out before...
http://elinux.org/R-Pi_NAS
I feel may be my friend here.
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam
User avatar
Posts: 993
Joined: Tue Oct 18, 2011 11:38 am
by gkmanning » Sun Jun 17, 2012 10:25 am
Not Dropbox but you can follow the instructions here to mount box.com as a network drive on your R-pi.

http://linuxfordummies.org/mount-your-box-com-account-in-linux/
Posts: 5
Joined: Sun Jun 17, 2012 10:23 am
by AndrewS » Mon Jun 18, 2012 4:40 pm
gkmanning wrote:Not Dropbox but you can follow the instructions here to mount box.com as a network drive on your R-pi.
http://linuxfordummies.org/mount-your-box-com-account-in-linux/

There's also a WebDAV addon available for Dropbox http://dropdav.com/ which I guess would work in the same way.
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by ferik » Thu Jun 21, 2012 12:01 pm
Easiest would be to use one of the ask or the raw REST API to Push,pull files from Dropbox. Use the python sdk for example: https://www.dropbox.com/developers/reference/sdk
Posts: 15
Joined: Thu May 31, 2012 2:32 am
by AndrewS » Thu Jun 21, 2012 12:48 pm
Yup. But using the SDK effectively gives you a FTP-like interface, which isn't what people expect when they ask for a Dropbox client - they want the standard 2-way automatic file synchronization (with speedy delta-transfers) that Dropbox on the desktop (or headless x86 Linux) offers :geek:
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by tawalker » Thu Jun 21, 2012 1:11 pm
There is another possibility, if you want to access your Dropbox (and, indeed, other "cloud" storage) from your Pi without actually mirroring the files to your local storage: I just found out about a Web service called Otixo, which aims to provide a single "file manager" front-end for accessing your "cloud storage" (Dropbox, Google Drive, Skydrive, Box.net, etc.).

What particularly interests me with Otixo, is that it also provides access to your files on these services as a WebDAV share. I don't know about Debian, but in the Arch "extra" repository, there's a filesystem driver called davfs (named "davfs2" for installation), which allows you to mount a WebDAV share directly into the Pi's filesystem.

In other words: as long as you have an Otixo account (with your desired "cloud storage" services added) and a working Internet connection on the Pi, with one "mount" command you could have access to your Dropbox, etc. without needing the files mirrored locally.

I haven't had time to try it yet, but I think I have a blog post in the offing if it works :D
---
Raspberry Pi Model B ("ryo-ohki") - Arch Linux/ARM (hard float)
Visit Eee 701 Planetoid (http://eee701planetoid.wordpress.com/) for continuing adventures with an Eee 701SD and Raspberry Pi...
---
Posts: 180
Joined: Tue Jan 17, 2012 9:02 am
by ferik » Thu Jun 21, 2012 5:59 pm
AndrewS wrote:Yup. But using the SDK effectively gives you a FTP-like interface, which isn't what people expect when they ask for a Dropbox client - they want the standard 2-way automatic file synchronization (with speedy delta-transfers) that Dropbox on the desktop (or headless x86 Linux) offers :geek:


Unless you use the sdk to build exactly that. Easy enough to do in Node.js
Posts: 15
Joined: Thu May 31, 2012 2:32 am
by AndrewS » Thu Jun 21, 2012 6:40 pm
tawalker wrote:What particularly interests me with Otixo, is that it also provides access to your files on these services as a WebDAV share. I don't know about Debian, but in the Arch "extra" repository, there's a filesystem driver called davfs (named "davfs2" for installation), which allows you to mount a WebDAV share directly into the Pi's filesystem.

Which is exactly what the DropDAV I linked to earlier does. But Otixo looks cheaper than DropDAV :) - I wonder exactly how long Otixo will be able to stay "free" for?
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by AndrewS » Thu Jun 21, 2012 6:44 pm
ferik wrote:
AndrewS wrote:Yup. But using the SDK effectively gives you a FTP-like interface, which isn't what people expect when they ask for a Dropbox client - they want the standard 2-way automatic file synchronization (with speedy delta-transfers) that Dropbox on the desktop (or headless x86 Linux) offers :geek:

Unless you use the sdk to build exactly that. Easy enough to do in Node.js

The Dropbox SDK only uploads/downloads entire files, not file-deltas. And I'd love to hear how a server-side Node.js script is supposed to automatically spot when a file on your Raspi has changed?
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by ferik » Thu Jun 21, 2012 7:15 pm
Quite easily with any of the node wrappers around FAM or inotify. I am not sure if you're making a distinction between the pi and 'server-side' but the app would run on the rpi. It's very unlikely any of my rpi will be running anything but headless.

Also the Dropbox API does deltas: https://www.dropbox.com/developers/reference/api#delta
Posts: 15
Joined: Thu May 31, 2012 2:32 am
by AndrewS » Thu Jun 21, 2012 7:35 pm
Ah, that's why I was getting confused. Never used Node.js myself so thought it could only run on webservers, didn't realise you could run it "locally" too :)
Also the Dropbox API does deltas

Yes, but that's change-deltas, not file-deltas. If you only change 1KB in a 50MB file, the traditional Dropbox desktop clients only need to transfer the small part of the file that actually changed, but using the Dropbox API you have to transfer the whole 50MB all over again.
User avatar
Posts: 2972
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by ferik » Thu Jun 21, 2012 8:10 pm
Gotcha. Wouldn't really affect my use case, upload new sensor log payload to a specific directory on Dropbox then delete on the rpi but it would make for a slightly ineffective sync client. Could be fine for many use cases though.

It's important to note that Dropbox claims to create hashes on every 4MB of each file. Which means that if your file are on average less than 4MB, it wouldn't make a difference that you can't use change deltas.
Posts: 15
Joined: Thu May 31, 2012 2:32 am