Showing posts with label gzip. Show all posts
Showing posts with label gzip. Show all posts

Monday, July 6, 2009

Install Legato client on Solaris

Download the package onto the Solaris server.

gunzip nw75sp1_solaris_64.tar.gz
tar -xvf nw75sp1_solaris_64.tar
pkgadd -d .

Select which package you would like to install (most likely LGTOclnt, the Legato client and LGTOman, the Legato manual).

Thursday, March 26, 2009

Tar with date and a twist of chocolate

Here is a way to tar up a set of important directories with the date. You can use this as a log archive, or with Splunk. This uses the highest compression of gzip (-9).

tar cp /myapp/logs /var/log/messages /var/log/httpd/ | gzip -9c > /tmp/oldlogs`date +"%Y%m%d"`.tgz