cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Learn more about how Connie, a member of the Community, uses Dropbox here!

Dropbox files & folders

Get in sync with the Dropbox Community. Our members can answer all your questions on Dropbox files and folders. Join a discussion or start your own today.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sync only one folder on linux

sync only one folder on linux

Jeff_S1
Explorer | Level 3

I have a huge dropbox business account, and I'd like to sync one "deep" folder on a linux client.  This folder is deep in the folder hierarchy, so for example the folder: "folder 1/folder 2/folder 3" is the ONLY one I want downloaded to the linux client.

 

I tried: dropbox.py exclude add * ; dropbox.py exclude remove 'folder 1/folder 2/folder 3'

and various permutations of that, but I always still end up with:

dropbox.py exclude list
Excluded:
folder 1

 

What's the magical set of commands I need to issue to exclude everything - except one deep folder?

Or, do I need to create local paths for this deep folder on the client first?

4 Replies 4

Re: sync only one folder on linux

Walter
Dropboxer
Hey @Jeff_S1; welcome aboard and thanks for using Dropbox!

Just to make sure we're on the same page, can you please let me know if you're fully synced on this machine by running the status command?

Keep us posted!

Walter
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, please give it a Like below.
:arrows_counterclockwise: Still stuck? Ask me a question!
:pushpin: Tips & Tricks Find new ways to stay in flow or share your tips on how you work smarter with Dropbox.

No, I have not fully synced.  that would take more than 1...

Jeff_S1
Explorer | Level 3

No, I have not fully synced.  that would take more than 10TB of data, of which I only need about 600GB (the one deep folder).  I'm trying to avoid that huge, unneeded sync.  So, this is a new, empty machine, that I've installed dropbox.py and activated - but has not synced.

Re: sync only one folder on linux

Здравко
Super Collaborator | Level 20

Hi @Jeff_S1,

Seems, you are thinking in exactly opposite way instead of what "Selective Sync" implementation assumes to. 🙂 As seems you have noticed (to some extent) that using command (or GUI) folder tend to be excluded, not included, so how exactly you can add a subfolder in a missing (excluded) folder?! 🧐 Try to do the same trick using GUI (not necessary on Linux). Do you able? 🙄 What's the problem? 😉 Using the command prompt is the same! Execute on command line the equivalent things you are doing on GUI. Unchecking particular folder means adding to "exclude list" and checking the same folder means removing from "exclude list". Take in mind that in GUI when you set check mark to a nested folder all containing folders receive check mark too. In console you have to do this by hand! This is NOT done by the control script for you! This could be object of improvements (not to say it's a bug). When adding folders you have to add nested folders from outermost to innermost folder... Or better opposite, instead of exclude all and after that to try add some of them, just exclude folders you don't want to be in sync locally. Nothing special, the same commands (even one less) in right order. 😉

Hope this gives right direction.

Re: sync only one folder on linux

Jeff_S1
Explorer | Level 3

Ahh, OK.  This makes sense.  So, I need to include folder 1.  Then exclude all children of folder 1.  Something like:

 

dropbox.py exclude remove ~/Dropbox/folder 1

dropbox.py exclude add    ~/Dropbox/folder 1/*

dropbox.py exclude remove ~/Dropbox/folder 1/folder 2

dropbox.py exclude add    ~/Dropbox/folder 1/folder 2/*

dropbox.py exclude remove ~/Dropbox/folder 1/folder 2/folder 3

 

I'll give that a try...

Poll
Which Dropbox integrations are you using while working from home?
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?