Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
dcam
9 months agoExplorer | Level 4
How can I use selective sync on Linux?
Guys:
I would like to use the Dropbox CLI to perform “Selective Sync” on a sub-directory, $HOME/Dropbox/level1/level2. The following are my sample commands in Linux:
dropbox exclude add $HOME/Dropbox/*
dropbox exclude remove $HOME/Dropbox/level1/level2
However, the second command does not work. If I change it to “dropbox exclude remove $HOME/Dropbox/level1”, it will work. Looks like the command only works under directory, $HOME/Dropbox, it will not go down to next level of sub-directories. Could you shine some light on this?
Thanks!
Yi
2 Replies
Replies have been turned off for this discussion
- Jay9 months ago
Dropbox Community Moderator
Hi dcam, thanks for bringing this to our attention.
Could you try removing the parent folder first, then adding the unneeded subfolders directly, like in the below commands?
dropbox exclude remove level1 dropbox exclude add level1/unwanted1 dropbox exclude add level1/unwanted2 etcDoes this help to keep the level1/level2 folder visible?
Keep me updated with any progress.
- dcam9 months agoExplorer | Level 4
This trick works! The logic is revered: you need to make all the directories available, then add the unwanted ones to the exclusion list.
Thanks!
Yi
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!