[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] tar not compressing?



> I just noticed tarring my log files doesn't seem to make them smaller.
> I just tarred web.log by using the following :
> tar cvfp /home/sites/site4/logs/weblog.tar /home/sites/site4/logs/web.log
> and the resulting listing showed :
> -rw-r--r--    1 root     site4    12748800 Feb 23 18:49 weblog.tar
> -rw-r--r--    1 root     site4    12744014 Feb 23 05:07 web.log
> So the tar is actually a little bit bigger.  What am I doing wrong?

try
tar -czpvf /home/sites/site4/logs/weblog.tar /home/sites/site4/logs/web.log

You might like a better output filename too...

Zeffie
Cobalt RaQ System Administration, Maintenance and Repairs.
http://www.zeffie.com/how_to_contact_zeffie.html 734.454.9117
http://www.zeffie.com/ Home of the Worlds Largest Collection of RaQ rpms
Advanced Cobalt Security, Firewall, Snort, AntiSpam, AntiVirus, etc. GUI's