-
Notifications
You must be signed in to change notification settings - Fork 25
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
Folder exclusion issue #35
Comments
Thank for the question |
You can use multiple -not
notfiles is a vector, not a string
|
Hello, Thanks, your configuration works fine but what if I have a lot user profiles in my folder C:\Documents?. I would need to specify a lot of exclusions in the command prompt using multiple -not statements. |
Write exaclty what kind of exclusions you want and I will implement |
Hello, Thanks again for your support. I guess it would be interesting to implement the -maxdepth option provided by the UNIX\Linux command find :
|
After studying the situation, I'm not very supportive The recursive function used (ispath ()) is used in many places in the source, in particular it is used to add (i.e. choose the files to compress) Changing it would mean exposing yourself to possible very serious side effects (= does not copy all the data you want). A different function would have to be done, specifically for -not, but the source is already becoming a true example of lasagna code (aka spaghetti 2.0) At the moment I don't think I can satisfy you Maybe after finishing the zpaqfranz-over-TCP part I'll think about it again |
Can you write here a regex for what you need with
In this case it can be doable (with a small-scale regex matcher) |
Hello, No worries if the limitation of the recursive search would not work. The regex expression :
Is the syntax above correct for you? Only the Archive folders in the 3rd recursion level should be excluded. |
If is much harder, because a "full" regex (with groups) requires a LOT of code, just for expression parsing Otherwise it would essentially become a hardwired specific feature for your situation => do not think to implement anytime soon, I am currently working on this topic (even harder) zpaqfranz-over-ssh |
Hello,
Is it possible to restrict the recursion depth of the -not option while creating archives with zpaqfranz?
Let's consider this batch file creating a simple folder hierarchy, sample.bat :
Creating the backup :
zpaqfranz.exe a backup c:\Documents -not C:\Documents\ * \ * \Archive
In this example, my expectation was to exclude only the folders below :
zpaqfranz is also excluding those folders :
zpaqfranz is excluding all the folders named Archive. I am also experiencing the same problem with Matt Mahoney's zpaq archiver.
I guess I didn't construct properly the parameters to exclude only the necessary folders :
zpaqfranz.exe a backup c:\Documents -not C:\Documents\ * \ * \Archive
Kindly, could you please point me the right direction? Thanks.
sample.txt
The text was updated successfully, but these errors were encountered: