"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.
- SSH into your server.
- Make sure that you are in the root of your home directory with
- 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"
- Extract the newly download archive.
tar -xvzf dropbox.tar.gz
- Run the Dropbox daemon.
- 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.
- 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.
- 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.
- Download the Python script.
wget -O ~/dropbox.py "http://www.dropbox.com/download?dl=packages/dropbox.py"
- Give your account access to execute the script.
chmod 755 ~/dropbox.py
- To see the available options, run
Changing the dropbox folder location
To move an existing dropbox folder to /foo/bar:
- Stop dropbox.
- Backup your current Dropbox database.
cp ~/.dropbox/dropbox.db dropbox.db.backup
- Download the dropboxdir.py script. This script is used to modify Dropbox's database file.
- Give your account access to execute the new script.
chmod +x dropboxdir.py
- Move the current Dropbox directory to a new directory named "bar", located in the directory "foo".
mv ~/Dropbox /foo/bar
- Set Dropbox to use the new folder
- Start Dropbox.
Using symbolic links to move the folder location
- Stop Dropbox.
- Move your current Dropbox folder to a directory named "folder" located inside the directory "target"
mv ~/Dropbox /target/folder
- Create the symbolic link.
ln -s /target/folder/Dropbox ~/
- Start Dropbox.
Unlink / Relink dropbox account
mv ~/.dropbox ~/.dropbox.old
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.
~/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
Stop and start the Dropbox daemon
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.
SSH into your server.
Install pip for python3.
curl -s https://bootstrap.pypa.io/get-pip.py | python3 - --user``
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
pip3 install dbxfs --user
Configure and launch dbxfs, where
~/Dropboxis the directory you wish to use for your 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.