Skip to main content

Include parameter not recognized on Command Line backup

Thread needs solution

When I try to run the following command line:

acrocmd backup file --include=C:\,D:\,E:\ --loc=G:\AcronisBackups --arc=File

I get:

acrocmd : Invalid command-line format.
At line:1 char:1
+ acrocmd backup file --include=C:\,D:\,E:\ --loc=G:\AcronisBackups --arc=File
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Invalid command-line format.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

Error: 0x1510001
$module = "acrocmd_vs_38929"
Tag: 0xB6053F4381056D4A
Parameter 'D:\' is not recognized.
Error: 0x151004E
$module = "abr11cli_vs_38929"
Tag: 0x11154F871505E337

If I remove the ,D:\ then I get that the E:\ is not recognized.

I'm trying to backup all three drives in one Full backup.

0 Users found this helpful

Never mind. I tried the following and it worked:

acrocmd backup file --include="C:\,D:\,E:\" --loc=G:\AcronisBackups --arc=File --log=$Flog

It seems that the Include string needs to be enclosed in double quotes. It would have been nice to have this in the documentation, Would have saved a lot of time.

Thank you for your posting! In fact it is described in our user guide:

Enclosing parameter values that contain commas and space characters

However, I'll forward your feedback to our documentation team so that they can consider the ways to make this information more evident.

Thank you!