UNSOLVED

John_Schneider

updated

16 years ago

0

13297

January 26th, 2011 09:00

Is there any document that explains the syntax for exclude or include options in Avamar Datasets?

I have a list of things I need to exclude or include in various datasets in our environment, and the Avarmar Administration manual has no examples on how to exclude, or what is the heirarchy of includes and excludes.  What wildcards work in what situations?  And how do I wildcard directories, so it skips some directories, but not others?

Here are some exacmples.  On our AIX Oracle database servers, I want to exclude all *.dbf files, in all directories.   Which syntax would work:

/*/*.dbf

*.dbf

*/*.dbf

I have the same issue with Cache database files.  On some datasets, I want to exclude all CACHE.DAT files, so which of these would work?

/*/CACHE.DAT

*/CACHE.DAT

CACHE.DAT

But, I have other datasets where I want to exclude everything, UNLESS it is a CACHE.DAT file, and then I want to back up ALL of those.  So, how do I set a rule to exclude everything, do I just use one of these?

*
/*/*
*/*
But then I need an include to include all CACHE.DAT files.  If I have an exclude that excludes everything, will an include rule override that?  Can I just include:
CACHE.DAT
or do I have to specify wildcards for the directories, as in:

/*/CACHE.DAT

*/CACHE.DAT

Basically, what we need here is a good manual, written by EMC, with lots and lots of explicit examples.  But I would appreciate any help you can give me.

John Schneider

Sisters of Mercy Health System

314-750-8721

  • chrisvemc

    50 Posts

    4186

    0

    Posted January 30th, 2011 20:00

    I use a lot of includes and exclude, but I must state that I have no experience in backing up AIX oracle with Avamar.

    I have only been using Avamar to back up Windows File systems, MS SQL, MS Exchange, MS Sharepoint.

    *.[extension] works for me, but be weary where you start creating your exclusions.

    exampe:

    I have a windows system with a C and D drive. There is a "group" folder and a "home" folder under the root of D.

    D:\Group\

    D:\Home\

    If I wanted to exclude DAT files from the "Group" Folder backup, I would do the following:

    Source Data = D:\Group\

    Inclusions = D:\Group\

    Exclusions = *.DAT

    BUT if I wanted to backup just the DAT files from "Group" folder, I would do the following:

    Source Data = D:\Group\

    Inclusions = *.DAT

    Exclusions = D:\Group\

    I came about this by trial and error and time spent when I had set up my backup data sets.

    Hope this helps.

  • gcck

    1 Rookie

    •

    12 Posts

    4185

    0

    Posted May 19th, 2011 12:00

    If I do the following (as a last ditch effort):

    OS: Windows 2003

    Avamar: 5.x

    Source: F:/

    Exclude: F:/

    Include: *.bak

    Avamar still picks up *.safe files.

    Hints? Clues?

    CDKotran

  • eskolnik

    5 Posts

    4185

    0

    Posted June 18th, 2014 12:00

    Yes I agree the documentation is very poor at best in this area. 

  • eskolnik

    5 Posts

    4185

    0

    Posted June 19th, 2014 06:00

    I don't want excludes to be done on the client, one loses control that

    way.

    How does one exclude any drive? is it *:\ or **\ or what?

  • pawankumawat

    1 Rookie

    •

    355 Posts

    4185

    1

    Posted June 19th, 2014 06:00

    Hello,

    You can also use avtar.cmd file. I hope this will be useful for you -

    To skip Drive/Folder/Files on windows system –

    1. Create avtar.cmd file under C:\Program files\avs\var location on client.
    2. To skip a whole drive, add following entry in avtar.cmd file –
      • --exclude=D:\**
    3. To skip a whole folder, add following entry in avtar.cmd file –
      • --exclude=C:\Users\**
    4. To skip a folder which name contains space, add following entry in avtar.cmd file –
      • --exclude=”C:\Program Files”
    5. To skip a file with specific extension within a folder and all subfolders, add  following entry in avtar.cmd file –
      • --exclude=C:\Windows\debug\**.log
    6. To skip a file with specific extension within a folder without skipping in subfolders, add following entry in avtar.cmd file –
      • --exclude= C:\Windows\Globalization\*.nlt
    7. To skip a specific file within all drives, add following entry in avtar.cmd file –
      • --exclude=*\filename
    8. To add anything as a comment, use following syntax –
      • # This drive is excluded as per ticket ABC1234

    Regards,

    Pawan

  • eskolnik

    5 Posts

    4185

    0

    Posted June 19th, 2014 07:00

    That doesn't show me how to use wild cards ...

  • pawankumawat

    1 Rookie

    •

    355 Posts

    4185

    0

    Posted June 19th, 2014 07:00

    When we use avtar.cmd file on client to exclude any file or folder, it does not affect any other client. On other hand, if we exclude files using a dataset, other clients using that dataset can be affected. Please be careful when you use dataset to exclude files or folders.

    I have already mentioned how to exclude drive using avtar.cmd in my last post. For doing same task using dataset -

    1. Go to Tools > Manage Dataset

    2. Select dataset which you want to modify and click exclusion tab.

    3. Select plugin type and browse for files which you want to exclude.

    4.Click on + sign to add file/folder to exclusion list.

    ECN1.png

    Regards,

    Pawan

  • J_H_

    2 Intern

    •

    498 Posts

    4185

    0

    Posted June 19th, 2014 10:00

    my 2cents

    to exclude in a specific dir

    --exclude=/u10/oradata/mydb/*.dbf

    for any place with in a dir (meaning any place below the top dir)

    --exclude=/u10/**/*.dbf

    that double /**/  is supposed to mean in ANY DIR that matches this path  - so if you had a 3 dbf's in different dirs. under /u10/  it would exclude those dbf's no matter where they are (I have verified this)

    I have not tried but I figure this might work

    --exclude=/**/*.dbf

    I put mine on the server because the same policy is used to back all AIX servers, and adding too much to the dataset exclude causes overhead if I add one thing for serverA then something Different for serverB  then C  then D.

    to me you end up with a bunch of overhead for excludes on servers that don't need it.  And when you retire a server - how many people remember to go look at the excludes in the dataset to see if something was just for 1 server.

    but everybody has their own way of thinking.... so your choice...

    hope the exclude examples help you.