Giter Site home page Giter Site logo

A way to exclude certain files? about zpaqfranz HOT 8 CLOSED

pdr76 avatar pdr76 commented on June 12, 2024
A way to exclude certain files?

from zpaqfranz.

Comments (8)

fcorbelli avatar fcorbelli commented on June 12, 2024 1

A long explanation would be necessary, so I made it short: " for all

😭

from zpaqfranz.

fcorbelli avatar fcorbelli commented on June 12, 2024

Please use " (in particular on linux) and * as wildcard
Multiple -not can be used

from zpaqfranz.

pdr76 avatar pdr76 commented on June 12, 2024

Before I had used:
-not *.7z
and it kept adding the 7z file, but using the " worked perfectly, I think you should document it in the help, including clarifying the use of quotes.

from zpaqfranz.

fcorbelli avatar fcorbelli commented on June 12, 2024

*NIX AND DOUBLE QUOTES
Please, on non-Windows systems, DO NOT FORGET THE DOUBLE QUOTES,
especially with multipart files.
"test_????.zpaq" is good
test_????.zpaq is BAD

I'll try to write even more clearly 😄

from zpaqfranz.

fcorbelli avatar fcorbelli commented on June 12, 2024

What do you think about this disclaimer?
Any suggestions?
Too long?

A key note is the use of double quotes, especially on *nix systems,
and even more so when using wildcard characters such as * and ?

Translation

When command-line strings are entered, there are differences between 
Windows and *nix.

On the latter, the "explosion" of wildcards normally takes place 
BEFORE programs are started.

This happens because the relevant shells (bash, etc.) process parameters 
and pass them to the program (zpaqfranz in this case) already expanded.  
Enclosing characters in double quotes preserves the literal value of all 
characters within the quotes, with the exception of $, `, \

Actually, the situation is much more complex, but I don't want to go  
into too much detail.

In Windows, however, the parameters are passed to the program as they are.

Therefore, sometimes, you write on *nix as you would on Windows, 
getting different results or even wrong one.

A few examples I hope will better clarify the fundamental importance of 
appropriately using the " on *nix

"test_????.zpaq" is good
test_????.zpaq   is BAD

"*francia*"      is good
*francia*        is BAD

This is OK on Windows, but not on Linux
zpaqfranz a z:\test_??? * -only *.cpp

You have to write something like that
zpaqfranz a "/tmp/test_???" /whatever -only "*.cpp"

This is good
zfsadd /tmp/kong.zpaq "tank/d@2021" "--60d"

There is a bit of heuristics inside zpaqfranz to make some commands  
run on *nix with the same logic as on Windows but It is partial,  
precisely because the   parameters arrive "pre-digested" on *nix.

Short version: Luke, in addition to using the Force, uses double quotes!

from zpaqfranz.

fcorbelli avatar fcorbelli commented on June 12, 2024

Now, after each help, there is a disclaimer

root@aserver:/tmp/kazzo # zpaqfranz h f
zpaqfranz v58.10i-JIT-L,HW SHA1/2,(2023-09-14)
CMD   f (fill, or wipe)
+ :               Fill (wipe) 99% of free disk space in 500MB chunks
                  Check if disk-controller-system-RAM-cache-cables are working fine
+ : -verbose      Show write speed (useful to check speed consistency)
+ : -force        Do NOT delete (after run) the temporary filename. By default free
+ : -zero         Zero-fill instead of random. Use to prepare a thin VMDK shrink
+ : -verify       For -zero: do a verify.
    Examples:
Fill (wipe) almost all free space:   f z:\
Fill (wipe) keep temp files:         f z:\ -force -verbose
Zero free space (VM shrink):         f z:\ -zero
Zero free space (WITH verify):       f z:\ -zero -verify
--------------------------------------------------------------------------------------
************ REMEMBER TO USE DOUBLE QUOTES! ************
*** -not *.cpp    is bad,    -not "*.cpp"    is good ***
*** test_???.zpaq is bad,    "test_???.zpaq" is good ***

from zpaqfranz.

pdr76 avatar pdr76 commented on June 12, 2024

*NIX AND DOUBLE QUOTES Please, on non-Windows systems, DO NOT FORGET THE DOUBLE QUOTES, especially with multipart files. "test_????.zpaq" is good test_????.zpaq is BAD

I'll try to write even more clearly 😄

I use Windows, I also needed to use "

from zpaqfranz.

fcorbelli avatar fcorbelli commented on June 12, 2024

Can you please take a look here?

https://github.com/fcorbelli/zpaqfranz/wiki

Do you have any suggestions?

Thank you

from zpaqfranz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.