> -----Original Message----- > From: Kevin Keane [mailto:subscript...@kkeane.com] > Sent: Friday, January 09, 2009 4:03 AM > To: bacula-us...@lists.sf.net > Subject: [Bacula-users] How to do a systemstate backup? > > I am trying to add an NTBackup statement to the Client Run Before Job > for the systemstate backup. The statement I'm using is: > > Client Run Before Job = "ntbackup backup systemstate /j SystemState /m > normal /f C:\\SystemState.bkf /v:yes"
I run mine in a batch file and then call the batch file from Bacula: The file c:\bacula-systemstate.bat contains: c:\windows\system32\ntbackup.exe backup systemstate /F c:\SERVERNAME-systemstate.bkf Then in the Bacula config I put: Client Run Before Job = "c:/bacula-systemstate.bat" > > I have two problems with it: > > - It doesn't work. NTbackup starts, but then terminates. The > Systemstate.bkf file does get created, but is only 2kb in size. When I > use the exact same command on the command line, NTBackup works without > a > problem and creates a backup > 600Mb, which is about expected. > > I have a suspicion that in part it may be a timing issue. The > systemstate backup from the command line takes about 45 minutes - is > there a timeout for the Client Run Before Job that might kill the > backup > prematurely? > > - Is there a way to only run this script before a full backup, but not > before an incremental backup? > > Thanks! > > -- > Kevin Keane > Owner > The NetTech > Turn your NetWORRY into a NetWORK! > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information > herein is intended only for use by the intended recipient(s) named > above. If you have received this transmission in error, please notify > the sender immediately and permanently delete the e-mail and any > copies, printouts or attachments thereof. > > > ----------------------------------------------------------------------- > ------- > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users Thanks, Bob Duman Senior Systems Engineer Cleantech Group LLC 2250 Genoa Business Park Dr Suite 130 Brighton, MI 48114 (810) 224-4310 x7310 http://cleantech.com ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users