Pre / Post Commands Won't Work

I'm trying to execute batch script commands in the pre and post commands to mount a network drive for the destination location (pre) and to dismount it (post). That way it'll minimize the destination location being subject to ransomware encryption since the drive will only be mounted during the backup operation. In any case, they simply won't work, even though when I test the commands in the pre/post commands set up screen they both work just fine and always show successful. However, when actually backing up the image it always fails. The pre command always gets an "error code 1".
Execution of user command F:/Support/Acronis Backup Scripts/Mount Acronis Backup Drive.bat failed. Error code: 1
It appears to me that there must be some bug with pre/post command sin TI2015. Is anyone aware of that? What is the error code 1 saying? Any fixes?

- Se connecter pour poster des commentaires

Fedor: Help me understand. The scripts themselves are on a share drive, and possibly that's part of the problem. I simply pointed to them through the browse feature within the pre/post command setup screen, pointing to the network share drive letter (in this case F), and Acronis itself coded the location as:
F:\Support\Acronis Backup Scripts\Mount Acronis Backup Drive.bat
I suspect I may need to use a UNC name like \\serverx\share\Support\Acronis Backup Scripts\Mount Acronis Backup Drive.bat"
Is that right? Either that, or I can place the script on the machine, not on a network share.
Next, the script looks like this:
NET USE Q: "\\serverx\E"
That's fine, right?
- Se connecter pour poster des commentaires

No, the recommended way to backup to network shares from True Image (and Acronis Backup) is not to use network share as mounted disk at all. Instead, specify "\\serverx\share\... " as the destination in the destination selection windows and specify password if it prompts for.
- Se connecter pour poster des commentaires

Joel,
Also, I have found that sometimes permissions is an issue.
Go to Start/Programs/Accessories
RIGHT click on Notepad and choose the Run as Administrator
Open the bat file into Notepad and then resave it to get higher permisssions.
Also, use the save as and save as a .cmd file which you try if the bat still does not work.
When adding the path to the bat/cmd file in the pre/post command, use the included browse option so the program enters the path to
either the bat or cmd file.
Sometimes the a cmd file will work better than a bat file.
- Se connecter pour poster des commentaires