I am running into the below issue.
I have two folders: AD-VM and Jump-VM
In each of these folders, the contents are:
-rw-------. 1 root root 20G Jun 28 18:27 AD-VM-flat.vmdk
-rw-------. 1 root root 8.5K Jun 27 16:07 AD-VM.nvram
-rw-------. 1 root root 543 Jun 27 16:07 AD-VM.vmdk
-rw-r--r--. 1 root root 0 Jun 27 16:07 AD-VM.vmsd
-rwxr-xr-x. 1 root root 2.6K Jun 27 16:07 AD-VM.vmtx
-rw-------. 1 root root 20G Jun 27 16:16 Jump-VM-flat.vmdk
-rw-------. 1 root root 8.5K Jun 27 16:16 Jump-VM.nvram
-rw-------. 1 root root 545 Jun 27 16:16 Jump-VM.vmdk
-rw-r--r--. 1 root root 0 Jun 27 16:16 Jump-VM.vmsd
-rwxr-xr-x. 1 root root 2.7K Jun 27 16:16 Jump-VM.vmtx
I am trying to compress each into a tar gunzip archive. I used:
tar -xzf AD.tar.gz AD-VM/*
tar -xzf Jump.tar.gz Jump-VM/*
After compression, I decompress on target and I only get the flat.vmdk
The other files are not available.
So I tried,
tar -xf AD.tar AD-VM
It archived the folder and I was able to see all the files. Then
gzip AD.tar.gz AD.tar
Again, it only ends up with the flat file.
Basically, my vmtx and other files are not available post decompression.
tar
. I see 20GB file in your directories. Better tryzip
tar
archives that (when compressed withbzip2
) are larger than 500 GB. A 20 GB file is not an issue fortar
.tar
version 1.12.64 or later will support files inside the archive of sizes up to 68 GB. Reference: answers.google.com/answers/threadview?id=25116