LINUX.ORG.RU

Создать и сжать образ раздела (dd + zstd)

 ,


0

2

Создавал образ раздела и сжимал его «на лету» такой командой:

dd if=/dev/INPUT/DEVICE-NAME-HERE conv=sync,noerror bs=64K | gzip -c > /path/to/my-disk.image.gz

Но вместо gzip хотелось бы использовать алгоритм zstd. Я люблю его за сочетание скорости и качества сжатия. Но zstd я не могу так же применить. Не знаю, как заставить zstd читать данные, приходящие из dd.

Есть решения?

Есть решения?

zstd compresses or decompresses each file according to the selected operation mode. If no files are given or file is -, zstd reads from standard input and writes the processed data to standard output. zstd will refuse to write compressed data to standard output if it is a terminal : it will display an error message and skip the file. Similarly, zstd will refuse to read compressed data from standard input if it is a terminal.

Источник: man zstd

QsUPt7S
()