Whatbox Logo

Wiki > Dropbox

"Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere. This means that any file you save to your Dropbox will automatically save to all your computers, phones and even the Dropbox website. Dropbox also makes it super easy to share with others, whether you're a student or professional, parent or grandparent. Even if you accidentally spill a latte on your laptop, have no fear! You can relax knowing that Dropbox always has you covered, and none of your stuff will ever be lost."

Note: All upload to the Dropbox servers from your Whatbox slot will count towards your traffic limits.


  1. SSH into your server.
  2. Make sure that you are in the root of your home directory with cd
  3. Since all Whatbox servers have an x86-64 architecture, we need to download the x86-64 Dropbox client. wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64"
  4. Extract the newly download archive. tar -xvzf dropbox.tar.gz
  5. Run the Dropbox daemon. ~/.dropbox-dist/dropboxd
  6. You should now see output similar to this This client is not linked to any account... Please visit https://www.dropbox.com/cli_link?host_id= to link this machine.
  7. Go to the URL given in your SSH client (not the one in this Wiki article's example message); you should see a success message at the top of your screen after logging in.
  8. It is recommended to exit Dropbox now with Ctrl+C and install the official Dropbox CLI (continue on to post-installation for instructions)


Official Dropbox CLI (Command-line Interface)

Note: This script is required for most Dropbox functionality. It is recommended to download the official Dropbox CLI to start the dropbox daemon (as an unprivileged user) and get its status.

  1. Download the Python script. wget -O ~/dropbox.py "http://www.dropbox.com/download?dl=packages/dropbox.py"
  2. Give your account access to execute the script. chmod 755 ~/dropbox.py
  3. To see the available options, run ~/dropbox.py help

Changing the dropbox folder location

To move an existing dropbox folder to /foo/bar:

  1. Stop dropbox. ~/dropbox.py stop
  2. Backup your current Dropbox database. cp ~/.dropbox/dropbox.db dropbox.db.backup
  3. Download the dropboxdir.py script. This script is used to modify Dropbox's database file. wget https://gist.githubusercontent.com/BlackFoks/7939538/raw/1b070a2f35583c17c2c644d52d8610f987c5bcd9/dropboxdir.py
  4. Give your account access to execute the new script. chmod +x dropboxdir.py
  5. Move the current Dropbox directory to a new directory named "bar", located in the directory "foo". mv ~/Dropbox /foo/bar
  6. Set Dropbox to use the new folder ./dropboxdir.py --setfolder=/foo/bar
  7. Start Dropbox. ~/dropbox start

Using symbolic links to move the folder location

  1. Stop Dropbox. ~/dropbox.py stop
  2. Move your current Dropbox folder to a directory named "folder" located inside the directory "target" mv ~/Dropbox /target/folder
  3. Create the symbolic link. ln -s /target/folder/Dropbox ~/
  4. Start Dropbox. ~/dropbox.py start

Unlink / Relink dropbox account

To unlink:

~/dropbox.py stop mv ~/.dropbox ~/.dropbox.old

To relink:


Exclude certain folders from syncing

Display currently excluded directories ~/dropbox.py exclude list

Add one or more directories to the exclusion list, then resynchronize Dropbox. ~/dropbox.py exclude add [directory] [directory] [directory]

NOTE: be sure to specify the full path to [directory] above, or else the script will ignore your command. e.g. ~/dropbox.py exclude add ~/Dropbox/Public

Remove one or more directories from the exclusion list, then resynchronize Dropbox. ~/dropbox.py exclude remove [directory] [directory] [directory]

Check Dropbox's status

~/dropbox.py status

Stop and start the Dropbox daemon

Stop Dropbox. ~/dropbox.py stop

Start Dropbox. ~/dropbox.py start


dbxfs allows you to mount your Dropbox folder as if it were a local filesystem. Compared to the original method above, this method does not directly store the data on your slot, so it does not take up storage space.


  1. SSH into your server.

  2. Install pip for python3.

     curl -s https://bootstrap.pypa.io/get-pip.py | python3 - --user``
  3. Add the user site bin directory to your PATH (if you've done this previously, you do not need to do it again)

      echo "PATH=\$HOME/.local/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
  4. Install dbxfs

     pip3 install dbxfs --user
  5. Configure and launch dbxfs, where ~/Dropbox is the directory you wish to use for your Dropbox:

     dbxfs ~/Dropbox

You will be prompted to provide OAuth authentication to link dbxfs to your Dropbox account. A configuration can be saved and will require an extra password to encrypt the configuration file used by dbxfs.

You can unmount dbxfs with fusermount -uz ~/Dropbox (where ~/Dropbox is the director you are using for dbxfs)

On server reboots, you will need to run dbxfs again manually. Because of the requirement to encrypt the configuration file, crontab cannot be used to automatically start dbxfs.