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

One node with Daily, Weekly, Monthly and Yearly schedules

Rigido

ADSM.ORG Senior Member
#1
Hi, a customer asked for such backup schedule and I was thinking to:
  • Set offline backup day to Saturday at 07:00
  • Define daily, weekday, online backup
  • Define a weekly offline backup every Saturday with priority of 3
  • Define a monthly offline backup Saturday, first week of every month with priority of 2
  • Define a yearly offline backup Saturday, first week, January with priority of 1.
The problem I see is that priority rely on window start and as we are talking about AIX shell scripts to start DB2 backups, start time is near 0 and I think TSM could try to start all other schedules.
Am I wrong? Did someone face such configuration?

Thanks.
 

LED888

ADSM.ORG Moderator
#3
NOTE: If there is a problem encounter with the schedule backup.
If you do not use the TSM Scheduler, there will be no messages in the dsmsched.log.
Its because the schedule service/daemon did not start the schedule backup.
Can look in the dsmerror.log, will not know what events leading up to the error since there are no messages in the dsmsched.log.

When using the Task scheduler or CRON will need to redirect the out put into a file.
Bad news, there will be no date and time stamp with the messages.

Good Luck,
Sias
 

Rigido

ADSM.ORG Senior Member
#5
Hi,
I thought to switch from execute a shell script to launch a "su - USER -c" commnd so, if I understood well, the process will last as long as the backup process lasts so it should be enough to set the startup window to few minutes and lower priority schedules should not run.

I would like to keep using TSM scheduler for the messages (thank you Marclant for the tip about clctimestamp) and for the centralized management.

Instead of cron I would schedule a shell script that checks "which saturday is today" (1st of the year, 1st of the month or just another of the month) and launch the backup accordingly. ;)

Thanks for the advices.
 

Rigido

ADSM.ORG Senior Member
#6
Something like this:
Code:
#!/bin/ksh

#
# Controlla se e' Sabato
# %w: Displays the weekday as a decimal number in the range 0-6 (Sunday = 0).
#
WD=$(date +%w)
if [ $WD -eq 6 ] ; then
  #
  # Controlla se e' il primo Sabato dell'anno
  # %j: Displays the day of year as a decimal number (001-366)
  #
  if [ $(date +%j) -lt 8 ] ; then
    FREQ="Y"
  #
  # Controllo se e' il primo Sabato del mese in corso
  # %d: Displays the day of the month as a decimal number (01-31)
  #
  elif [ $(date +%d) -lt 8 ] ; then
    FREQ="M"
  else
    FREQ="W"
  fi
elif [ $WD -gt 0 ] ; then
  FREQ="D"
else
  FREQ="NOGO"
fi

case "$FREQ" in
"Y") echo "YEARLY" ;;
"M") echo "MONTHLY" ;;
"W") echo "WEEKLY" ;;
"D") echo "DAILY" ;;
  *) echo "NO GO" ;;
esac

exit 0
 

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