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.
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.
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...
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.