Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have Dropbox running on a Debian server. I'd like to be able to find out the sync status - like you get when you right-click the dropbox icon in Windows, e.g. "Downloading 123 files" or "All up-to-date".

I'm sure there's a way but Google is apparently not my friend on this one.

Pls. note that I'm talking about the headless server install of dropbox, not the more common dropbox + dropbox-nautilus set up used for a typical linux desktop.

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

It looks like you need to download the dropbox script for managing the daemon. Instructions on the dropbox website

wget -O ~/dropbox.py https://www.dropbox.com/download?dl=packages/dropbox.py
chmod a+x ~/dropbox.py
~/dropbox.py status

You can also create a symlink to your dropbox script, so you don't have to type ~/dropbox.py to run it every time.

sudo ln -s ~/dropbox.py /usr/local/bin/dropbox
dropbox status
share|improve this answer
    
Thank you, I missed that tiny link in the small print at the bottom of Dropbox's page! In case anyone else reads this: nb. that the dropbox.py script must be run as the same user as the dropbox daemon is running as. –  artfulrobot Jul 26 '12 at 11:15
add comment

With the helper script installed (part of the .deb package)

$ dropbox help
Dropbox command-line interface

commands:

Note: use dropbox help <command> to view usage for a specific command.

 status       get current status of the dropboxd
 help         provide help
 puburl       get public url of a file in your dropbox
 stop         stop dropboxd
 running      return whether dropbox is running
 update       download latest version of dropbox
 start        start dropboxd
 filestatus   get current sync status of one or more files
 ls           list directory contents with current sync status
 autostart    automatically start dropbox at login
 exclude      ignores/excludes a directory from syncing
 lansync      enables or disables LAN sync


$ dropbox status
share|improve this answer
    
yeah, that's the gui version and is not there for the headless install. There is a dropbox command (~/.dropbox-dist/dropbox) but this starts the daemon only; it doesn't take any arguments. –  artfulrobot Jul 24 '12 at 13:29
    
By the way, if it was you who marked my question down (because you thought I had meant the normal GUI version not the headless one, as stated in the title, and that I was therefore being lazy!) could you remove that vote-down as it puts people off answering. Ta. –  artfulrobot Jul 24 '12 at 16:29
    
/usr/bin/dropbox should be installed as part of the .deb installation. (and no, I didn't mark you down) –  JRT Jul 25 '12 at 14:35
    
Didn't install from .deb, installed as described on Dropbox.com, but as other answer pointed out, I missed the management script which for some odd reason is not bundled with the daemon! Thank you for your time. –  artfulrobot Jul 26 '12 at 11:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.