Your workflow is unique šØāš» - tell us how you use Dropbox here.
Tom_M
11 years agoHelpful | Level 6
Status:
Delivered
Add .dropboxignore directory to exclude folders without using selective sync
Please please please can you add a feature that allows folders to be excluded from the Dropbox account (on windows and mac). For sure I'm not the first person to request this, but I'm yet to find a good explanation of why it's not there. A quick google search reveals loads of people also looking for the same feature. I really like the workflow I have with dropbox, but it's getting to the point where I might switch providers in order to allow better selective sync.
I've seen hackish solutions using selective sync, but it would be great if this could be done in one of the following ways:
- global pattern matching eg "node_modules"
- a marker file in the directory like .dropboxignore
- a simple right click context menu "Ignore this folder"
Other than that, keep up the good work. Cheers.
Tom
Idea Status Update
We're launching a closed beta for Ignore Files feature, and weād love your help testing it out.
1,036 Comments
- cyenx1 year agoExplorer | Level 4
Is there any official news about this feature? This is really a very important feature. I hope the official can pay attention to it.
- Justin from Just Front-end1 year agoExplorer | Level 3
Let it go. The ship has sailed.
Comparing Dropbox to GitHub is apples and oranges. Thereās similarities, but thereās inherent differences. Whether or not Dropbox could have built something to solve this syncing dilemma, who knows. As others have said, itās not that the hacks donāt work, in controlled environments, itās that they always have tradeoffs. They never fully solve the problem, not in a way thatās truly usable.
And itās ok. Well, itās not really, but itās ok to let it go. Until itās solved by Dropbox itself, which I kinda feel isnāt necessary even a Dropbox issue, itās a lost cause.
Seeing this thread has now reached 100 pages, I thought Iād login to commemorate where we started, where weāve been, where we are, and all the progress we hadnāt made.
Keep fighting the good fight. Or donāt.
- WreckItTim11 year agoHelpful | Level 7
It wouldn't be copy and paste a .ignore file because the .ignore file will autosync to Dropbox in the same way that GitHub does. The issue is the order of operations which have to be done when setting up any new device: (1) sync with current state of your dropbox, (2) turn off sync, (3) make new folder that will be ignored, (4) issue command to ignore that folder, (5) turn on sync. By natively supporting a .ignore file, dropbox would mitigate the need for steps 2-5. Those steps currently require either manual input or running an external script, that is much more prone to user error.
- projectdeliverypartners1 year agoHelpful | Level 5
how do you know 'The folders will still natively sync with the Dropbox backend'? when you execute that command I'm seeing no trace of it anywhere including a watcher I've got going at the same time. It's using powershell and mac/linux native commands that are used for many things other than DB, so I'm not sure DB have much control over it as its not a command made by them they're just leveraging on it. at the end of the day, right click, don't sync, it's done and it'll be immediately replicated all on that account/shared in.
Having said that im not adverse to a full blown dropbox made solution necessarily but be careful what you wish for because there's no guarantee it'll be better or easier than this one and from past experience, it rarely is. Moving and copying an .ignore file around the place feels prone to lots of mistakes as you say. anyway, all good. working excellent for what i need. I have this going off when i open a particular app so it 'checks out' that project and returns it to dropbox on exit.
- WreckItTim11 year agoHelpful | Level 7
It's a nice hack, but doesn't quite accomplish the same features that would be available if Dropbox created an .ignore file. The folders will still natively sync with the Dropbox backend, which can cause item conflicts if any custom ignore script isn't executed in proper order. And let's be honest here, people are going to make mistakes. If Dropbox makes this an .ignore file natively then it will avoid item conflicts.
- projectdeliverypartners1 year agoHelpful | Level 5
I've ran several tests on mac and PC:
- Selecting 'don't sync' via right click menu - confirmed. folder will remain on the machine executing the command and will dissapear from all others including the web app.
- Selecting the opposite via right click (sync to dropbox) menu - confirmed. The folder will reappear on the other computers and the web app.
So the feature definitely isn't per machine in terms of sharing but can be run by anyone (which could be kind of dangerous i suppose).
Given its a very basic line of code in pwsh (PC) and terminal (Mac/Linux) there are a myriad of ways to trigger it as the OP mentioned would like. I have got the following to work:
- Executing commands via context menu (depending on your system, you may not have the command 'dont sync to dropbox' inside the dropbox context menu).
- Executing via system scheduler periodically and;
- triggered upon launch of an app;
- triggered by launch of an app AND presence of Folder.ignore file;
- triggered by running shortcut of Folder.ignore
- Setting Folder.ignore as environment variable DROPBOX_IGNORE_PATHS which could be shared with a team and provides a master list of all the folders currently in this state. could live on a server etc.
- there are so many ways to trigger it on the Mac i won't waste anyones time writing it all down.
- I
- projectdeliverypartners1 year agoHelpful | Level 5
ah sorry I didn't realise we were talking about remote connections. the OP wrote:
but it would be great if this could be done in one of the following ways:
- global pattern matching eg "node_modules"
- a marker file in the directory like .dropboxignore
- a simple right click context menu "Ignore this folder"To me, thats exactly what 'don't sync to dropbox' does.
To be clear then, are you saying that if I were to set a folder as 'don't sync to dropbox' and then on another computer create a new file inside that very same folder and hit save etc it actually will sync/upload to the DB because that command is per machine?
- WreckItTim11 year agoHelpful | Level 7
@projectdeliverypartners Dude youāre not using this at the level we are discussing. Itās not just handling one folder and youāre done. Itās accessing sync operations across several devices, through remote operations. As is, without an ignore file and just with using the ignore command, you have to manage each folder for each device separately.
The OP mixed up selective sync with ignore 10 years ago, and for some reason the admins keep merging this with other threads that more lucidly state the problem. Itās about ignoring a local folder across several devices, as they are being setup. Thatās the whole point of a an .ignore file. Again, think about GitHub and why it has one.
- projectdeliverypartners1 year agoHelpful | Level 5
nicc777 the files donāt have to exist as it allows the use of wildcards so you could do all files of a type or partial name match if you knew what they would be or an enclosing folder āfoldernme/*ā. You would at a minimum have to know where the files are about to be created in the case where they are yet to be created.
- projectdeliverypartners1 year agoHelpful | Level 5
Iām not sure what could be more convenient and appropriate within this context as right click, donāt sync to Dropbox. It is not selective sync at all, selective sync lets you only download certain folders you specify and the rest are āhiddenā in the sense that they only are visible to you on the web/through a browser. Thatās not what this command does. It removes that folder and anything in it from your Dropbox period. After you run it, go on line and have a look, that folder will be gone yet on your local computer it will be there, still contained within your Dropbox/ā¦. Folder but it will not be syncing or uploading until you tell it to be running the oppose command.
Related Content
- 6 years ago
- 6 years ago
- 3 years ago
- 5 years ago
- 5 years ago