Recent Changes - Search:


Code:


Social:


My journals will take the place of a blog. If you go to the Journal page there is an RSS feed to subscribe with.

« July 2017 
SunMonTueWedThuFriSat
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Sites I take responsibility for

West Volusia, Florida

Documents

Technical

General

Me

Living

Places I frequent

Hobbies

Humor

Items for sale:


Clipboard

edit SideBar

Dropbox

Include our styles below Infobox - invoke as >>infobox<< ... >><<

Codebox: - invoke as >>codebox<< ... >><<

warnbox: - invoke as >>codebox<< ... >><<

editingbox: - invoke as >>codebox<< ... >><<

noticebox: - invoke as >>codebox<< ... >><<

Page bread crumbs: Welcome to ke3vin.org! - My Public Technical Notes - Software And Operating Systems - Software - Cloud - Dropbox

Pages by tags: (:listtags:)
Subscribe to this wiki: RSS Feed RSS or subscribe to this page for changes: RSS Feed RSS
496 articles have been published so far. Recent changes
Share

2016-03-22: This site is being moved to my main site at https://kevininscoe.com/wiki as part of a consolidation to one domain.


Dropbox remains one of my favorite cloud applications of all time. It's simple, pretty, functional, reliable and elegant all at the same time. It's near perfection. Almost. I have a few nits about it and improvements it could use and those go here along with some hacking I have done with it.

Running Dropbox on Linux as a command line

Links:

http://wiki.dropbox.com - Wiki

http://forums.dropbox.com - Forums

Dropbox security:

Encrypt your data on it: http://pragmattica.wordpress.com/2009/05/10/encrypting-your-dropbox-seamlessly-and-automatically/

http://www.ghacks.net/2011/04/13/dropbox-insecure/

http://dereknewton.com/2011/04/dropbox-authentication-static-host-ids/

Configure what folders sync from Dropbox to Linux server:

I pay for 100gb Dropbox server between many devices: iPad, iPhone, tablets, Windows, mac and my Linux desktops and servers. But I don't always want the whole 100gb stored on all of my Linux servers (often I don't have the space on smaller utility systems). Here is how to fix that. I usually create a directory for Linux system I want to push/pull files to and from. I then selective filter off all the other directories I don't want synced to the smaller system. This is very easy to do in GUI based systems like Windows and Mac (and even the mobile devices) as Dropbox has this built into Prferences->Advanced options->Selective Sync. Here is how to do this in Linux.

First download Dropbox's customization Python script from https://www.dropbox.com/download?dl=packages/dropbox.py

See also http://www.dropboxwiki.com/tips-and-tricks/using-the-official-dropbox-command-line-interface-cli

I usually save it /usr/local/bin/dropbox.py on a multi-user system or $HOME/bin on a personal system.

chmod +x dropbox.py wherever you placed it.

Now become the user who needs the selective sync configured. The configuration files are stored in $HOME/.dropbox and the actual files are stored in $HOME/Dropbox. At least that is how it works on my systems (RHEL, CentOS and Gentoo).

Note that dropbox.py still does not seem to support Python 3.x so make sure you are using Python 2.x.

$ python --version
Python 3.3.5 
$ dropbox.py status
  File "/usr/local/bin/dropbox.py", line 323
    print ex
           ^
SyntaxError: invalid syntax

Test that it is ready to go:

$ dropbox.py
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
 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

Now let's decide what to filter off from Dropbox.

$ cd $HOME/Dropbox
$ ls -F    
Manuals/                     Public/
AddToEbookLibrary/           receipts/
akira/                Freemind/                       
Apps/                 Gentoo_Notes/                   
Audio/                
AWS/              Sarah/ Sarahs iPad/

Ok in this case I only want the directory akira to sync to this Linux host so I actually have to exclude all the other directories [I know - why isn't there an include command option? ;-)]

$ dropbox.py exclude add AddToEbookLibrary
Excluded: 
addtoebooklibrary
$ dropbox.py exclude add Freemind

and so on you get the idea here. Soon you should see these directories disappear from your Dropbox.

API:

Dropbox has its own PPI just use pip to install it. If you don't know what pip is or have an older system Google "easy_install".

https://pypi.python.org/pypi/dropbox

$ pip install dropbox

Kevin's Public Wiki maintained and created by Kevin P. Inscoe is licensed under a
Creative Commons Attribution 3.0 United States License.

Back to my web site - http://kevininscoe.com

Edit - History - Print - Recent Changes - Search
Page last modified on October 23, 2014, at 08:55 AM EST