I used the following command to compress a drive mounted to a folder. based on How to use multi-threading for creating and extracting tar.xz
tar -c -I 'xz -9 -T0' -f archive.tar.xz /var/lib/docker
but when I try to extract it I get this:
tar -xvf archive.tar.xz
tar: This does not look like a tar archive
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Ubuntu 20.04.4 LTS tar (GNU tar) 1.30
file archive.tar.xz
report? How did you move the archive from the 18.04 system to the 20.04 system? – steeldriver May 26 '22 at 11:59file archive.tar.xz
output? – Kusalananda May 26 '22 at 14:38