Thread: GunZip process
View Single Post
  #2 (permalink)  
Old 2007-02-22
godspeedcapri godspeedcapri is offline
Member
 
Join Date: 2006-10-16
Location: Brisbane, Australia
Posts: 92
Rep Power: 3
godspeedcapri has an average reputation (10+)
Default Re: GunZip process

Quote:
Originally Posted by Joe T View Post
What is the process of zipping files to compress them? My /var is at 82% so I am a little uncomfortable.

I have my logs switch on a daily basis. My /var/opt/CPfw1-R55p/log directory is very large. I would like to compress it and move the files somewhere off the box.

Is there a command for zipping log files a month at a time? I would like to zip them in directories for the month of generation.

Thanks, Joe
Archiving process:

Compress:
gzip archive.tar

Decompress:
gunzip archive.tar.gz

tar c dir/ | bzip2 > dir.tar.bz2

Run a cron job which takes all the log files for that month and archives them to create a gzip file with date and time stamp as the name.
__________________
Cheers,
GodSpeedCapri
Reply With Quote