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