Showing posts with label tar. Show all posts
Showing posts with label tar. Show all posts

Monday, July 6, 2009

Install Legato client on HP-UX 11

Download the archive onto the HP-UX server.

tar -xvf nw75sp1_hpux11_ia64.tar.gz
swinstall -s /hpux11_ia64/NetWorker.pkg

Follow the directions from the install screen.

Then, to start the program, run the startup script of /sbin/init.d/networker or /opt/networker/bin/nsrexecd

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).

Wednesday, April 1, 2009

zipidey-do daw, zipidey-de day, what a wonderful day!

The zip command will create a zip file that can be used across disparate platforms, including Linux/Unix to Windows or Mac. In other words, if you need to send your Windows friend several ziped files and he can only deal with .zip files, keep it simple. Don't use bzip or tar, just use zip. Here is a command to create a highly compressed zip file to contain some log files. Then just get the produced zipfile to your Windows "without walls" friend.

zip -9 logServices.zip /var/log/messages myapp/logs/mylog.log /usr/local/tomcat/logs/catalina.out

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