running backup plan from command
acrocmd run task --id=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Found that this seems to be the correct way but it does not work only get this.
Total time: 00:00:00
The operation completed successfully.
Yes I am running on the server.


- Log in to post comments

63908: Acronis Cyber Backup 12.5: How to run backup task using batch file
2. Create a new .txt file with the following contents:
acrocmd run task --id=<XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX>
Where XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX is the the task id, identified at previous step, e.g. acrocmd run task --id=69BFE35A-3CB9-4705-857E-0BA950F45CA2
3. Save the file and change its extension to .bat
Now you can start the backup by double-clicking the created batch file.
Results of the backup launched this way will be displayed in the list of activities same as for backup launched via GUI.
So the information in this file is incorrect?
- Log in to post comments

Hello E.J. McNaughton!
My bad you totally can run a backup plan as the kb article you found explains.
I did some quick tests and found it to be working as advertised. Here is what I found:
- "Identify the necessary plan using the task name and/or Plan name and get the ID from GUID value for that plan" -> It's not clear but you need to pay attention to the column named "GUID" NOT "Plan GUID".
- Whichever of the two guids you enter the ouput will be the same as yours.
- If you choose the GUID value of the plan you want to execute however the task should appear in the activities view on the AMS console, while with "Plan guid" nothing happens.
- See my attachment for such a test.
-- Peter
Attachment | Size |
---|---|
549559-195999.jpg | 910.04 KB |
- Log in to post comments

Thank you for the help but when I try to run the first command I only get this.
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.PS C:\Users\Administrator.FLEET> acrocmd.exe list tasks
The operation completed successfully.
PS C:\Users\Administrator.FLEET>
- Log in to post comments

Found I needed to say service, this worked.
acrocmd list tasks --output=raw --service=ams
This gives the full GUID.
Question what is mms ams for Services?
- Log in to post comments

I have an annoying issue. I know you can't fix this but forward it to some one who can thanks.
--output=formatted This gives me nice formatted tables that are useless, I don't get all the information I need.
Name GUID Owner Tenant ID Tenant Locator Tenant Enabled
-------------------- -------------------- -------------------- -------------------- -------------------- -------------------- --------------------
009 Exchange ... FC0DD532-5D3C-... 32E95E91-39F4-... 00000000-0000-... /00000000-0000-... 00000000-0000-... true
Tape backup - manual F319468A-47FD-... 32E95E91-39F4-... 00000000-0000-... /00000000-0000-... 00000000-0000-... false
Backup USB Manual 4E6014B1-EEF8-... 32E95E91-39F4-... 00000000-0000-... /00000000-0000-... 00000000-0000-... true
--output=raw This gives me all the information I need but no labels.
009 Exchange Information Store Backup FC0DD532-5D3C-036B-294F-B2AF5C31CE27 32E95E91-39F4-6053-9CE4-0DA7E86C8B81 00000000-0000-0000-0000-000000000000 /00000000-0000-0000-0000-000000000000/ 00000000-0000-0000-0000-000000000000 true
Tape backup - manual F319468A-47FD-0D32-3A0C-5284C784D1AD 32E95E91-39F4-6053-9CE4-0DA7E86C8B81 00000000-0000-0000-0000-000000000000 /00000000-0000-0000-0000-000000000000/ 00000000-0000-0000-0000-000000000000 false
Backup USB Manual 4E6014B1-EEF8-0851-045B-DAE59C4EBE82 32E95E91-39F4-6053-9CE4-0DA7E86C8B81 00000000-0000-0000-0000-000000000000 /00000000-0000-0000-0000-000000000000/ 00000000-0000-0000-0000-000000000000 true
005 Shares 08A6F363-54F4-0F67-1026-5A11E3CA8C42 32E95E91-39F4-6053-9CE4-0DA7E86C8B81 00000000-0000-0000-0000-000000000000 /00000000-0000-0000-0000-000000000000/ 00000000-0000-0000-0000-000000000000 true
006 Hyper01 878D6906-7DD8-469A-8548-53F0D1B61EF4 32E95E91-39F4-6053-9CE4-0DA7E86C8B81 00000000-0000-0000-0000-000000000000 /00000000-0000-0000-0000-000000000000/ 00000000-0000-0000-0000-000000000000 true
- Log in to post comments

1.
Found I needed to say service, this worked.
acrocmd list tasks --output=raw --service=ams
Ah yes, the KB article mentions that you should execute the backup task where the plan is applied. I ran the test I attached on my own pc where this test plan was applied.
2.
Question what is mms ams for Services?
From section 3.1.2 of the Command line reference:
Specifies the Acronis service to connect to.
If not specified, the command-line utility connects to the agent service (Acronis Managed Machine Service, MMS). To connect to a storage node or the management server (available in on-premise deployments only), you must explicitly specify the asn or the ams service in the --service parameter. This parameter is required even if an agent is not installed on that server or is unable to execute the command by design.
3.
I have an annoying issue. I know you can't fix this but forward it to some one who can thanks.
This is by design (section 3.12.9 of the command line reference). Formatted output is more useful for a quick overview for a human user. With the raw view though you don't have to deal with headers, in case you want to programmatically process the output.
What I did - and the KB article also hints it as a third option - is to pipe the output of the raw command to a text file. You can then browse the untruncated content with a CSV editor of your choice.
It doesn't sound like a big deal though to have a switch that would enable headers for the raw output.
Here is a thread dedicated to such suggestions: https://forum.acronis.com/forum/acronis-cyber-backup-125/acronis-backup-wishlist
- Log in to post comments

I am trying to run the plan from the server this is what I am getting.
Any suggestions on what I am doing wrong?
The operation completed successfully.
PS C:\Windows\System32> acrocmd.exe run task --service=ams -id=34266953-062F-4101-AADA-5D481BA1E7AC
An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vsa64_16327"
`anonymous-namespace'::PrintPerformingResult : d:\204\enterprise\command_line\engine\impl\engine.cpp(65)
The ID is not defined.
Error: 0x1510026
$module = "abr11cli_vsa64_16327"
CommandLine::GetID : d:\204\enterprise\command_line\abr11\commands\utils\impl\id_retriever.cpp(35)
PS C:\Windows\System32> acrocmd.exe run task --service=ams -id=EB0CAC50-E80E-47F3-8200-05F5A34C116F
An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vsa64_16327"
`anonymous-namespace'::PrintPerformingResult : d:\204\enterprise\command_line\engine\impl\engine.cpp(65)
The ID is not defined.
Error: 0x1510026
$module = "abr11cli_vsa64_16327"
CommandLine::GetID : d:\204\enterprise\command_line\abr11\commands\utils\impl\id_retriever.cpp(35)
PS C:\Windows\System32> acrocmd.exe run task --service=ams -id=3DC8ECD2-0379-4B81-986D-C3D747AA6E98
An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vsa64_16327"
`anonymous-namespace'::PrintPerformingResult : d:\204\enterprise\command_line\engine\impl\engine.cpp(65)
The ID is not defined.
Error: 0x1510026
$module = "abr11cli_vsa64_16327"
CommandLine::GetID : d:\204\enterprise\command_line\abr11\commands\utils\impl\id_retriever.cpp(35)
PS C:\Windows\System32> acrocmd.exe run task --service=ams
An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vsa64_16327"
`anonymous-namespace'::PrintPerformingResult : d:\204\enterprise\command_line\engine\impl\engine.cpp(65)
The ID is not defined.
Error: 0x1510026
$module = "abr11cli_vsa64_16327"
CommandLine::GetID : d:\204\enterprise\command_line\abr11\commands\utils\impl\id_retriever.cpp(35)
PS C:\Windows\System32>
- Log in to post comments

When I run acrocmd list tasks --output=formatted --service=ams
I get this, is it unusual that almost all of my plans say that they have not run? And the ones that have run I don't have in my list.
I have started a plan and it does not say that it is running when I use this command.
PS C:\Windows\System32> acrocmd list tasks --output=formatted --service=ams
Name State Last Result Last Start Last Finish User GUID Plan GUID Plan Name
-------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- --------------------
Compacting Task idle succeeded 09.03.2020 06:00:01 09.03.2020 06:00:03 ASN User 2@FLEET-... 541FD115-778E-...
MyRecover_1 idle failed 01.07.2015 12:51:23 01.07.2015 16:51:08 SYSTEM@NT AUTHORITY 37715726-5D39-...
MyRecover_1 idle succeeded 02.07.2015 08:39:56 02.07.2015 14:52:00 SYSTEM@NT AUTHORITY 2EDD791E-16D2-...
Full backup idle not_run_yet 2EA2463D-80F1-... F319468A-47FD-... Tape backup - manual
Incremental backup idle not_run_yet 3F609980-E28F-... F319468A-47FD-... Tape backup - manual
Differential backup idle not_run_yet 04361C88-A325-... F319468A-47FD-... Tape backup - manual
Incremental backup idle not_run_yet D54A2572-5B82-... 23BE6A97-0970-... USB Manual 001 ...
Replication/... idle not_run_yet FA1CC682-CFA4-... 23BE6A97-0970-... USB Manual 001 ...
Incremental backup idle not_run_yet 889AB54A-5B34-... F018B7FD-4AFB-... USB Manual 003 ...
Replication/... idle not_run_yet EF4CB110-3EBE-... F018B7FD-4AFB-... USB Manual 003 ...
Incremental backup idle not_run_yet 8186377E-B8A6-... D2619F79-DF42-... USB Manual 004 ...
Replication/... idle not_run_yet 57F271FD-E102-... D2619F79-DF42-... USB Manual 004 ...
Incremental backup idle not_run_yet 66BA921E-3F43-... 93A4F90A-ADFF-... USB Manual 006 ...
Replication/... idle not_run_yet A7EDBD62-1AC7-... 93A4F90A-ADFF-... USB Manual 006 ...
Incremental backup idle not_run_yet 36889114-130F-... F1CF7F96-D008-... USB Manual 007 ...
Replication/... idle not_run_yet 66AA9987-BC15-... F1CF7F96-D008-... USB Manual 007 ...
Full backup idle not_run_yet EA432918-FBD1-... FC0DD532-5D3C-... 009 Exchange ...
Incremental backup idle not_run_yet 6F4DF7E9-E5EB-... FC0DD532-5D3C-... 009 Exchange ...
Replication/... idle not_run_yet 25F558D5-9311-... FC0DD532-5D3C-... 009 Exchange ...
Full backup idle not_run_yet 21339D50-1E23-... 4E6014B1-EEF8-... Backup USB Manual
Incremental backup idle not_run_yet 8644DC43-45E2-... 4E6014B1-EEF8-... Backup USB Manual
Differential backup idle not_run_yet A28BB6C9-44E1-... 4E6014B1-EEF8-... Backup USB Manual
Full backup idle not_run_yet A2627764-573D-... CDA079F6-F80C-... 001 Fleet-Exch-01
Differential backup idle not_run_yet B5589F22-CEE7-... CDA079F6-F80C-... 001 Fleet-Exch-01
Incremental backup idle not_run_yet 8B627484-60F3-... CDA079F6-F80C-... 001 Fleet-Exch-01
Replication/... idle not_run_yet C9F68BE1-3D69-... CDA079F6-F80C-... 001 Fleet-Exch-01
Full backup idle not_run_yet F5790133-3856-... 895CEF48-1D01-... 002 fleet-dc-10
Differential backup idle not_run_yet 1E4F85EC-A656-... 895CEF48-1D01-... 002 fleet-dc-10
Incremental backup idle not_run_yet B4E31667-7280-... 895CEF48-1D01-... 002 fleet-dc-10
Replication/... idle not_run_yet FD0A90D7-A787-... 895CEF48-1D01-... 002 fleet-dc-10
Full backup idle not_run_yet 5BED1850-11B3-... D6C35BCB-305F-... 003 Fleet-App-02
Differential backup idle not_run_yet 846674CD-2B47-... D6C35BCB-305F-... 003 Fleet-App-02
Incremental backup idle not_run_yet F61613EE-F5CC-... D6C35BCB-305F-... 003 Fleet-App-02
Replication/... idle not_run_yet 8E3D9DBE-6B6A-... D6C35BCB-305F-... 003 Fleet-App-02
Full backup idle not_run_yet 651F39DF-0D1F-... 04BCFE54-F4FC-... 004 Fleet-SQL-02
Differential backup idle not_run_yet 1121ED6B-5BF2-... 04BCFE54-F4FC-... 004 Fleet-SQL-02
Incremental backup idle not_run_yet FF8381CD-C4A8-... 04BCFE54-F4FC-... 004 Fleet-SQL-02
Replication/... idle not_run_yet 10C7B779-33AB-... 04BCFE54-F4FC-... 004 Fleet-SQL-02
Full backup idle not_run_yet A16D657B-A20D-... F62E3F3B-2BF1-... 008 Microsoft SQL...
Incremental backup idle not_run_yet 76ECBF5D-549C-... F62E3F3B-2BF1-... 008 Microsoft SQL...
Differential backup idle not_run_yet 14476D8E-B770-... F62E3F3B-2BF1-... 008 Microsoft SQL...
Replication/... idle not_run_yet 6E66C103-A9D9-... F62E3F3B-2BF1-... 008 Microsoft SQL...
Incremental backup idle not_run_yet A278525F-39E2-... BB2C0C7A-42D9-... USB Manual 002 ...
Replication/... idle not_run_yet 9BC3338E-54F7-... BB2C0C7A-42D9-... USB Manual 002 ...
Full backup idle not_run_yet B9A1B499-9F73-... 08A6F363-54F4-... 005 Shares
Incremental backup idle not_run_yet 70D35890-039D-... 08A6F363-54F4-... 005 Shares
Differential backup idle not_run_yet 8DC41F21-B3F9-... 08A6F363-54F4-... 005 Shares
Replication/... idle not_run_yet 06AA27CB-273C-... 08A6F363-54F4-... 005 Shares
Simple validation... idle not_run_yet 47AB32F3-64A7-... 08A6F363-54F4-... 005 Shares
Full backup idle not_run_yet E9EDE0BB-5D5F-... 878D6906-7DD8-... 006 Hyper01
Differential backup idle not_run_yet DE15E7ED-CF8B-... 878D6906-7DD8-... 006 Hyper01
Incremental backup idle not_run_yet 3C8EEC93-3096-... 878D6906-7DD8-... 006 Hyper01
Replication/... idle not_run_yet E95447B2-779F-... 878D6906-7DD8-... 006 Hyper01
Full backup idle not_run_yet 1D6D5F10-E361-... C81D0E60-024C-... 007 Hyper02
Differential backup idle not_run_yet 385043D5-A61B-... C81D0E60-024C-... 007 Hyper02
Incremental backup idle not_run_yet 915666E5-84CB-... C81D0E60-024C-... 007 Hyper02
Replication/... idle not_run_yet 39570FF9-9D86-... C81D0E60-024C-... 007 Hyper02
Incremental backup idle not_run_yet DFAF0E65-99D6-... 3DC8ECD2-0379-... USB Manual 005 ...
Replication/... idle not_run_yet 25495344-7412-... 3DC8ECD2-0379-... USB Manual 005 ...
- Log in to post comments

It appears to be normal. I also have the same result when running with and without the "--service=ams" parameter when run on the AMS server. In my case it's expected as there is no backup related task of its own on the ams so it's empty without the "--service" parameter. With the parameter it seems it lists all the plans I currently have, but none of them include and therefore are applied to AMS either so they appear "not_run_yet".
If what you are trying to achieve is "Run this whole backup plan on every machine where it's applied from the command line" I couldn't make it work. Even when I start the backup plan in the gui with Plans>Backups>Run now, the task only appears in the task list output of the machine where it's applied. A different task with different id for each machine. Both querying tasks and executing can be performed individually and remotely through acrocmd though, if you supply "--host" and possibly "--credentials" parameters.
-- Peter
- Log in to post comments