What we are missing from our script at the moment as the server side file/directory exclusions, which is important. Where are these stored on TSM/Spectrum, and what SQL statement could we use to pull them out?
Those are stored in a combination of places:
- client option set on the server
- client option file (dsm.opt/dsm.sys) on the client
- Windows registry key FilesNotToBackup
- VSS writers for SystemState and other Microsoft app using VSS like SQL and Exchange
The only place you can query it and get a comprehensive list is on the client using:
dsmc query inclexcl
Every client have their own list, so you have to query each client.
However, the only one that is controlled by the server are the client option sets, which you can query using:
QUERY CLOPTSET
And this query to see which nodes have which client option set:
SELECT DOMAIN_NAME,NODE_NAME,OPTION_SET FROM NODES WHERE OPTION_SET is not null
Set those up on the new server. You don't really need to worry about the include/excludes on the clients, you will just be changing the server they are pointing to and they will keep their current include/exlude from the option file.