Acronis B+R advanced Workstation 11 - pre-/post-command fails
I created backup-plans (midnight) on our master-machine. There is ABR advanced workstation 11 complete installed. Additional we have 8 workstations, which are down in the night. All our workstations can be waked up on WOL. Therfore we have a opensource freeware software, which works fine in GUI and command line mode.
In the definition of the plan, i added a pre and a post-command:
Pre:
Command: C:\Program Files\WakeOnLANEx2\WOL2.exe
Path: C:\Program Files\WakeOnLANEx2\
Parameters: -shutdown "DE05.mr.co.de" -close
Post:
same as above...
Parameters: -wake "DE05.mr.co.de" -close
If i tested this command with the "Command Test" button, it works fine. But if i start the plan, none of the commands will be executed. No wakeup of the workstation and plan fails with following error:
-------------------------------------------------------------------------------------
ProtectCommand: Ausführen des Befehls fehlgeschlagen.
Zusätzliche Info:
--------------------
Fehlercode: 41
Module: 307
LineInfo: e6792a5ee190ddb3
Felder: $module : C:\Program Files (x86)\Acronis\BackupAndRecovery\mms.exe
Nachricht: ProtectCommand: Ausführen des Befehls fehlgeschlagen.
--------------------
Fehlercode: 29
Module: 307
LineInfo: d63b333701123474
Felder: $module : C:\Program Files (x86)\Acronis\BackupAndRecovery\mms.exe
Nachricht: LaunchBackupCommand: Ausführen des Befehls fehlgeschlagen.
--------------------
Fehlercode: 58
Module: 307
LineInfo: c37471ceffa1826d
Felder:
Nachricht: Es wurden keine Backup-Elemente aufgelöst: '[PATH=avfs%3a%2fsmb%3f%2f%2fde05%2fde05-c%2f&WORKGROUP=domain-de-01,mms::smb::share], [PATH=avfs%3a%2fsmb%3f%2f%2fde05%2fde05-d%2f&WORKGROUP=domain-de-01,mms::smb::share], [PATH=avfs%3a%2fsmb%3f%2f%2fde05%2fde05-e%2f&WORKGROUP=domain-de-01,mms::smb::share]'.
--------------------------------------------------------------------------------------
--------------------.

- Log in to post comments

What is the Pre-Command good for, if it will not do something BEFORE the backup on itself starts?
If the machine-B isn't online and the backup fails, all right. But the machine-B should be on the way waking up. If I test the comman with "Befehl testen", it works fine. I think it is a bug of the software. The description of the software says, that the Pre-Command will do something before the BACKUP itself. So what?
For additional info, the User has ALL permissions of an administrator.
- Log in to post comments

If it ultimately wakes the machine you need to wait until it changes its state from "is on the way waking up" to "up and running all needed SMB services". You may insert a sleep command or some more sophisticated running 'ping' and 'errorlevel' until the machie wakes up and replies to pings.
- Log in to post comments

Normaly you are right, but the other machine don't wake up. I have tried some things and found out why:
I created a backup of two file on my master-machine. As pre-command I set the wakup of the machine B. This works !.
So my result is, that acronis make a validation of the task and this fails, because it sees, that the data of the machine-B in my "backup-machine.-B-task" could not be reached. You will see this, if you have a task with a backup of data of an other machine and this machine is down. If you go to the definition of this task, you see that the software try to connect to the machine B. This is not possible. So I think, this is the reason, the task fails and no pre-command would be startet.
I think this is not correct, because the pre-command should be executed before the task-validation starts.
I am working on a work-around.
Attachment | Size |
---|---|
89621-99208.png | 14.28 KB |
- Log in to post comments

So my result is, that acronis make a validation of the task and this fails, because it sees, that the data of the machine-B in my "backup-machine.-B-task" could not be reached
It doesn't work this way. It doesn't touch the task data to before pre-command is completed. You may add something like time < nul >> some_log_file
to make sure the pre-command is launched. Or whether it isn't.
- Log in to post comments

I disagree with "dev-non". It is a fact, that the pre-command "wake up machine B" not works, because the machine doesn't do any tweet. It is off!
If I backup local data with the same all other options, the pre-command wake up machine B. That's also a fact. I will try to write to a log-file, but the log-file of acronis couln't be correct.
- Log in to post comments

Here is my Batch-file and logfile:
------------------------------------------------------------------
Echo.Start logging wakeup command >>D:\FocusBackupSettings\DE06wol_wake_logfile.txt
Echo.============================ >>D:\FocusBackupSettings\DE06wol_wake_logfile.txt
echo.%Date% >>D:\FocusBackupSettings\DE06wol_wake_logfile.txt
echo.%Time% >>D:\FocusBackupSettings\DE06wol_wake_logfile.txt
"C:\Program Files\WakeOnLANEx2\WOL2.exe" -wake "DE06.focusmr.co.de" -close
echo.RC= %errorlevel% >>D:\FocusBackupSettings\DE06wol_wake_logfile.txt
Echo.= executed sucessfull======= >>D:\FocusBackupSettings\DE06wol_wake_logfile.txt
---------------------------------------------------------------------------------------------------------------------------
Start logging wakeup command
============================
26.01.2012
9:32:40,64
RC= 0
= executed sucessfull=======
This is the result in a new file of the task, when the task backups local files. This works fine.
Now I deleted the log-file.
I started my task of backup machine B. The progessbar of the task still stand at 0% about 1 minute and after this I'll get following detail-information:
----------------------------------------------------------------------------------
ProtectCommand: Ausführen des Befehls fehlgeschlagen.
Zusätzliche Info:
--------------------
Fehlercode: 41
Module: 307
LineInfo: e6792a5ee190ddb3
Felder: $module : C:\Program Files (x86)\Acronis\BackupAndRecovery\mms.exe
Nachricht: ProtectCommand: Ausführen des Befehls fehlgeschlagen.
--------------------
Fehlercode: 29
Module: 307
LineInfo: d63b333701123474
Felder: $module : C:\Program Files (x86)\Acronis\BackupAndRecovery\mms.exe
Nachricht: LaunchBackupCommand: Ausführen des Befehls fehlgeschlagen.
--------------------
Fehlercode: 7
Module: 307
LineInfo: c37471ceffa18219
Felder:
Nachricht: Fehler bei Backup-Ausführung.
--------------------
Fehlercode: 52
Module: 307
LineInfo: a27873a62cd7bd33
Felder:
Nachricht: BackupPlanGenerator: Es ist ein Fehler bei der Erstellung eines zentralen Backup-Plans auf der Maschine aufgetreten (nach Deployment des Backup-Plans '913EED1E-2FCE-42FF-A15C-874A6B11AE69').
--------------------
Fehlercode: 15
Module: 331
LineInfo: a6005103f9d1691f
Felder:
Nachricht: GXT: Der 'Item Provider' hat ein Element nicht richtig aufgelöst, welches den Schlüssel '[PATH=data_required_item_uri&WORKGROUP=,mms::smb::data_required#4B2A7A93-A44F-4155-BDE3-A023C57C9431=gct::files]' hat. Grund für den Bericht: 'Route Enumeration' für '[PATH=data_required_item_uri&WORKGROUP=,mms::smb::data_required#4B2A7A93-A44F-4155-BDE3-A023C57C9431=gct::files]' starten.
--------------------
Fehlercode: 7
Module: 4
LineInfo: f35f747b3b21f994
Felder:
Nachricht: Fehler beim Öffnen der Datei.
-----------------------------------------------------------------------------------------
No logfile was created!. This are facts and couldn't be ignored.
- Log in to post comments

Well, I tested it myself and you were right and I was not - it indeed tries to resolve the source and then fails without executing pre-backup command :( Even in case of a local backup plan.
- Log in to post comments