Edward Huang
Edward Huang

Reputation: 53

tar: This does not look like a tar archive

I split a huge folder:

tar cvpf - somedir | split -b 50000m

I then transfered split files to another server and merge it:

cat x* > somedir.tar.gz

but when I tried to extract the file it shows errors:

tar xvf tar xvf somedir.tar.gz tar: This does not look like a tar
archive tar: Skipping to next header tar: Archive contains obsolescent
base-64 headers tar: Error exit delayed from previous errors

How to fix this problem?

Upvotes: 1

Views: 4847

Answers (1)

g13n
g13n

Reputation: 3246

It is not guaranteed that x* will expand to the same order in which the files are split. Assuming the file is split into three chunks then the first chunk would have the tar(1) header so you'll have to assemble them back in the same way.

Use ls(1) with the -t option to concatenate the files in that order. Hope that helps.

Upvotes: 2

Related Questions