Using variables in archive names not possible?

Hello,
maybe someone can help me or give a hint about what I'm doing wrong. I want to trigger backup via acrocmd and don't really have a problem with creating the backup itself, but I just can't find a correct way to define archive name.
According to acrocmd manual it should be quite straightforward, but it isn't.
I would like to have PC name in the archive name (just so I can distinguish for which PC the backup was created, as we would like to use this command on various PCs). According to the acrocmd manual, all it should need is to put [MachineName] in the archive name.
But however I use it, it never fills in the actual machine name.
--arc=[MachineName]_Test ? That creates archive literally called [MachineName]_Test
So, maybe try it with quotation marks?
both --arc=[MachineName]"_Test" and --arc="[MachineName]_Test" create archive named [MachineName]_Test , no difference
So what about putting a space there? Maybe it's a typo and they just forgot to put in the space in the manual?
Nope, --arc=[Machine Name]_Test creates backup in archive (surprisingly) [MachineName]_Test ignoring the space completely.
Then I thought, that maybe the correct variable is no longer [MachineName]? Let's check how it's called in Device properties (in Acronis console) - it's called simply Name or DisplayName. Does it make any difference? No. Again, archive name doesn't contain the machine name.
So, what am I doing wrong? I'm running the command directly on the PC that I want to back up and backup itself is always successful, it just never creates an archive name I could use.
Thank you
Lukas


- Se connecter pour poster des commentaires

Hello Péter,
thank you very much!
First example didn't work for me (--arc="[Machine Name]_Something"), it created an archive with name [Machine Name]_Something (without the name actually being filled in).
BUT, the second example (--arc="[Machine Name]"_Something) is working exactly how I wanted. So the quotes needs to contain only the variable, not remaining text as well.
Acronis should fix this in the manual. As it is there now, it doesn't work.
Again, thanks a lot
Lukas
- Se connecter pour poster des commentaires

What version are you using for this? Maybe this got changed at some point?
I used ACB Advanced 12.5.16327 for both AMS and MMS when testing this
EDIT: typo
- Se connecter pour poster des commentaires

I'm doing this with r16327, but had the same results with r14330 as well.
Maybe it's behaving differently, because I'm not creating local backup, but saving it to managed location directly? (also using Deduplication, but that probably makes no difference, as I had the same problem even with non-deduplicated Location)
Command I'm using (and that finally works, thanks to your advice) is like this:
acrocmd backup disk --volume=C --backuptype=full --use_vss=auto --loc="bsp://<servername>/<LocationName>" --credentials="admin_account","password" --arc="[Machine Name]"_User_Backup --cleanup
This is the only way to get machine name filled in, other options just don't work.
- Se connecter pour poster des commentaires

Yeah I guess I'll just accept that it works differently for you and me, the point afterall is that it works...somehow.
Even when I tried something like this (the closest I could match your command atm) I still had the expected result: acrocmd backup disk --disk=1 --volume=1 --loc="bsp to a remote deduplicated location" --credentials=user,pw --arc="[Machine Name]_Something2A"
- Se connecter pour poster des commentaires