Hi
I've got an environment where I want to use Veeam as the backup tool but I'm having issues with a non VSS aware application and pre-freeze scripts.
Essentially, I need to freeze an old Oracle database and SAP system on a Windows 2003 box but the issue I have is that the shutdown scripts need to be run as a specific user. From what I can tell, Tools executes the pre-freeze script as the local system user.
How can I execute pre-freeze scripts in shutdownScripts.d as a specific user? I've tried calling the external scripts using psexec.exe to pass a username and password across but they aren't working. They are definately being called because I added an ECHO to a txt file to prove that just now.
Strangely, they do work when I call them directly from the command line and pipe "freeze" to them.
For passing password to runas command you should utilize /savecred option that uses previously saved credentials. Add credentials via the credential manager in Control panel, and then run the corresponding batch file, using runas with a /savecred option.
Perfect. Thanks.
We're actually going with another method that I thought up last night.
We're going to set up two jobs in Windows scheduled tasks (which can be run as elevated users) and call them to run with the /NOW switch. By default they will have no specified run time.
We are writing a script to stop Clearcase vobs and then restart them. We have it all working outside of veeam and VMware but we need it to run it as a specific user. Is it possible to select a user for it to run as in veeam or does anyone else have any ideas?
What is the default account used for running the pre-freeze/post-thaw scripts?
I am trying to get the pre-freeze/post-thaw scripts to stop/start a service (on Windows) before/after the backup but it would not work as stopping/starting services requires elevated access. And the Runas command would prompt for password if trying to runas /user:administrator. Any suggestions?