Tuesday, May 4, 2010

Zip compress or tar on linux or checkpoint secure os

Question: How can you compress many date named log files on a checkpoint server to archive them?

Answer: tar -cf 2009-04-fw.tar 2009-04* --remove-files

We've been zipping & izarc'ing for years and never interacted with something like tar on SecureOS.  We thought we didn't run the command right when it came right back, but sure enough, it was done that quickly.

Tried zip, gzip and finally ended up trying tar.  Worked like a charm.