1. Please help support our sponsors by considering their products and services.
    Our sponsors enable us to maintain high-speed Internet connection and fast webservers.
    They support this free information and knowledge exchange forum service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions

Shouldn't EXCLUDE inactivate any existing backups?

Discussion in 'Backup / Archive Discussion' started by droach, Nov 29, 2017.

  1. droach

    droach ADSM.ORG Senior Member

    Joined:
    Jan 7, 2008
    Messages:
    204
    Likes Received:
    4
    Occupation:
    I'm thinking...
    Location:
    Cut and Shoot, Texas
    I have a RHEL client running SP v7.1.6.2 to a SP server running 8.1.0.0.

    On my RHEL client it was initially backing up a tmp folder with tons of junk files. I added the following command to stop it from backing up this folder:

    EXCLUDE.DIR /xyzdata

    The folder is no longer being backed up, but when I query the backups from the client for this folder I see a lot of Active files for this folder. Shouldn't it have expired (marked inactive) all of the existing previous backups of this folder as soon as the first backup ran with the new exclusion statement in the DSM.SYS file?

    Here is the output from the query:

    dsmc q b -ina "/xyzdata/*"
    2017-11-29_104524.png
     
  2.  
  3. ILCattivo

    ILCattivo ADSM.ORG Member

    Joined:
    Jul 9, 2013
    Messages:
    104
    Likes Received:
    2
    Location:
    Oxford, United Kingdom
    Because they've backed up at least once to the server and now you've excluded them, they will never expire and as such always remain as the 'Active' version.
    The BA Client will now no longer interrogate the files locally on the client to determine any changes or deletions to them compared to those existing on the server.
     
  4. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,641
    Likes Received:
    372
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    If you exclude them and you run another incremental backup of that directory structure, they will be changed to inactive. Excluding them alone will do nothing.

    Unless the excludes didn't take. Wrong stanza or wrong option file.

    Run this to check:
    dsmc query inclexcl
     
  5. droach

    droach ADSM.ORG Senior Member

    Joined:
    Jan 7, 2008
    Messages:
    204
    Likes Received:
    4
    Occupation:
    I'm thinking...
    Location:
    Cut and Shoot, Texas
    Thanks for the replies.

    ILCattivo, I believe it should expire these files as I have seen it do this on Windows clients.

    Marclant, I tried the query and the folder shows up as being excluded. Plus, I see that it is not getting backed up anymore in my scheduled backup. I see this in the dsmsched.log file:

    grep "/xyzdata" dsmsched.log | grep "11/29/2017"
    11/29/2017 01:52:02 Incremental backup of volume '/xyzdata'
    11/29/2017 01:52:20 ANS1115W File '/xyzdata' excluded by Include/Exclude list
    11/29/2017 01:52:23 Successful incremental backup of '/xyzdata'

    And, if I do a 'preview' I see that it knows not to backup that folder.

    dsmc preview backup "/xyzdata/*"
    IBM Tivoli Storage Manager
    Command Line Backup-Archive Client Interface
    Client Version 7, Release 1, Level 6.2
    Client date/time: 11/29/2017 18:32:22
    (c) Copyright by IBM Corporation and other(s) 1990, 2016. All Rights Reserved.

    Node Name: NODEX
    Session established with server SERVERY: Windows
    Server Version 8, Release 1, Level 0.0
    Data compression forced off by the server
    Server date/time: 11/29/2017 13:32:22 Last access: 11/29/2017 13:32:12

    Preview function invoked.
    Depending on the number of objects to query, this operation could take a while to complete.

    Are you sure you want to continue? (Yes (Y)/No (N)) y
    Preview output has been successfully written to file 'dsmprev.txt'.
    cat dsmprev.txt
    Preview generated on 11/29/2017 18:32:24.
    Name: Size: Type: Status: Pattern: Source: Mgmt Class:
    /xyzdata 0 Directory Excluded /xyzdata /opt/tivoli/tsm/client/ba/bin/dsm.sys STANDARD


    What I don't see is that it expired any files within that folder.
     
  6. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,641
    Likes Received:
    372
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    Are the active ones files or directories?
    dsmc query backup /xyzdata/* -su=yes -dirsonly (this will only list active directories)
    dsmc query backup /xyzdata/* -su=yes -filesonly (this will only list active files)
     
  7. droach

    droach ADSM.ORG Senior Member

    Joined:
    Jan 7, 2008
    Messages:
    204
    Likes Received:
    4
    Occupation:
    I'm thinking...
    Location:
    Cut and Shoot, Texas
    Using those commands both active files and directories are listed.
     
  8. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,641
    Likes Received:
    372
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    Puzzling
     

Share This Page