I have been keeping my vim files in Ubuntu One and since I have a lot of plugins installed as git submodules (or however vundle installs them) and I'm only interested in updating these repositories on my main computer, I had set Ubuntu One to ignore these files using:

ignore = \A.*\.git\Z

in ~/.config/ubuntuone/syncdaemon.conf so it won't have to sync thousands of files. Now I'm trying to move these files to dropbox instead but I couldn't find an equivalent setting in dropbox.

So my question is, how can I tell dropbox to ignore files/folders with certain names (particularly the dot folders)?

migrated from stackoverflow.com Mar 9 '13 at 15:57

This question came from our site for professional and enthusiast programmers.


On Linux Dropbox has a client (dropbox) and a deamon (dropboxd).

The client has the exclude command, which you can use to exclude directories. E.g. to exclude node_modules from Dropbox you can enter dropbox exclude add ./node_modules

dropbox help exclude will print the help information:

dropbox exclude [list]
dropbox exclude add [DIRECTORY] [DIRECTORY] ...
dropbox exclude remove [DIRECTORY] [DIRECTORY] ...

"list" prints a list of directories currently excluded from syncing.
"add" adds one or more directories to the exclusion list, then resynchronizes Dropbox.
"remove" removes one or more directories from the exclusion list, then resynchronizes Dropbox.
With no arguments, executes "list".
Any specified path must be within Dropbox.

Dropbox has a Selective Sync feature that you can look to configure

Couple of tools that I found, that talk about achieving this via config files-

  1. Dropboxfilter
  2. Dropboxignore
  • These certainly look interesting. As far as I understand, (0)selective sync requires me to explicitly disable some folders which would make my job difficult if I want to change my installed plugins. (1)Dropboxfilter says I need an empty dropbox folder which is not feasible for me atm. (2)Dropboxignore looks like a windows program (got only .exe downloads and .sln files in the source) and I'm working in ubuntu. – none Mar 9 '13 at 14:21
  • 2
    Dropboxfilter looks like it's a dead project; I tried it out months back and it just didn't work reliably for me. – Heptite Mar 9 '13 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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