May 26 2009

ibm aix

Maybe this still has a place in today’s tech world, but I think IBM should just give up and move over to working with true *NIX

clipped from en.wikipedia.org

IBM AIX

AIX (Advanced Interactive eXecutive) is the name given to a series of proprietary operating systems sold by IBM for several of its computer system platforms, based on UNIX System V with 4.3BSD-compatible command and programming interface extensions.

Latest stable release
6.1 / November, 2007
Source model
Closed source
License
Proprietary
  blog it

May 26 2009

Useful Unix Commands

To backup everything in the current directory, exclude anything ending with jpg:

tar cvf mybackup.tar --exclude "*.jpg" .

To exclude more than one type, just add another –exclude statement:

tar cvf mybackup.tar --exclude "*.jpg" --exclude "*.gif" .

Search current directory and sub directories for mp3 files:

find . -name \*mp3

Need to Learn: how to get the total size of the files returned by the above search command

AIX

Those were on RHEL, not aix – they will work for a lamp instance.  With AIX we have to consult the man tar page.

This should work:
find . \! -name “*.mp3″ > inputfilelist
tar -cvf mybackup.tar -L inputfilelist

This should also work (in the opposite direction):
find . -name “*.mp3″ > excludefilelist
tar -cvf mybackup.tar -X excludefilelist .

In either case, you can use this to see if there are any mp3 files in the archive:
tar -tvf mybackup.tar | grep mp3