Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I made some links to files in a folder. When I added that folder to Dropbox, the links contained duplicate copies of the files linked to. Have you had this problem? Do you understand what is happening? Is there a solution?

To make this question clearer: In the "type" column of the file manager, before connecting to Dropbox, Link_to_notes was shown to be a link and the size was 32 bytes. After connecting to Dropbox, Link_to_notes was shown to be a plain text document and the size was 18.7 kB, the size of the notes file.

share|improve this question
With Dropbox being a cross-platform solution, every other behavior would probably be even more confusing - how would it behave if you sync your folder with a Windows machine? – Sergey Jan 6 '13 at 23:11

DropBox follows symbolic links and treats them as directories. It's really useful for backing up without having to move files and directories into your DropBox directory.

$ ln -s ~/Documents/ ~/Dropbox/Documents
share|improve this answer

The best way to do it is to store the files in the dropbox folder and symlink to them from outside...

So create ~/Dropbox/Documents and symlink: ln -s ~/Dropbox/Documents ~/Documents

This stops dropbox getting confused and de-linking anything that is a link inside because you have all the things inside and instead when you want them elsewhere you link to them in dropbox. The basic rule is don't have any symlinks anywhere inside the dropbox folder...have them outside the dropbox folder and you'll have no problem.

I have dropbox on several ubuntu machines and have all my major top level folders actually stored in dropbox.


share|improve this answer

dropbox will follow sym links to directories, but it will break a link (either sym or hard) to a file and replace it with a file.

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – Braiam Mar 7 '14 at 19:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.