0

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

  • I was on Ubuntu 18.04.4 LTS when I compressed it – user1704 May 26 '22 at 11:54
  • What does 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:59
  • I can't manage to recreate the issue that you are seeing (following the steps that you mention). As steeldriver asks, what does file archive.tar.xz output? – Kusalananda May 26 '22 at 14:38
  • i did not move it. just backup, using tar, the docker drive that was mounted to folder /var/lib/docker If I copy the file to my windows system and do a test it passes. how do I check wat it reports? – user1704 May 27 '22 at 12:38
  • when i use file archive.tar.xz it say "dockerbackup22052022.tar.xz: empty" – user1704 May 27 '22 at 13:07
  • dump the file is empty! oboy. I will copy back the downloaded file and see if it then extracts. – user1704 May 27 '22 at 13:18

0 Answers0