-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an "exclude" option for the b2 sync command #150
Comments
Good idea. Do you want the excluded things to be wildcards? Regexp or glob? Match the entire path, or just the file name? I assume that if a folder is excluded, everything under it should be excluded, too. |
For the case that I care about personally, I want to be able to match just the file name rather than the whole path, but I could see the latter also being useful in some situations. I'd like to be able to do something like Wildcards would also be great, I think either glob or regex would work well. And yep, it'd also skip the contents of excluded folders. Thanks! |
I decided to take a crack at implementing this myself. Given the way that the sync feature builds its file list, matching against the full path ended up being the most practical and least intrusive approach. I also decided on using a regex for the match. |
I would also like to see rsync-style exclusion and inclusion, i.e. from the rsync help:
Just my thoughts. |
Just wanted to say -- I think you should try and implement the same exclude patterns as rsync; they've become reasonably well-understood by many people, and supported by third-party apps. |
@TJC @sund @segphault do you still need this? |
I would like to see this option. |
@simongreen-net okay. Would you like to implement it? We encourage outside contributors to perform changes on our codebase. Many such changes have been merged already. In order to make it easier to contribute, core developers of this project:
this particular change is rather easy to implement. |
Sorry, my Python skills aren't at a level where I would be able to write a patch. |
I would also like this. But, like, @simongreen-net my python-fu depends on google more than it should. |
ok, I have somebody working on this. Assigning myself as a placeholder. |
This is a part of Backblaze#150
@ppolewicz -- Yes, I'd still like to see this feature.. but my Python skills aren't really up there, sorry. |
Just my two cents... I think that instead of (or inaddition to) having a regex-based ignore function it'd be way more helpful to enable a sort of "ignore" file with a list of all the excluded sync directories, much like the way that the .gitignore file works. |
@therecluse26 agreed. I'm personally very fond of the --filter=[file] option in rsync; I can have a nice include/exclude ruleset so that I can sync just what I need. |
Any updates on this? |
#244 has been merged as for |
It'd be really useful to be able to exclude paths that match a certain pattern from synchronization. For example, if I'm synchronizing a bunch of node.js projects, I might want to have b2 sync ignore all the node_modules folders.
The text was updated successfully, but these errors were encountered: