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 statement variables

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

  1. redmerlin

    redmerlin New 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 Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,205
    Likes Received:
    44
    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