Possible Bug: Pre/post commands are executed multiple times on a backup replication.
Hi there, I'm running into the following problem using the backup replication of Acronis Backup Advanced 12.5 Build 12890 (not sure if older 12.5 Version also have this bug).
According to https://kb.acronis.com/content/1744 it looks like the Pre/Post commands should only run once for a backup job or a backup replication job.
However at least on the backup replication I obtained other results.
I wanted to use the backup replication to copy backups made from multiple VMs and saved to a storageNode on a NAS to a one slot RDX drive with 2 Data Cartridge that get changed in rotation every day. Only the latest backups should be copied.
I made a batch to delete all files on the RDX cartridge and activated that script in the pre commands. So every day the other old cartridge will be replaced with the other one then the script should delete all old backup files and then copy the lastest backup files.
However every single time when the backup files of one VM are sucessfully copied the script starts again and immediately delete the just copied files. So after the backup copy job the only file that is still on the cartridge is the last backup that has been copied sind after the last file the script won't be executed another time.
Is this working as planned? I can't really think that this would work this way.
I haven't tested this behavior on backup, only on backup replication.
Maybe someone can help or confirm that this is a bug.

- Log in to post comments

Hi Maria.
Thanks for your reply.
I'm afraid I can't provide additional report at the moment.
I deleted the backup replication job and changed it by using a batch script and the acrocmd now instead of the GUI. This way it works for me now.
I do have another question regarding the script. I used this script before with Acronis 11.5 before we got new servers and changed to Acronis 12.5.
With 11.5 this was the only way to make a backup replication afaik. At least I couldn't find such an option in the GUI.
So with 11.5 I did used the script like this:
acrocmd export backup --service=asn --loc=bsp://Server/Share --credentials=Server\User,Password --arc=Backup_Example --target=e:\ --credentials=Server\User,Password >>C:\backup_script\logfile.txt
I also ran into some errors using the same script with Acronis 12.5. When I excecuted it I immediately got several errors in the cmd windows. I remember that in the logs of the Acronis GUI it said as error message "URI is empty".
Now it works. All I had to do was changing the service from asn to mms.
But I kinda wonder, is this also a bug or planned changes?
- Log in to post comments

Hello Benjamin,
I recommend that you use the syntax listed in the Acronis Backup 12.5 Command-Line Utility guide for exporting backups:
e.g. Exporting the selected backups of an archive stored in a network folder to a local folder.
acrocmd export backup --loc=\\bkpsrv1\backups --credentials=netuser1,pass1 --arc=my_archive --password=123 --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX1,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX2 --target=E:\copies --target_arc=my_archive_copy
and/or replication of a backup:
e.g. Replicating the latest backup of an archive stored in a local folder to a network folder.
acrocmd replicate backup --loc=C:\Backups --arc=my_archive --password=123 --target=\\bkpsrv\backups --credentials=netuser,pass
All I had to do was changing the service from asn to mms.
This is because mms.exe service provides backup, recovery, replication, retention, validation functionality.
- Log in to post comments