Direkt zum Inhalt

Command Line excludes-On Windows-Not working

Thread needs solution

I am facing the issue similar to

http://forum.acronis.com/forum/19620

On Windows Platform

Using a command line arguments to exclude the folders and it's not working

C:\>"C:\Program Files\Acronis\CommandLineTool\acrocmd" backup file - --incl
ude=C:\test -exclude_mask=*.cpp --loc=C:\temp\ --arc=disk_archive
An error occurred while executing the command.
Error code: 0x1510008
Tag: 0x7A8E520180FDC06D
The optional value is null.
Error code: 0xAC0001
Tag: 0xA88E114E29A6ED1D

I appreciate any help on this issue

Thanks,
RRG

0 Users found this helpful

ABR11? Works on my machine. Build 17318, with exactly the same line ( except some typos that would cause 'invalid command line syntax' errors )
"C:\Program Files\Acronis\CommandLineTool\acrocmd.exe" backup file --include=C:\test --exclude_mask=*.cpp --loc=C:\v\ --arc=testarc
Build 17217 errors out with the error you described.

Thanks you so much!

Looks like ,I was on Build 17217.I will update and check it out.

Thanks again!!!!

I am running ABR11 for Linux Build 17318.
I am trying to take a full backup of all disks and exclude the /var/spool/asterisk/monitor/ folder and it is not working. The command no longer errors out now that I am on Build 17318. Now the command completes but it still backs up the /var/spool/asterisk/monitor/ directory.
Am I missing something? I have read the command line reference guide and I think I have entered the syntax correctly.

I am using the command below but it is not working.
acrocmd backup disk --loc=/mnt/backup --arc=CVGHQPBX001_A --plain_archive --compression=max --exclude_mask=/var/spool/asterisk/monitor/*.WAV

Syntax for exclude command ( http://www.acronis.com/support/documentation/ABR11/index.html#12066.html , it's the same for backup exclusions) allows either mask or base forlder, but not mask under the specified folder.

I actually entered my syntax incorrectly in my last post.
The command I had been using was:
acrocmd backup disk --loc=/mnt/backup --arc=CVGHQPBX001_A --plain_archive --compression=max --exclude_mask=/var/spool/asterisk/monitor/

It did not work so I used:
acrocmd backup disk --loc=/mnt/backup --arc=CVGHQPBX001_A --plain_archive --compression=max --exclude_mask=/var/spool/asterisk/monitor/*.WAV

This command actually worked, in that none of the WAV files were backed up.
The base folder I want to exclude is actually a mount point for a NAS. Perhaps I need to create a script that dismounts the mount point, takes the backup and then recreates the mount point?

Hi Chris,
your first version can't work because you have to use "--exclude_name" for files or folders.
--exclude_mask can only be used with masks like "*.WAV".
While restore only knows the --exclude parameter with both options, backup has to be fed with 4 different --exclude_ parameters.
See this one for more options please: http://www.acronis.com/support/documentation/ABR11/index.html#11797.html

Regards, Ralf

I am not sure what I am doing wrong. I have reviewed the Exclude options as well as the examples of how it is used and I beleive I am usign the correct command, but the folder is still not exluded. I used the Exclude_Names paramater last night and the folder is still not exluded.

I am backing up a disk, but I think I should still be able to exclude a folder.

acrocmd backup disk --loc=/mnt/backup --arc=CVGHQPBX001_A --plain_archive --compression=max --exclude_names=/var/spool/asterisk/monitor/