Barry; You have a couple of options:
1. Select the "backup open files" option in Arcserve. It's been quite a while since I've seen Arcserve, but I'm pretty sure it has the option (may be an extra cost add on). Of course, if your users are actually doing something with the database while it's backed up then this won't be a good option. DBPAUSE/DBRESUME can be used to retain the physical integrity of the files - but not logical integrity. This is probably the least effort solution - but leaves the potential for the most damage. 2. Run stopud -f either from any "pre-backup command" available in Arcserve or use the scheduler to run it a couple minutes before the backup is to start. This is a pretty harsh way to get everybody off. Unfortunately, it asks for confirmation before stopping UniData so you will have to accommodate for that within your script/batch file. Then startud to restart it. 3. Use "net stop" to stop the UniData database and telnet services. This is very similar to the stopud -f - but doesn't ask for confirmation. Use "net start" to restart the services. The next problem is how to notify your users. The easiest way is to use "net send". This can send a message to all users on the system. To prevent logins you have a couple of options: stop the unidata telnet service which will allow current users to work fine but not allow any new logins; or keep a "flag" mechanism in the login process to not allow users to login while the backup is running. If you use a language such as perl or curl you could do thinks like listuser (which works on the nt command line) to get the list of current users, parse out the users to target them with the messages. You can also get the PID's to pass to deleteuser (which also works on the command line) to log off the users in a slightly more friendly way. If you prefer working within UniData you could use the scheduler to start a process that logs in (note it will go through the login VOC item so you may have to make accommodations for it). You could have it run a program that will do all of this. hth Colin Alfke >From very wet Calgary Canada >-----Original Message----- >From: Barry Green > >Hi Group, > >I'm using Unidata 6.1 on a Windows 2000 server. > >I'm having problems when I run a backup (using Arcserver) if >users do not disconnect their sessions correctly the backup fails. > >I'm looking for a way to run a batch file before the backup >which does the >following: > >- Prevents future logins > >- Send a message to all logged in users saying "Session will >disconnect in 3 minutes" > >- Sleep for 1 minute > >- Send a message to all logged in users saying "Session will >disconnect in 2 minutes" > >- Sleep for 1 minute > >- Send a message to all logged in users saying "Session will >disconnect in 1 minute" > >- Sleep for 1 minute > >- Logoff any logged in users > >Perform backup > >Then run another batch file which just restores the login function. > >Has anyone done this or can you give me any clues as to how >and which commands to use, particularly the commands to stop >logins, logoff all users (preferably in one command) and to >allow logins again. > >Many thanks > >Barry ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
