[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] raqbackup.sh version 2.0



[snip]
Nice script! You may or may not want to use this, but I thought I would post it
anyways.

With version 2.0 of CMU there is better third party integration.  Check out the cmuConfig utility, here is a little quickie on how it works. 

cmuConfig (lists currently installed configs)
cmuConfig -a add -n mysql -c /etc/cmu/mysql.xml
Will add the following lines into /etc/cmu/cmuConfig.xml:
<mysql>
    <configFile value="/etc/cmu/mysql.xml"/>
</mysql>
cmuConfig -a del -n mysql
Deletes the previous three lines out of /etc/cmu/cmuConfig.xml.

Example of /etc/cmu/mysql.xml:
<mysql>
  <libs>
    <scanout value = "/root/testout.pl"/>
    <scanin value = "/root/testin.pl"/>
  </libs>
</mysql>

When the script is called the CMU destination/source directory is passed as an argument, for example: /root/testout.pl /home/cmu/my.fqdn.com.  All scripts are called after the export/import is completed.

Jeff-