Page 1 of 2

ZIPFROMLIST: suggestion for a new parameter

Posted: 2022-08-23, 06:33 UTC
by funkymonk
Hi

ZIPFROMLIST already supports the parameter -o for "overwrite without asking".
For incremental backups it would be great to also have a parameter for "overwrite if source is newer" and other kinds of overwrite options.

How about -o (always overwrite) -on (never overwrite) -oo (overwrite if older) -ol (overwrite if larger) etc. ?
Or is there any other way to achieve the same effect?

(BTW: A parameter to skip the CRC check would also be nice...)

BR
funkymonk

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2022-08-23, 07:58 UTC
by ghisler(Author)
I will consider it, thanks for your suggestion.

You can turn off CRC check only globally:
wincmd.ini
[packer]
VerifyZIP=0

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2022-08-23, 12:07 UTC
by funkymonk
Thank you for considering.

True, VerifyZIP=0 would be an option. However, a temporary deactivation for ZIPFROMLIST would be great.

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2022-10-05, 09:55 UTC
by funkymonk
bump "parameter for overwrite if source is newer, etc." for 10.52
That would be so helpful for incremental backups...

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2022-10-05, 12:30 UTC
by Fla$her
That's what's really missing here (from 7-zip help):
fb={NumFastBytes}
Sets the number of fast bytes for the Deflate/Deflate64 encoder. It can be in the range from 3 to 258 (257 for Deflate64). Usually, a big number gives a little bit better compression ratio and a slower compression process. A large fast bytes parameter can significantly increase the compression ratio for files which contain long identical sequences of bytes.

mt=[off | on | {N}]
Sets multithread mode. If you have a multiprocessor or multicore system, you can get a speed increase with this switch. This option affects only compression (with any method) and decompression of BZip2 streams. Each thread in the multithread mode uses 32 MB of RAM for buffering. If you specify {N}, 7-Zip tries to use N threads.

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-05-25, 05:26 UTC
by funkymonk
bump for TC 11.00

A ZIPFROMLIST parameter to "overwrite if source is newer" would still be so helpful for incremental backups...

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-05-25, 09:36 UTC
by ghisler(Author)
ZIPFROMLIST does not support the 7zip format. Just call 7z.exe directly from a button.

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-05-25, 10:14 UTC
by funkymonk
ghisler(Author) wrote: 2023-05-25, 09:36 UTC ZIPFROMLIST does not support the 7zip format. Just call 7z.exe directly from a button.
??? Confusion ???

The suggestion is not about 7zip at all!

It's just about adding a new parameter to ZIPFROMLIST to "overwrite if source is newer"...
(zip is perfectly fine.)

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-05-26, 08:31 UTC
by ghisler(Author)
You wrote "(from 7-zip help)". These parameters are for 7-zip.

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-05-26, 15:23 UTC
by funkymonk
ghisler(Author) wrote: 2023-05-26, 08:31 UTC You wrote "(from 7-zip help)". These parameters are for 7-zip.
That was *Fla$her. I never wrote about 7-zip.

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-06-28, 11:21 UTC
by funkymonk
Is there any news on the suggestion to add an "overwrite if source is newer" parameter to ZIPFROMLIST?

Bump for next TC11 beta...

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-06-28, 14:25 UTC
by ghisler(Author)
OK, I will add two new parameters:
-os Skip all
-on Overwrite all older

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-06-28, 14:30 UTC
by funkymonk
Great! Thank you. This helps a lot!

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-06-28, 19:52 UTC
by funkymonk
TC11.00b9 x32

I have tested some of my typical actions with the update

Code: Select all

28.06.23 Added: ZIPFROMLIST now supports overwrite flags: -os=skip all, -on=pack all newer (32/64)
and it works as expected. This is very helpful.

@ghisler: Thank you for adding the new parameters!

Re: ZIPFROMLIST: suggestion for a new parameter

Posted: 2023-06-29, 09:09 UTC
by ghisler(Author)
Thanks for suggesting it! I was considering using -o1..-o9, but this would collide with -0..-9 for the compression when used together in one parameter.