Include-exclude

ravikanth

ADSM.ORG Member
Joined
Apr 27, 2004
Messages
43
Reaction score
1
Points
0
Website
Visit site
Hi all,

Below are the include-exclude statements in one of my TSM client's dsm.sys file. I want to know what are the files getting backed up while running incremental backup. When I try to check with preview command i am unable to see /u01 and /u02 file systems. I have doubt whether incremental backup is taking backup of /u01 and /u02 filesystems. Any thoughts on this. Thanks in advance.

DOMAIN /u01
DOMAIN /u02
DOMAIN /var
DOMAIN /

exclude *.dbf
exclude /.../*
exclude /*
include /etc/*
include /etc/.../*


Ravikanth
 
Thats because of the way the preview command works.
Try:
Code:
preview backup /u01 -filename=u01.prev -traverse=y
Take a look at the help file for the preview command:
1.2.26 Preview

The preview command simulates a backup or archive command without
sending data to the server. The preview command generates a tab
delineated text file that can be imported into a spreadsheet
program. The preview contains information such as whether the file
is excluded or included. If the file is excluded, the pattern, or
reason, the file is excluded will be listed, along with the source
for the pattern.

Supported Clients

This command is valid for all UNIX and Linux clients.

Syntax

.-ALL--.
>>-PREview----Backup|Archive----filespec-- -filter=--+-INCL-+--->
'-EXCL-'

.-+-yes-+-----.
| '-no--' |
>--+-------------+--+-----------+--+-------------+-------------><
'- -filename=-' '- -console-' '- -traverse=-'


Parameters

Backup|Archive
Indicates whether to preview output from a selective
backup or archive operation.

filespec Specifies the path and file name that you want to back
up. Use wildcard characters to select a group of files or
all of the files in a directory.

-filter Specifies the output to display - included objects,
excluded objects, or both.

ALL Display output for included and excluded
objects. This is the default.

INCLuded Display output for included objects only.

EXCLuded Display output for excluded objects only.

-filename=
Specifies the filename in which to write the
tab-delineated output. The default is dsmprev.txt.

-console Output is written to the console, and the file.


>> Press enter to continue, 'q' to return to help menu
'u' to scroll up, or 'd' to scroll down: <<

-console Output is written to the console, and the file.

-traverse
Preview the current directory and subdirectories.

Yes Preview the current directories and
subdirectories. This is the default.

No Preview only the current directory, not
subdirectories.

Attention: Specifying -traverse does not preview
directories excluded using the exclude.dir option.


**>> End of help section; press enter to return to help menu.
Press 'u' to scroll up. <<**
 
I am getting the following error while runnig the preview command.

tsm> preview backup /u01 -filename=test.prev -traverse=y
Preview function invoked.
Depending on the number of objects to query, this operation could take a while t
o complete.

Are you sure you want to continue? (Yes (Y)/No (N)) y
ANS1081E Invalid search file specification '/u01' entered
Preview output has been successfully written to file 'test.prev'.

and the test.prev file showing blank

# more test.txt
Preview generated on 02/26/2008 15:43:53.
Name: Size: Type: Status: Pattern: Source: Mgmt Class:

what could be the wrong ?

Thanks,

Ravikanth
 
Well if you don't specify a filespace, it will just do whatever folder you are currently in, so try cd'ing to /u01 and running dsmc preview
 
After changing the directory the preview command is working fine without any error.

Thanks a lot !

Ravikanth
 
Just glad I could help. Stick around for a while and you'll pick up alot! I know I do.
 
Back
Top