Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

[root@centosvm01 /]# tar -cvfz --exclude=/storage/thumbs/ /storage/storage.tar /storage/ tar: z: Wrote only 6144 of 10240 bytes tar: Error is not recoverable: exiting now

it's 155GB of just images. I know there is 700GB free on the drive /storage /storage is a mounted drive.

share|improve this question
    
Recommend you drop the 'z' switch from your tar command. gzip compression doesn't really do much for images. –  Steven Monday Dec 3 '10 at 19:02
    
Also, is your /storage filesystem capable of handling very large (multi-gigabyte) files? Your tar command will try to create such a file. –  Steven Monday Dec 3 '10 at 19:05
    
He's not creating the file in /storage (see answer below). –  larsks Dec 3 '10 at 19:08
2  
Are you still messing around with this? look at the original question and see my response, notice the big number next to it - that's because you'd be done by now if you'd tried. –  Chopper3 Dec 3 '10 at 19:17
    
i don't see your response. I got it now thank you though! –  Andrew Fashion Dec 3 '10 at 19:32

1 Answer 1

up vote 2 down vote accepted

You have a problem with your command line. Look at the error message:

tar: z: Wrote only 6144 of 10240 bytes tar: Error is not recoverable: exiting now

Tar is trying to create a file called "z" in your current directory (and is presumably running out of space, which is what this error usually means). This is happening because the -f option takes an argument, so your command line is, effectively, this:

tar -cv -f z --exclude=/storage/thumbs/ /storage/storage.tar /storage/

When what you mean is:

tar -cvz -f /storage/storage.tar --exclude=/storage/thumbs /storage/

And of course, as Steve said in his comment, you don't really need -z with images, anyway, since they're typically already compressed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.