
On 08/09/2020 10.29, Bengt Gördén wrote:
On 2020-09-08 10:01, Carlos E. R. wrote:
On 08/09/2020 08.56, Adam Mizerski wrote:
Even better:
dd if=/dev/nvme0n1p2 | tee -a >(md5sum > nvme0n1p2.md5) | pigz > nvme0n1p2.gz
Something like this is what I was thinking of initially but didn't know how to do. :-)
What confuses me is the tee. "tee -a" sends to a file, but your are doing a second redirection. I will have to test this later.
I was looking for something like this a couple years ago and found it on askubuntu. I tend to save all nice commands for later use :)
Here's the original and why it's probably better with /proc/self/fd/2 2 in the long run. For your specific case the shorter one is better.
https://askubuntu.com/questions/385264/dump-md5-and-sha1-checksums-with-a-si...
Nice :-) (I'll look at the link later, I have firefox "off" now, while I run an rsync live backup) Somehow, I find the implementation with named pipes "cute" :-) -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)