Ubuntu – How to sync the Dropbox files with a preferred local folder

dropboxsync

I installed Dropbox using following commands

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

Then I ran the demon with this command:

~/.dropbox-dist/dropboxd

Now I want to sync my Dropbox data with the /var/www local directory.
Is it possible?

Best Answer

Dropbox currently does not support syncing folders outside the Dropbox folder, according to their web site.

However you can achieve this by creating a symbolic link between the Dropbox folder and the other folder you want sync, using this command:

sudo ln -s ~/Dropbox  **/path/to/another/folder**

So when you go inside /path/to/another/folder, you will be taken into ~/Dropbox
Make sure the other folder is accessible after linking.

Related Question