Skip to main content

command line with GUID not working

Thread needs solution

I have a backup plan that was running on a Windows 10 schedule. I want to put this backup into a list of backup commands for nightly runs. I want to use the command line interface to do this, following the docs in ABR11.5_cmdlineref_en-US.pdf .

I modified the backup plan to be on Manual. I exported the plan into an .xml file, from which the 4th line has what I assume is the GUID for the backup plan. Call that long ID "XXX". That GUID agrees with the XXX I see from
acrocmd list plans --output=raw
(which shows the sole plan is "idle")

When I try
acrocmd.exe run task --id=XXX
I get:

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
An unhandled routine exception.
Error: 0xAD000F
$module = "mms_vs_43994"
Tag: 0xC93597B64F4E1C1A
A task with ID 'XXX' does not exist.
Error: 0x900011
$module = "mms_vs_43994"
Tag: 0xB86B2654E9E0E753

I looked at https://kb.acronis.com/content/14932 but using schedmgr.exe was not relevant as this "XXX" ID did not show up.

0 Users found this helpful

Hello,

Tasks are not the same as plans - there can be several tasks per plan. You need to use 'acrocmd list tasks' to find its ID.

I did that but only get truncated IDs?:

Name State Last Result Last Start Last Finish User GUID Plan GUID Plan Name
-------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- --------------------
Incremental backup idle succeeded 21.09.2015 02:00:01 21.09.2015 02:31:05 ingber@LESTERX1 36747343-417E-... E4CC9FC7-F557-... BackupLester
Simple validation... idle not_run_yet ingber@LESTERX1 93F58456-CBB2-... E4CC9FC7-F557-... BackupLester

The operation completed successfully.

I went to schedmgr.exe and did "get list" and there I could see the two full IDs corresponding to the truncations above.

It seems that you cannot run a "plan" from the command line?

Also, these tasks refer to jobs that were run and to be run, using the scheduled backup plan I just re-enabled in the GUI. I want to run a plan I create in the GUI, e.g., after I disable the backup plan, so that I can merge it into a sequence of other backups. Is this possible using the command line?

To get full IDs add the following command line option: --output=raw
'Run' operation for plan was not designed because of ambiguity if plan contains more than one task, e.g. backup with cleanup, or custom scheme.

Tasks refer to tasks created when backup plan is created, you can see them in console under 'run' dropdown for the plan, including tasks that can be run only manually.

Yes, there are two long IDs each for the backup and a verification. I was using the 2nd ID which is common to both tasks, which I assume is the "plan" ID as I saw in the other commands. Running acrocmd with the 1st ID seems to be working.

Thanks.

Lester

P.S. I am using a simple tcsh script for runs:

# machine name ends with X1

set ID = `acrocmd list tasks --output=raw | grep Incremental | grep -v grep | sed -e "s/^.*X1\t\([A-Z0-9\-]*\)\t.*/\1/"`

/cygdrive/c/ProgramFilesx86/Acronis/CommandLineTool/acrocmd.exe run task --id="$ID"

Now that I can backup jobs via the command line, fitting the backups into my nightly scripts, I would like to use the command line to mount an image as a Windows letter-drive.

I have used the GUI for many years to perform this useful jobs: mounting an image as a lettered drive, wherein I can easily tar up folder quite large that otherwise would choke Windows File Explorer's copy/paste.

However, only in this latest version of ABR-43994 this fails. I can mount backups in other tools, e.g., I tested this week, including Windows Powershell images, Macrium Reflect, R-Drive, and Aomei. This definitely is an Acronis problem.

So, I was hoping that perhaps the command line would work, but I have not succeeded. For example, I tried:
acrocmd mount --letter=g --loc=/cygdrive/d/lesterX1 --arc=Archive --volume=1-4
where volume 1-4 shows up as my C-drive under
acrocmd list disks

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Failed to reindex location '/cygdrive/d/lesterX1'.
Error: 0xA100E2
IsReturnCode = 1 (0x1),
$module = "disk_bundle_vs_43994"
Tag: 0xB320396ADFE3DAC
Cannot get location settings.
Error: 0xA10003
$module = "disk_bundle_vs_43994"
Tag: 0x7C1C5CBE34248C5D

Any advice on what to try?

Hi

Error "Cannot get location settings." means that something is wrong with parameter "--loc=/cygdrive/d/lesterX1".

Assuming that your backup location is "d:\lesterX1", try this:

acrocmd mount --letter=g --loc=d:\lesterX1 --arc=Archive --volume=1-4

Hi. Probably a bit closer:

acrocmd mount --letter=g --loc="d:\lesterX1" --arc="Archive(1)2.tib" --volume=1-4

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Failed to open the archive.
Error: 0x950006
$module = "disk_bundle_vs_43994"
Tag: 0x3F1F68EF07E399FD
Please check the backup archive password that is specified in the task script.
Error: 0x103FA
$module = "disk_bundle_vs_43994"
Tag: 0x64A31B1B5AFDB19B

With the password:

acrocmd mount --letter=g --loc="d:\lesterX1" --arc="Archive(1)2.tib" --volume=1-4 --password="XXX"

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Option 'password' is not recognized or not expected.
Error: 0x1510050
$module = "abr11cli_vs_43994"
Tag: 0x9ECB76AAE056FDD9

With credentials:

acrocmd mount --letter=g --loc="d:\lesterX1" --arc="Archive(1)2.tib" --volume=1-4 --credentials=ingber,"XXX"

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Option 'credentials' is not recognized or not expected.
Error: 0x1510050
$module = "abr11cli_vs_43994"
Tag: 0x9ECB76AAE056FDD9

Option "password" should follow the "--arc=XXX" option.

Try this:
acrocmd mount --letter=g --loc="d:\lesterX1" --arc="Archive(1)" --password="XXX" --volume=1-4

I tried

set DiskC = `acrocmd list disks --output=raw | grep Windows_OS | grep -v grep | sed -e "s/^\([0-9]-[0-9]\)\t.*/\1/"`
echo $DiskC
#acrocmd mount --letter=g --loc="d:\$MACH" --arc="Archive(1)2.tib" --password="$1" --volume=$DiskC
acrocmd mount --letter=g --loc="d:\$MACH" --arc="Archive(1)" --password="$1" --volume=$DiskC

where MACH is set to lesterX1 and $1 is my password passed to the script. I echo the script as it is being processed so I can see it is the form you last gave.

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Module has already been initialized.
Error: 0x9
code = 3758096386 (0xE0000002),
$module = "disk_bundle_vs_43994"
Tag: 0xFC28F0B681003B58

However, Windows Explorer or Disk Management show no new mounts. (I saw something like "has already been initialized" mounting Windows System Image, but there Disk Management showed the mounted image and I could assign it a letter.)

I tried this again a few hours later and got:

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Unknown status.
Error: 0x9
code = 87 (0x57),
$module = "disk_bundle_vs_43994"
Tag: 0xFC28F0B681003B58
The parameter is incorrect
Error: 0xFFF0
code = 2147942487 (0x80070057),
$module = "disk_bundle_vs_43994"
Tag: 0xBD28FDBD64EDB8EE

I recall getting similar different errors from the same command in the GUI.

Thanks.

Lester

Can you try the same without Cygwin? Or on another machine without Cygwin?

What is your Windows version? Is it Windows 10?

Hi. We have Windows 10 Pro x64 on both of our Thinkpad Carbon X1 Touch PCs. I have not had this image-mounting problem before on either PC running ABR (as independent workstations -- no remote interactions). With the current build, I have this mounting problem on both PCs. I do not recall if the problem started with WIn10 or the previous Win8.1.

When trying to mount I run under an Administrator Cygwin window. I could try to figure out some .bat script to run under powershell.

Try the same on Windows 8.1. I've seen on this forum another thread with similar issue on Windows 10.

Hi

Try to use CAPITAL letter in the "--letter" option.

For example:
acrocmd mount --letter=G --loc="d:\$MACH" --arc="Archive(1)" --password="$1" --volume=$DiskC

Hi. Same response:

An error occurred while executing the command.
Error: 0x1510008
$module = "acrocmd_vs_43994"
Tag: 0x7A8E520180FDC065
Module has already been initialized.
Error: 0x9
code = 3758096386 (0xE0000002),
$module = "disk_bundle_vs_43994"
Tag: 0xFC28F0B681003B58

Looks like it is specific to your environment. Please, create support ticket for further investigation.