Command Line Utility (acrocmd): '--exclude_names' parameter does not work with directory path names that contain spaces
I've just downloaded and installed the latest demo of ABR 11.5 (32256) (Windows) and I cannot get acrocmd to exclude directories from my backup that contain spaces in their path names.
I've tried the following command line variations...
acrocmd backup disk --progress --output=formatted --plain_archive --backuptype=full --exclude_names=c:\hiberfil.sys,c:\pagefile.sys,c:\data\,c:\virtual machines\,c:\virtual machines shared\ --loc=d:\backup --arc=media.tib --volume=2-1,2-2
acrocmd backup disk --progress --output=formatted --plain_archive --backuptype=full --exclude_names=c:\hiberfil.sys,c:\pagefile.sys,c:\data\,"c:\virtual machines\","c:\virtual machines shared\" --loc=d:\backup --arc=media.tib --volume=2-1,2-2
acrocmd backup disk --progress --output=formatted --plain_archive --backuptype=full --exclude_names=c:\hiberfil.sys,c:\pagefile.sys,c:\data\,c:\virtua~1,c:\virtua~2 --loc=d:\backup --arc=media.tib --volume=2-1,2-2
I've proven that c:\hiberfil.sys (file), c:\pagefile.sys (file) and c:\data (directory) are excluded from the backup fine. I just cannot get the other two ('c:\virtual machines' and 'c:\virtual machines shared') to be excluded.
I can create an equivalent backup job in the GUI and make the exclusions fine.
Please advise whether there is a workaround for this, or if it's a known issue, when a fix might be available.
Thanks
James

- Log in to post comments

Thanks very much for the prompt reply to this. I can confirm that if I remove the backslashes and keep the double quotes, then the exclusions work as I expected they would.
I was confused because in a few other posts, the advice was that directories need to be terminated with trailing backslashes...
http://forum.acronis.com/forum/22870#comment-87320
Maybe I misunderstood the context of that posting, but it did seem very similar.
I think the documentation could be improved in this respect to include an example similar to this one (e.g. one directory with no spaces, one with)
Anyway, to confirm; this command line works for me (hiberfil.sys & pagefile.sys are excluded by default, as you said)...
acrocmd backup disk --progress --output=formatted --plain_archive --backuptype=full --exclude_names=c:\data,"c:\virtual machines","c:\virtual machines shared" --loc=d:\backup --arc=media.tib --volume=2-1,2-2
That was my only obstacle to buying a license, so thanks again.
James
- Log in to post comments

Hello,
Jimmerthy, the information you require is contained in the Command-Line Reference. See "Syntax" > "Enclosing parameter values that contain commas and space characters":
http://www.acronis.com/support/documentation/ABR11.5/index.html#11692.h…
More about using slashes:
http://www.acronis.com/support/documentation/ABR11.5/index.html#743.html
- Log in to post comments

Thanks - I was using out of date documentation.
http://dl.acronis.com/u/pdf/ABR11_cmdlineref_en-US.pdf
- Log in to post comments