-
Notifications
You must be signed in to change notification settings - Fork 27
Diff against 7.15 new commands
New command s (size) Return cumulative size of N directory, and an estimate of the free space on its filesystem. Everything containing .zfs in filename will be ignored, as :$DATA (Windows's ACL) It is used for a quick check of synchronized folders: there is no easy way, in UNIX / Linux, to immediately know how big a folder with subfolders is. Similarly it is not easy, on UNIX / Linux, to have an idea at least indicative of the free space on devices. -all N concurrent threads will be created, each scan a slave dir. It is used to operate in parallel on different devices, minimizing the scan time (example: slaves on different NAS).
New command sha1 (hashes) Calculate SHA1 (or other hashes/checksums) of files/directories, candidate duplicates, and cumulative GLOBAL SHA256 (hash of hashes). If two directories have the same GLOBAL hash they are == -xxhash very fast hash algorithm (XXH3) -crc32 very fast checksum -crc32c very fast hardware-accelerated CRC-32c -sha256 slow but very reliable In future maybe even a combo myhash and Whirlpool. -all make N thread (do not use with spinning HDDs, but SSDs and NVMes) to calculate very fast (on my PC up to 23GB/s) -kill show the files to be deleted to manually deduplicate (yes, it is used by redirection to a script) -checksum get a 1-level checksum, useful for comparing hierarchically organized folders. -summary show only GLOBAL (fast manual compare of directories) -forcezfs force .zfs path (DEFAULT: skip)
New command dir (dir)
If there's one thing I hate about UNIX and Linux in general
it's the ls command, because it do not show the cumulative filesize (!)
as the Windows' dir.
How big is folder c:\z, with subdirs?
zpaqfranz dir c:\z /s -n 1
zpaqfranz dir c:\z /s |tail -2
This is a kind of mini clone, to be used with a shell alias for convenience.
Main switch are /s, /os, /on, /a, -n X like tail -n
What is the largest file in the c:\z directory
(recursively)?
zpaqfranz dir c:\z /s /os
10 biggest file in c:\z?
zpaqfranz dir c:\z /s /os -n 10
Can also find duplicate files (-crc32 or -crc32c)
just about like rar a -oi3:1 -r dummy s:
100 biggest duplicate files in c:\z?
zpaqfranz dir c:\z /s -crc32 -n 100
New command i (info) Show the versions of a ZPAQ, just like (for zpaqfranz) l -all -comment with size (and comments, if any) zpaqfranz i z:\1.zpaq
New command utf (deal with strange filenames) Check (or sanitize) paths with non-latin chars and/or
260 length -dirlength X (set the 'fix') -filelength Y -utf (sanitize filename) -fix255 (sanitize file length and filecase) -fixeml (sanitize .eml filenames) -kill (do the fix=> convert to latin)
New command f (fill, or wipe) Fill (wipe) almost all disk space and check that data is well written, in chunks of 500MB (pseudorandum), onto the new ztempdir folder Two use: wipe (clear) the space with uncompressible data, check if disk-controller-system-RAM is working fine -verbose show write speed (useful to check speed consistency) -kill delete (after run) the temporary filename
New command k (kill, risky!) kill (delete) all files and directories that arent in archive. remove the excess files example: zpaqfranz a z:\1.zpaq c:\z zpaqfranz x z:\1.zpaq c:\z -to z:\knb ... something happens in z:\knb and we want to turn back to archive ... ... WITHOUT delete everything and extract again ... zpaqfranz x z:\1.zpaq c:\z -to z:\knb -force zpaqfranz k z:\1.zpaq c:\z -to z:\knb
New command r (robocopy) r d0 d1 d2... Mirror d0 in d1,d2... just like robocopy /mir -kill wet run (default: dry-run -all run one thread for folder -verify after copy quick check if OK -checksum heavy (hash) check -xxhash...
New command d (deduplicate) d d0 Deduplicate folder d0 WITHOUT ASKING! -force Wet run (default: dry-run) -sha256 use sha256 instead of XXH3 for detection -verbose Show duplicated files