Symlink your Documents folder with your Dropbox folder
by Zebedee on Feb.05, 2010, under Hacking, Linux
When I found out about Dropbox I instantly fell in love with the idea as I have a Dual Boot Laptop and my work PC all running differnet OS’s. The problem I found with Dropbox was that I had all my files already in place in my Documents folder on my Ubuntu setup. I did not want to move all my files to the Dropbox so I thought i would symlink them.
OK well my introduction may of been a bit misleading but it is very close. I tried the symlink to the Documents folder but this did not upload the files to Dropbox. So I have moved all my files into the Dropbox folder and then symlinked it back to my Documents folder. If you are going to do this make sure that you do not include your Download folder in your Documents folder because i don’t know about you but my Download folder is pretty big with large files and ISO’s. This could fill up your free Dropbox account quickly.
to create this symlink I did the following.
First I had to move all the files over to the new Dropbox folder. Once this had been done you have to remove your Documents folder.
Now type the following command into your terminal.
ln -s /home/user/Dropbox /home/user/Documents
Now if you navigate to your Documents folder you will see all your synced Dropbox items.
Resources
http://en.wikipedia.org/wiki/Symbolic_link
http://wiki.dropbox.com/



