Linux‎ > ‎Desktop Tips‎ > ‎

Map Dropbox folder to nfs share

posted Oct 25, 2014, 8:12 AM by Joe Bieber   [ updated Oct 25, 2014, 8:12 AM ]
I have my Dropbox folder on a network share. I did this because I didn't want to sync all my Dropbox data every time I switch to a different linux distro. It works really well. The only time I had a problem is when I unmounted my dropbox folder from the share and dropbox thought I had deleted everything. Surprise!! I was able to easily restore the data from the dropbox website.

You need a nfs share on your network, like a NAS box.(currently using a FreeNAS VM on a ESXi server)

Make sure you can mount to a nfs share

$ sudo apt-get install nfs-common

Create the Dropbox folder in your home folder

$ mkdir /home/USERNAME/Dropbox

Modify your /etc/fstab by adding the following line

SERVER ADDRESS:/SHARE LOCATION    /home/USERNAME/Dropbox   nfs   _netdev,auto   0   0

example   /home/joe/Dropbox   nfs _netdev,auto   0   0

Then mount

$ sudo mount -a

Install Dropbox and choose merge folder when it asks. Dropbox will sync to make sure you have the latest files and your done.