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.