we would like to do a scheduled backup every night but make sure that:
1.) no user is connected to the database during the backup
2.) no user is thrown out by the backup ( from time to time there are long
jobs running over the night)
We don't want to use continuous operation because normally the database is
not in use during the night, so an offline backup is perfectly sufficient.
1.) is easy, I can stop the Btrieve and PSQL engine before the backup and
start it again afterwards
2.) is my problem. Is it possible to check for active users of the Btrieve
and PSQL engine or do a conditional shutdown only if no user is connected
(or better: if no user has any table in use. If users forgot to log out they
should be thrown out if they have no tables in use)
any suggestions ?
thanks
--
Bernhard Mandl
Global Refund IT / Vienna