J_H_
3 Zinc

avtar.cmd --exclude

Jump to solution

I so wish the book had examples.

what I currently need to know

how to exclude a whole drive

is it --exclude=F:   or --exclude=F:\ or --exclude=F:\*   ?

so  have learned if using the avtar.cmd on windows the slash goes \

if using it on unix the slash goes /

that if thre is a space it has to have quotes around it  --exclude="C:\My Documents"

to exclude files in a dir  but sill backup sub dirs  --exclude=C:\trash\*

to exclude all files and all sub dirs --exclude=C:\trash\**

to exclude no matter where the file is found --exclude=*\myfile

other questions if some wants to answer ( or correct anything I have above)

if I want to exclude all pst  so all files that end in .pst  how would I do that?

0 Kudos
1 Solution

Accepted Solutions
J_H_
3 Zinc

Re: avtar.cmd --exclude

Jump to solution

Finally got it

--exclude=F:\**

this is working for me.

one thing to be sure to check for when you make the avtar.cmdfile is that you have windows set to show you known extensions to make sure it does not have the .txt on the end of it.

View solution in original post

0 Kudos
6 Replies
Bill_Clarke
3 Silver

Re: avtar.cmd --exclude

Jump to solution

When I ran avtar with excludes I specified an exclude file as you can put mutliple excludes in the file.

Not sure if wildcards are supported - I don't think they are but I'm sure somene can correct me?

The command below has more in it than you need as I was running multiple avtar's at once so needed to specify the cache files.

I used this:

C:\Progra~1\avs\bin\avtar.exe -c --id=MCUser --ap=MCUser1 --account=aumelpavsn01 --one-file-system --exclude-from="C:\Program Files\avs\var\x_drive_excludes.txt" --server=aumelpavsn01 --path=/clients/aumelpfs01.aurecon.info X:\ --label=aumelpfs01_X_Drive --cacheprefix=X_Drive --logfile="C:\Program Files\avs\var\clientlogs\X_drive_on_demand_logfile.log"

The 'x_drive_excludes.txt' file had entries like this in it:

"X:\Shares\Projects\Melbourne Water"

The above entry skipped the folder and all sub folders within.

0 Kudos
J_H_
3 Zinc

Re: avtar.cmd --exclude

Jump to solution

Bill - thanks for the info but you are off on your answer

I am looking for how to put the exclude option INTO the avtar.cmd txt file that you create on the client in avs/var so the backups read it when any jobs run.

I know wildcards can be use just not sure how to exclude a whole drive.

0 Kudos
Bill_Clarke
3 Silver

Re: avtar.cmd --exclude

Jump to solution

Ah yes similar to specifying the --cpu-throttle variable.  I have used the avtar.cmd before to do that.  The syntax should be the same since the example above is for avtar.exe.

Why don't you just try a few options and see what the result is with an on-demand backup?

0 Kudos
sandcruise
2 Bronze

Re: avtar.cmd --exclude

Jump to solution

Hi J.H,

To exclude the entire F:\ from backup, you may use --exclude=F:/**

To exclude all pst files, you can try --exclude=/**.pst

J_H_
3 Zinc

Re: avtar.cmd --exclude

Jump to solution

Finally got it

--exclude=F:\**

this is working for me.

one thing to be sure to check for when you make the avtar.cmdfile is that you have windows set to show you known extensions to make sure it does not have the .txt on the end of it.

View solution in original post

0 Kudos
fdxpilot
3 Argentum

Re: avtar.cmd --exclude

Jump to solution

I definitely agree that Avamar's use of wildcards could be better documented.  There's a lot of trial and error involved to find what works for your particular need.  Even support resorts to the trial-and-error method in their lab when asked wildcard questions.

0 Kudos