Skip to content

Instantly share code, notes, and snippets.

@AdsonCicilioti
Last active September 4, 2015 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdsonCicilioti/05b0fa1066bca689fb50 to your computer and use it in GitHub Desktop.
Save AdsonCicilioti/05b0fa1066bca689fb50 to your computer and use it in GitHub Desktop.
Dropbox Ignore

Bash command for ignore casual development folders

A simple line code that makes adding folders to the exclusion of Dropbox sync.

find `pwd` -type d -regex ".*\(node_modules\|temp\|tmp\|bower_components\|cache\)$" -prune -exec dropbox-cli exclude add {} \;

Enable Dropbox command line

With Dropbox Python Script

After your Dropbox properly installed, configure your dropbox.py file to enable dropbox-cli command line.

See how to.

In Ubuntu (easy way)

In Ubuntu, instead of using the dropbox.py, you can install the nautilus-dropbox metapackage.

sudo apt-get install nautilus-dropbox -y

This enable the ´dropbox´ command, and ours ignore script looks like this:

find `pwd` -type d -regex ".*\(node_modules\|temp\|tmp\|bower_components\|cache\)$" -prune -exec dropbox exclude add {} \;

Thanks for Vincent Voyer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment