Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# send email to optek@ompantek.com with advance warning before restoring from backup


service opeventsd stop
service opconfigd stop
service opchartsd stop
service omkd stop

# confirm that the required Opmantek services have stopped
/usr/local/omk/bin/checkomkdaemons.sh status

cd ~
mkdir temp
tar -xvf omk-backup-YYYY-MM-DD.tgz -C ~/temp
unalias cp
cp -R ~/temp/* /usr/local/omk

# at this point this error may occur:
#   cp: cannot create regular file '/usr/local/omk/bin/opchartsd.exe': Text file busy
#   cp: cannot create regular file '/usr/local/omk/bin/opflowd.exe': Text file busy
# if this happens: do
#		mv /usr/local/omk/bin/opchartsd.exe /usr/local/omk/bin/opchartsd.exe.old
#		mv /usr/local/omk/bin/opflowd.exe /usr/local/omk/bin/opflowd.exe.old
# and then: do
# cp -R ~/temp/* /usr/local/omk

service opeventsd start
service opconfigd start
service omkd start

# confirm that the Opmantek services are all running
/usr/local/omk/bin/checkomkdaemons.sh status

...