Shouldn't EXCLUDE inactivate any existing backups?

droach

ADSM.ORG Senior Member
Joined
Jan 7, 2008
Messages
239
Reaction score
13
Points
0
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
 
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.
 
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
 
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.
 
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)
 
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.
 
Back
Top