1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above 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 notice will disappear after you have made at least 3 posts.

Include / Exclude statement variables

Discussion in 'TSM Installation, Upgrade and Configuration' started by redmerlin, Jun 5, 2008.

  1. redmerlin

    redmerlin ADSM.ORG Member

    Joined:
    Feb 1, 2008
    Messages:
    15
    Likes Received:
    0
    Location:
    Madison, WI
    Is there anyway in an Include / Exclude statement to create a variable for the date?

    For example I have a directory that changes name based on the current date /etc/logs/2008/06/05 and I want to exclude the current day folder and only backup the older files.

    So what I would want is something to the effect of: Exclude.backup "/etc/logs/{get year}/{get month}/{get day}"
     
  2.  
  3. chad_small

    chad_small ADSM.ORG Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,210
    Likes Received:
    45
    Occupation:
    AIX/SAN/TSM
    Location:
    Gilbert, AZ
    You could but you would have to script it so it is appended to the inclexcl file before the backups run. So make sure you use an inclexcl file instead of the statements being part of the dsm.sys and use a preschedule command to find the previous statement and remove it, then append that exclude to the inclexcl file. It might be easier to keep a copy of the inclexcl file without the specified statement and daily overwrite the inclexcl file and append that days Exclude.backup

    Files:
    -------------
    inclexcl.clean <-without Exclude.backup
    inclexcl.list <-file with Exclude appended and used by TSM for backups
     

Share This Page