We had the same problem and solved it using a query to the eventlog to see if the backup has finished and then proceed with the rest of the script.
BR//Bart -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Wells Sent: Thursday, January 20, 2005 23:21 To: Send - AD mailing list Subject: RE: [ActiveDir] backup script CORRECTION - Having taken a look at this now, I'd go with Deji on this one ... the script shouldn't proceed until NTBACKUP has exited ... something else methinks. -- Dean Wells MSEtechnology * Email: [EMAIL PROTECTED] http://msetechnology.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 20, 2005 4:49 PM To: [email protected] Subject: RE: [ActiveDir] backup script Are you sure that the service is not auto-restarting itself? Look at the service's properties. The NTBACKUP line should finish ALL the backup before going to the next line. Sincerely, D�j� Ak�m�l�f�, MCSE+M MCSA+M MCP+I Microsoft MVP - Directory Services www.readymaids.com - we know IT www.akomolafe.com Do you now realize that Today is the Tomorrow you were worried about Yesterday? -anon ________________________________ From: [EMAIL PROTECTED] on behalf of Creamer, Mark Sent: Thu 1/20/2005 1:38 PM To: [email protected] Subject: RE: [ActiveDir] backup script Yeah, but I'm also backing up another set of folders. So the steps are (roughly)... Stop service A Backup various folders + AD Restart Service A What's happening is Service A restarts before Backup has completed, causing a few files in the folder to be locked and not backed up. I want the service restart to wait until ntbackup has exited. I'm looking now at the START command with /WAIT switch. Am I on the right track? <mc> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 20, 2005 4:33 PM To: [email protected] Subject: RE: [ActiveDir] backup script If you are doing the backup through a batch script, then after the backup is completed, it should return to the next line in the batch script. Is that what you are asking? Sincerely, D�j� Ak�m�l�f�, MCSE+M MCSA+M MCP+I Microsoft MVP - Directory Services www.readymaids.com - we know IT www.akomolafe.com Do you now realize that Today is the Tomorrow you were worried about Yesterday? -anon ________________________________ From: [EMAIL PROTECTED] on behalf of Creamer, Mark Sent: Thu 1/20/2005 1:09 PM To: [email protected] Subject: [ActiveDir] backup script In my test lab, I have NTBackup running a nightly backup of the test AD via a script. I would like to add additional steps to the script, but I'm not sure how to capture that NTBackup has completed and exited before the next command runs. Anyone know how to do that? Thanks! Mark This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated. Thank you. Cintas Corporation. List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated. Thank you. Cintas Corporation. List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
