Disk backup
Dump the entire disk and compress
Compress with highest possible compression rate (-z9e) and highest possible thread number (T4). If not sure how many threads are available use T0
# dd if=/dev/nvme0n1 status=progress | xz -z9eT4 > /mnt/target/20250321_nvme0n1.xz xz: Reduced the number of threads from 8 to 3 to not exceed the memory usage limit of 3831 MiB 3733861376 bytes (3.7 GB, 3.5 GiB) copied, 524 s, 7.1 MB/s
Restore the entire disk
# xz -dc /mnt/source/20250321_nvme0n1_hp_840G6.xz | dd of=/dev/nvme0n1 status=progress