cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

default

yes

2,111 Views
7 Comments
2 Likes
Highlighted
Level 1

I cannot get selective sync to stop syncing folders that have spaces in the names using the linux command line tool

When I try to add a folder named something like "test folder" to the exclude list, it instead adds test and folder to the exclude list. I have tried
dropbox exclude add 'test folder'
dropbox exclude add test\ folder
dropbox exclude add "test folder"
and each one has done the same thing. Does anyone know how to get this to work?

1 Accepted best answer

Accepted Solutions
Level 5

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linu

You can get into the directory that has spaces in it's name and then execute the command bellow:

dropbox exclude .

Reply
Loading...
7 Replies
Community Manager
Community Manager

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linux command line tool

Hi there

Sorry for the late response - are you still having issues?




Ed G
Community Manager @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so please mark it for some Kudos below. 
White check mark Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.
Arrows Counter Clock Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Reply
Loading...
Level 6

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linux command line tool

Same issue here!

Have tried:
dropbox exclude add ~/Dropbox/Folder\ Name
dropbox exclude add ~/Dropbox/'Folder Name'

Exclusion works perfectly with any other folders. It all takes quite awhile to process though (I'm talking hours), so it takes some time before I can try a different combination.

Is it possible at all - or am I running down a windy garden path?

Reply
Loading...
Level 1

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linux command line tool

I was also suffering from this problem with version 2015.10.28 of dropbox but it turned out to be an error on my part.  I have two dropbox accounts (one personal and one for work).  In order to support both of them I wrote a bash script that wraps /usr/bin/dropbox and sets HOME to an account-specific value (i.e. not /home/john).  My problem was that my wrapper script was splitting up arguments with spaces and handing them to the real dropbox program as individual arguments.  In case it helps here is an excerpt from my wrapper script after I got everything working:

dropboxHome="$(findDropboxHome $(pwd))"
exec env HOME=$dropboxHome /usr/bin/dropbox "$@"

The key is the quotes around the $@.  

Reply
Loading...
Level 1

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linux command line tool

I ran into this exact problem today.

I tried searching for a config file, that I could just edit by hand, but I found none.

Please make it possible to exclude paths with spaces.

Reply
Loading...
Level 5

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linu

You can get into the directory that has spaces in it's name and then execute the command bellow:

dropbox exclude .

Reply
Loading...
Level 2

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linu

Hi,

Put the full path in quotes.

For example:

 

dropbox exclude add "/your/path/to/Dropbox/test folder"

 

Reply
Loading...
Level 2

Re: I cannot get selective sync to stop syncing folders that have spaces in the names using the linu

To be fully clear, this should actually be

dropbox exclude add .
Reply
Loading...
Space

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about Space.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post