LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Large tar file taking huge disk space in ext3 file system (http://www.linuxquestions.org/questions/linux-general-1/large-tar-file-taking-huge-disk-space-in-ext3-file-system-106169/)

pcwulf 10-20-2003 02:58 AM

Large tar file taking huge disk space in ext3 file system
 
Hi,

I am trying to backup some of my data by tarring in to another hard drive (I am in fact compressing them using bzip2 later -- but that's not relevent to this question).

My original directory tree has taken (du -sk <directory>) about 1.9GB. So, I was surprised to see that the tar file has taken 3.3GB.

Command used was find <source directory> |tar -cv <tar file> -T -

Since this is a small part of a Huge backup program, if things behave this way, I am going to be in trouble.

Can somebody help me to figure out what is happening.

Thanks in advance

guygriffiths 10-20-2003 04:38 AM

The only thing I could think of it that you've got a core file somewhere, that hasn't been noticed for whatever reason. Try searching for a file named "core" (find / -name core) they're usually massive (about 1.5GB) and they can safely be deleted.
Otherwise that is very strange.
Guy

stickman 10-20-2003 08:45 AM

Try a much simpler command such as:
tar zcvf /path/to/backup.tgz /directory/to/backup


All times are GMT -5. The time now is 05:47 AM.