Results 1 to 2 of 2
  1. #1
    Member redmerlin's Avatar
    Join Date
    Feb 2008
    Location
    Madison, WI
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Include / Exclude statement variables

    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. #2
    Moderator chad_small's Avatar
    Join Date
    Dec 2002
    Location
    Gilbert, AZ
    Posts
    2,194
    Thanks
    1
    Thanked 25 Times in 24 Posts

    Default

    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
    Chad Small
    IBM Certified Deployment Professional
    chadsmal@gmail.com
    http://www.tsmadmin.com

Similar Threads

  1. Sql Include Statement
    By mark.swanston in forum TDP/Application Layer Backup
    Replies: 5
    Last Post: 03-20-2008, 10:14 AM
  2. Bypass Include/exclude statement
    By dmdmbj in forum TDP/Application Layer Backup
    Replies: 1
    Last Post: 02-15-2006, 10:16 AM
  3. Include Exclude Statement
    By alyeska in forum Backup / Archive Discussion
    Replies: 2
    Last Post: 03-19-2004, 11:53 AM
  4. exclude\include statement
    By rpask in forum Backup / Archive Discussion
    Replies: 4
    Last Post: 10-21-2003, 07:26 AM
  5. dsm.sys include/exclude statement
    By henrychen in forum Backup / Archive Discussion
    Replies: 1
    Last Post: 10-20-2003, 09:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •