• 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.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    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.

delete backup - many nodes

asusg1

Active Newcomer
#1
Environment:
TSM Server 7.1.7
TSM B/A Client 7.1.6.4

Good afternoon,
We need to delete some old backup files from many nodes.
I know I can accomplish this stask with the command "delete backup", but I have to do it node by node.
Due to the fact that the "delete backup command" will be always the same, something like "delete backup "x:\backup\*.trn" -subdir=yes -deltype=inactive -todate=04/04/2017", I wonder if there is a way to schedule the same task, maybe with the old "Administration Center", in order to achieve the same results.
Do you have any experiences or some examples to share?

Thank you very much

Best Regards.

Frank
 

marclant

ADSM.ORG Moderator
#2
Delete is not a valid action for a client schedule.

You could create a new management class for those .trn files with a shorter retention. And then in a client option set, give this option to all the clients:
include ?:\...\*.trn TRN_MC

This way, you deal with the problem now and you prevent it from happening in the future.
 

chad_small

ADSM.ORG Moderator
#6
So to be a little more clear do you need to delete backups or their data in general because they are decommed drives/servers? If you need to delete the clients data do it as a server script by generating a command list from an SQL script.

SELECT 'DEL FILESPACE', VARCHAR(NODE_NAME,20) as NODE_NAME, FILESPACE_ID, 'NAMETYPE=FSID', 'WAIT=YES' from FILESPACES where node_name in ('NODE1','NODE2','...') ordere by NODE_NAME

Take the output and paste it into a macro or TSM server script (preferable) and execute it or schedule it. If the nodes to have data deleted match a pattern you could use that with the IN option

where node_name in (select node_name where node_name like 'WIN-VISTA-%') blah blah blah

or

where node_name in (select node_name from nodes where lastacc_time<=(current_timestamp - 90 days))
 

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: 8 21.6%
  • Keep using TSM for Spectrum Protect.

    Votes: 19 51.4%
  • Let's be formal and just say Spectrum Protect

    Votes: 6 16.2%
  • Other (please comement)

    Votes: 4 10.8%

Forum statistics

Threads
30,967
Messages
131,778
Members
21,224
Latest member
alexp36
Top