query backup into text file

itcsge

ADSM.ORG Member
Joined
Aug 9, 2007
Messages
128
Reaction score
1
Points
0
I'm looking to streamline our restore process... want to be able to run 4 cmdline processes using a script but have zero scripting experience.

first hurdle how do i get output of query backup -dirsonly c:\ into a text file? tried > to text file but doesn't work..

tia
 
Hi,
I think that will only work in a MS cmd-Line window and not on a TSM baclient cmd-line.
so open a cmd line window, change to your baclient-dir and type the command
as stated in your post. that should work.
 
sadly that doesn't work - had already tried.
 
I'm looking to streamline our restore process... want to be able to run 4 cmdline processes using a script but have zero scripting experience.

first hurdle how do i get output of query backup -dirsonly c:\ into a text file? tried > to text file but doesn't work..

tia

Use dsmadmc and redirect output to your text file.
 
sorry if I'm wrong - but doesn't this query only work with using "dsmc" (not with admin cmd - dsmadmc) ??

In my case I get a perfect result after changing to
"c:\program files\tivoli\tsm\baclient\"
and executing:
"dsmc query backup -dirsonly c:\ > mytextfile.txt"
 
rznadmin - ok sorry got you now! works a treat! many thanks....
 
sorry if I'm wrong - but doesn't this query only work with using "dsmc" (not with admin cmd - dsmadmc) ??

In my case I get a perfect result after changing to
"c:\program files\tivoli\tsm\baclient\"
and executing:
"dsmc query backup -dirsonly c:\ > mytextfile.txt"

My mistake. I was thinking of a query ran against the TSM Server - I guess I am not yet wide awake!
 
Back
Top