Solved

how to run a TSM script twice a day?

Posted on 2016-10-20
9
50 Views
Last Modified: 2016-10-24
Hi, i have a script (BASEBKPFULL) for a full TSM database backup wich runs every day at 9:00 am.  and  i want to run it again at 15:00 so im creating a new schedule:

def sched  BASEBKPFULL  T=A  CMD="RUN BASEBKPFULL" ACT=yes   Desc= Full Backup TSM Database using BASEBKPFULL script   STARTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY

Please let me know if this is correct or if i should modify/add/delete any parameter.

Kind regards.

Santiago.
0
Comment
Question by:Santiago videla
  • 5
  • 4
9 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 41852786
Hi Santiago,

you could add the PERIOD and PERUNITS parameters, yet Per=1 and Peru=Days are the default values anyway.

I assume that the missing double quotation marks " around the description phrase are just due to copy/paste or character set or the like reasons (?)

def sched  BASEBKPFULL  T=A  CMD="RUN BASEBKPFULL" ACT=yes   Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS   STARTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY

The other parameters are all correct, so this schedule should work like a charm (if the underlying script "BASEBKPFULL" is syntactically correct, that is).

wmp
1
 

Author Comment

by:Santiago videla
ID: 41852821
Dear Woolmilkporc,
                                    Thank a lot for your quick response. Yes the quotation marks were missed due to copy paste and BASEBKPFULL  is our sintaxis for the script.

One more question. This script contain The following commands:

line1 BACKUP DB DEV=LTO5 type=FULL scratch=yes Wait=Yes
line-5 if (rc_ok)
line 8 delete volhist type=dbb todate=-1
line 10 backup devconfig
line 15 backup volhistory
line 20 expire i
line 25 Exit.

Do you think its ok to execute it twice a day? Your opinion will be really aprecciated.

Thanks a lot for all your help-

Santiago.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41852866
Do you use DRM? If so (and only if so), you should not use DEL VOLH to delete DBB versions, you should set the DRMDBBACKUPEXPIREDAYS parameter instead.
Besides that, the script can well run twice a day. The DEL VOLH command run in the afternoon will not find anything to delete, but this will not result in an error message.
Only one EXPIRE I process can run at any given time, so if the process started in the morning hasn't yet finished the second process will not start, but this won't do any harm either.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Closing Comment

by:Santiago videla
ID: 41854185
Thanks a lot for all your help. Is really nice to have an expert helping you.
0
 

Author Comment

by:Santiago videla
ID: 41856985
woolmilkporc,
                           Hi! im having an invalid action message whe i try to add the new schedule:

This is the comand:

def sched BASEBKPFULL T=A CMD="RUN BASEBKPFULL" ACT=yes Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS STARTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY

And this is the message:

ANR2602E DEFINE SCHEDULE: Invalid action - YES.
ANS8001I Return code 3.


Please any idea/ solution?

Thanks in advance
0
 

Author Comment

by:Santiago videla
ID: 41857014
Woolmilkporc,
                              Here is an update: i changed the act=yes parameter to act=command. So the entired command is the following:

def sched BASEBKPFULL T=A CMD="RUN BASEBKPFULL" ACT=Command Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS STARTTIME=15:00:00 Dur=10 duru=minutes DAYOFWEE
K=ANY


And this is the error:

ANR2651E DEFINE SCHEDULE: Invalid combination of one or more of the following parameters: cmd, type, action, objects, options.
ANS8001I Return code 3.


Any sugestion?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41857070
ACT ("ACTION") is not allowed for administrative schedules.
What you want to specify is ACTIVE=YES which cannot be abbreviated. Sorry that I overlooked this in your and my postings (again, a copy-and-paste  thing!)
0
 

Author Comment

by:Santiago videla
ID: 41857073
Wool,
           No problem! Please can you copy here the right sintax for the complete command please?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41857099
Here you go:

def sched  BASEBKPFULL  T=A  CMD="RUN BASEBKPFULL" ACTIVE=yes   Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS   STARTTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We planned to use NetApp's SnapManager for Exchange (SME) to make three snapshots a day for quick recovery. Additional we planned to use Symantec NetBackup7 to backup to tape media for disaster recovery. We followed the best practice guide from NetA…
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question