Web Hosting Talk







View Full Version : tar'ing up


clocker1996
12-18-2001, 07:09 PM
Hi

I'm trying to tar up /usr/local/apache/

/usr/local/apache is 1121 MB

I ran: tar -czvf /home/apache.tar.gz /usr/local/apache
and it SEEMS to of finished, but... it stopped with
apache/test/
tar: Error exit delayed from previous errors

How can i find out if it did indeed tar up everything? Or did it stop? /home/apache is 685MB

If tar'ing it up is a bad method of putting it all into one big file, what other methods could i use in this situation? Can anyone help?

bitserve
12-18-2001, 10:18 PM
Originally posted by clocker1996
...and it SEEMS to of finished, but... it stopped with
apache/test/

How does it seem to have finished, and seem to have stopped with apache/test?

Anyway, you can do a "tar -tzf" to list the contents.

tar may fail if you don't use --ignore-zeros, and there are some funky named files, or it will fail if files have names over 256 characters in length.

I can't thin of a better way to do what you're doing, except maybe use cpio, which doesn't have some of those problems.

ffeingol
12-18-2001, 10:40 PM
You might also want to cd into the directory where you created the tar file and do a "df -k .". Check if that file possibly filled that file system.

Just a shot in the dark.

Frank

bobcares
12-19-2001, 06:21 AM
tar -w verifies the archive.
Also try
tar -d to compare the difference between the archive and the files.

Have a great day :)

regards
amar