• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • 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.


    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.

Shouldn't EXCLUDE inactivate any existing backups?


ADSM.ORG Senior Member
I have a RHEL client running SP v7.1.6.2 to a SP server running

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/*"


ADSM.ORG Senior Member
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.


ADSM.ORG Moderator
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


ADSM.ORG Senior Member
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.


ADSM.ORG Moderator
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)


ADSM.ORG Senior Member
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)
Using those commands both active files and directories are listed.

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 9 18.0%
  • Keep using TSM for Spectrum Protect.

    Votes: 29 58.0%
  • Let's be formal and just say Spectrum Protect

    Votes: 8 16.0%
  • Other (please comement)

    Votes: 4 8.0%

Forum statistics

Latest member