karlovac
4th June 2002, 08:03
We want to make secure full backup skript:
To do that Baan-documentation said that:
after rc.stop script
we have restart
Shmmanager6.1 -I
and Tbase6.1 -I,
and then Tbase6.1 -I
& Shmmanager6.1 -uk
and after that FULL BACKUP script.

In your opinion - are all that steps needed for secure backup?
and
Can we put licmon6.1 -k into rc.stop script
( this is only command which we now have to run manually)?

Thanks
Book

Han Brinkman
4th June 2002, 09:17
I would stop the baan environment, stop also the licence daemon (meaning get ride of hanging licences), kill all bshell's that still hang and after that make the backup.

After the backup you can start the environment again.

Regards,
Han

NPRao
4th June 2002, 10:01
You might also check the print job process or any background socket programs, for a proper shutdown of an environment -

ps -ef | grep pdaemon6.2 [your version]

and

ps -ef | grep ba6.2 or bshell6.2 [your version]

karlovac
4th June 2002, 11:37
Thanks,

Yes, I can do it all manually, but - the problem is that I do not want to do it that way;
We want to make it all automatic - croned by night saturday to sunday.
That's the reason I want to put licmon -k into a script, but is it OK,
and if something can't be "killed" is it ok to be killed with kill -9?

Book

patvdv
4th June 2002, 11:38
Unless you have major problems with hanging licenses I would not stop the license daemon for every backup but rather once a week for example. In that scenario you can leave the licmon6.1 -k out. If you are using tbase then the safest way to backup is to stop everything (except the license daemon maybe).

If you want more robustness and flexibility in your backups, then you should consider switching to a proper RDBMS like Oracle or Informix.

karlovac
4th June 2002, 12:06
Thanks Patrick
It was my opinion too but I wanted to get it confirmed.

Thanks - my next backup script will work that way....

Book

Han Brinkman
4th June 2002, 17:57
to stop baan processes, for a bshell process it's not a problem however for bisam processes you run the risk that you have to rebuild your indexes afterwards!
I know that it has to be sometimes but be warned!

Regards,
Han

NPRao
4th June 2002, 21:17
We had a clarification sometime back -

Do not use kill -9 (sure kill). This may be adversely affecting the license manager. Please use kill -15 (software termination kill).