1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

include exclude in AIX

Discussion in 'TSM Client' started by venkattsm, Jun 5, 2008.

  1. venkattsm

    venkattsm New Member

    Joined:
    Aug 11, 2006
    Messages:
    55
    Likes Received:
    1
    Hello everyone ...
    The set-up is tsm client 5.4 in aix ..i am trying to bind a directory to a separate management class ..below is the entry in DSM.SYS ..

    SErvername tsm
    COMMMethod TCPip
    TCPPort 1500
    TCPServeraddress xx.xx.xx.xx
    passwordaccess generate
    managedservices webclient schedule
    errorlogret 30 D
    schedlogret 7 D
    inclexcl /usr/tivoli/tsm/client/ba/bin/inclexcl.file
    abqp615a[/usr/tivoli/tsm/client/ba/bin] # more inclexcl.file
    exclude.dir "/pcard01/oradata/*"
    exclude.dir "/pcard02/oradata/*"
    exclude.dir "/pcard03/oradata/*"
    exclude.dir "/pcard04/oradata/*"
    exclude.dir "/pcard05/oradata/*"
    exclude.dir "/pcard06/oradata/*"
    exclude.dir "/pcard07/oradata/*"
    exclude.dir "/pcard08/oradata/*"
    exclude.dir "/pcard09/oradata/*"
    exclude.dir "/pcard10/oradata/*"
    exclude.dir "/pcard11/oradata/*"
    exclude.dir "/pcard12/oradata/*"
    exclude.dir "/pcard13/oradata/*"
    exclude.dir "/pcard14/oradata/*"
    exclude.dir "/pcard15/oradata/*"
    exclude.dir "/pcard17/*"
    exclude "/usr/tivoli/tsm/client/ba/bin/dsmsched.log"
    include /oracle/10g/* 10ver_1year

    I tried by giving a different stgpool to this mgmtclass and tried a manual backup for the files in that directory but the data was flowing to the deafult mgmtclass destination ...all my excludes are working fine ...

    Regards,
    Venkat
     
  2.  
  3. PJ

    PJ Senior Member

    Joined:
    Nov 18, 2005
    Messages:
    1,066
    Likes Received:
    4
    Location:
    LU Germany
    The include should bind every file in /oracle/10g/ to the new mgmtclass but nothing underneath it. For that it would have to be /oracle/10g/.../*

    PJ
     
  4. venkattsm

    venkattsm New Member

    Joined:
    Aug 11, 2006
    Messages:
    55
    Likes Received:
    1
    Thanks PJ ...let me try ...
     
  5. ypcat

    ypcat New Member

    Joined:
    Oct 30, 2007
    Messages:
    130
    Likes Received:
    0
    Location:
    Toronto Canada
    If you're trying to bind a directory you need to use include.dir right?

    If you mean the contents of the directory and everything under (recursive) then PJ is exactly right.
     
  6. PJ

    PJ Senior Member

    Joined:
    Nov 18, 2005
    Messages:
    1,066
    Likes Received:
    4
    Location:
    LU Germany
    To be honest, I wasn't even aware, that something like include.dir exists and I can't really imagine, how it's supposed to work. I'll check it out when I'm back in the treadmill in monday.

    PJ
     
  7. heada

    heada Moderator

    Joined:
    Sep 23, 2002
    Messages:
    2,560
    Likes Received:
    168
    Occupation:
    Storage Administrator
    Location:
    Indiana
    include /full/path/to/start/of/dir/.../* {mgmt_class}

    This will include the contents of "dir" and all subdirectories with the management class of {mgmt_class} for normal backups.

    -Aaron
     
  8. ypcat

    ypcat New Member

    Joined:
    Oct 30, 2007
    Messages:
    130
    Likes Received:
    0
    Location:
    Toronto Canada
    Every so often you get someone who wants to back up a few directories and exclude everything else, but they have 11 million directories which are saved to the meta database, separately from the core data. Exclude.dir is your buddy in these cases. You can also bind them to a different management class using these include statements.
     
  9. PJ

    PJ Senior Member

    Joined:
    Nov 18, 2005
    Messages:
    1,066
    Likes Received:
    4
    Location:
    LU Germany
    Yeah, well - that is exclude.dir which makes a whole lot of sense because it practically says "don't bother with this path - don't even go there to check other inclexcl patterns - just ignore the whole thing" - and that's fine. But an include.dir would be utterly useless, as far as I can see.

    PJ
     
  10. ypcat

    ypcat New Member

    Joined:
    Oct 30, 2007
    Messages:
    130
    Likes Received:
    0
    Location:
    Toronto Canada
    Not if you want to bind directories to a different management class, but yeah, mostly useless. :)
     
  11. BBB

    BBB Moderator

    Joined:
    Feb 13, 2007
    Messages:
    2,075
    Likes Received:
    19
    Location:
    Brisbane, Australia
    I don't think include.dir exists, at least not officially. Or is it new?
     
  12. wim

    wim Senior Member

    Joined:
    Aug 14, 2007
    Messages:
    208
    Likes Received:
    2
    Hi,

    this is what I got when trying the "include.dir" statement:
    ANS1036S Invalid option 'INCLUDE.DIR' found in options file

    Also no references of the "include.dir" option in the manuals.
    I don't believe this option exist.

    Regards. Wim.
     
  13. ypcat

    ypcat New Member

    Joined:
    Oct 30, 2007
    Messages:
    130
    Likes Received:
    0
    Location:
    Toronto Canada
    I thought I read somewhere that directories are bound to the default management class and if you want to bind them elsewhere you use the include.dir but at my age memory, much like nostalgia just isn't what it used to be.

    Sorry for the confusion.
     
  14. PJ

    PJ Senior Member

    Joined:
    Nov 18, 2005
    Messages:
    1,066
    Likes Received:
    4
    Location:
    LU Germany
    Ahh, ok. The directories themselves bind to the class with the longest retention and that makes sense because you may otherwise end up with a file and no directory stored for it. To change the class for directories, you usually use the "dirmc" option, point it to a class with a very long retonly and keep it on disk. At least thats how we do it. An include.dir for that purpose would eventually make sense for cases where you have a very dynamic dir structure. Maybe something like that will be included sometime - but I'd rather guess that TSM 6.x will treat directories differently anyway.

    PJ
     

Share This Page