I have for some time noticed that when I have Virtual Machines running in VMware Workstation that I get failed VSS snapshots causing backup jobs to fail. Not every time, but very frequently. I haven't been researching it very hard simply because my PC was slow enough with Virtual machines running non stop that I for the most part kept them shutdown. However I recently upgraded to a new 8 core CPU, and well now the system can keep up. I was hoping to work around the issue by using client run before and after jobs to suspend then resume the virtual machines. It took me forever and a day to get the correct syntax in order to execute a powershell script having the proper escape sequences but its working now.
Client Run Before Job = "powershell -File \"C:\\Program Files\\Bacula\\Scripts\\VmWareSuspend.ps1\"" Client Run After Job = "powershell -File \"C:\\Program Files\\Bacula\\Scripts\\VmWareRestore.ps1\"" The first powershell script captures the output of this, saves it in an XML file to be reloaded in the second script. C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe -u myusername -T ws list Then of course suspends or resumes the Virtual Machines. I can execute it from the command line using the cmd /c, from either my account or from under a command prompt in administrator mode. Both work, but when I run it in the Client Before Job, it fails to fine the running virtual machines. The -u was needed to have it work under the administrator command prompt, but didn't fix it during the backup job. Has anyone either found a way to fix the VSS snapshot issue when running Virtual Machines, or know how to get a client before job script to run as a different user under windows? -- Thanks, Dean E. Weimer http://www.dweimer.net/ ------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET CLI. Get your free copy! http://sdm.link/telerik _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users