0

[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.

Andrew Fashion
  • 1,655
  • 7
  • 22
  • 26

1 Answers1

3

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.

larsks
  • 43,623
  • 14
  • 121
  • 180