I have a tar file that I have recreated from two files - xaa, xab (the results of using the split command). The tar file is the size I expect it to be but when I extract it the folder I get is a fraction of the size of the tar file. See the terminal output below for the sequence of my commands. Unfortunately I don't have the orignal tar file or folder - so this is my only chance to recover this data. When I open the archive in the 'File Roller' I see the same folders as I do on the command line after extraction and these are only a subset of the files I'd expect to see. Can anyone suggest why this might be?
~> cat xa* > archive
~> file archive
archive: POSIX tar archive (GNU)
~> ls -la archive
-rw-r--r-- 1 hugo users 24471439360 Jun 1 18:50 archive
~> tar xf archive
~> cd repos
~/repos> du --max-depth 0 -h
83M .
~/repos> cd ../
~> tar cf newarchive repos
~> ls -la newarchive
-rw-r--r-- 1 hugo users 53288960 Jun 1 19:57 newarchive
tar tvvf archive | awk '{s+=$3}; END{print s}'
? Are you sure everything is inrepos
. No dot file or dot dir like.git
or.svn
?tar tvvf archive | less
to see where the space is. – Stéphane Chazelas Jun 01 '13 at 20:12~> tar tvvf archive | awk '{s+=$3}; END{print s}' 29084601
– user1753106 Jun 02 '13 at 13:10