How to tell dropbox to ignore git files

dropboxgitvim

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)?

Best Answer

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.
Related Question