chjatwork

updated

11 years ago

C

chjatwork

2 Intern

356 Posts

0

6099

March 20th, 2015 07:00

Command Syntax using isi_for_array (tar, and $HOSTNAME)

Community,

I am trying to backup the following directories:

/usr/

/var/

/etc/mcp/override

per the pre upgrade steps.  I need help with the syntax I would use to tar those directories using isi_for_array?

i.e..

tar -cvjf /ifs/backup/$HOSTNAME-usr-backup.tar.bz2 /usr/  (I need the HOSTNAME for every node to be represented in the naming of the file.)

My attempts to make this work netted me this output (-usr-backup.tar.bz2)

Remember this will have to work using isi_for_array.

Thank you,