How to make Dropbox “ignore” specific folders in the sync

dropbox

I tried using Dropbox to sync my computer's code files, however it syncs everything. I want to be able to configure Dropbox not to sync folders with specific names like ".git" and/or "target" as target folders get generated automatically and gets huge as the development goes.

Is there a way to configure Dropbox to ignore some folders (auto generated or not)?

Best Answer

Starting early 2020 you can actually exclude files and directories from sync.

Under Linux the command is:

attr -s com.dropbox.ignored -V 1 /path/to/somewhere

Under macOS the command is about same:

xattr -w com.dropbox.ignored 1 /path/to/somewhere

For the command under Windows see another answer, or:

Set-Content -Path C:\Users\yourname\Dropbox\Example -Stream com.dropbox.ignored -Value 1
Related Question