RHEL 8.x Spectrum Protect Schedule the Backups
From Notes_Wiki
Home > RHEL > RHEL 8.x > Backup tools > Spectrum Protect Backup > Spectrum Protect Schedule the Backups
Schedule Daily backup
- On the backup server, open backup console
- dsmadmc
- Schedule Daily backup
- > DEFINE SCHEDULE <domain> <clientname_DAILY_BK> TYPE=CLIENT ACTION=ARCHIVE OBJECTS='"/<mount-point1>/" "/<mount-point2>/" /<mount-pointn>/' OPTIONS='-subdir=yes -archmc=<management-class>' DESCRIPTION='Daily Backup of <client_name>' SCHEDSTYLE=ENHANCED STARTDATE=05/19/2022 STARTTIME=17:30:00 DAYOFWEEK=ANY PRIORITY=5 DURATION=30 DURUNITS=MINUTES
- Ex:
- > DEFINE SCHEDULE FSDOM SPCLIENT1_DAILY_BK TYPE=CLIENT ACTION=ARCHIVE OBJECTS='"/" "/home/"' OPTIONS='-subdir=yes -archmc=FSMGT' DESCRIPTION='Daily Backup of SPCLIENT1' SCHEDSTYLE=ENHANCED STARTDATE=05/19/2022 STARTTIME=17:30:00 DAYOFWEEK=ANY PRIORITY=5 DURATION=30 DURUNITS=MINUTES
- Associate the schedule with the client node
- > DEFINE ASSOCIATION <Domain> <clientname_DAILY_BK> <clientname>_BA
- Ex:
- > DEFINE ASSOCIATION FSDOM SPCLIENT1_DAILY_BK SPCLIENT1_BA
Schedule Weekly backup
- On the backup server, open backup console
- dsmadmc
- Schedule Weekly backup
- > DEFINE SCHEDULE <domain> <clientname_WEEKLY_BK> TYPE=CLIENT ACTION=ARCHIVE OBJECTS='"/<mount-point1>/" "/<mount-point2>/" /<mount-pointn>/' OPTIONS='-subdir=yes -archmc=<management-class>' DESCRIPTION='Weekly Backup of <client_name>' SCHEDSTYLE=ENHANCED STARTDATE=05/19/2022 STARTTIME=17:30:00 DAYOFWEEK=<starting-two-letters-of-the-day> PRIORITY=5 DURATION=30 DURUNITS=MINUTES
- Ex:
- > DEFINE SCHEDULE FSDOM SPCLIENT1_WEEKLY_BK TYPE=CLIENT ACTION=ARCHIVE OBJECTS='"/" "/home/"' OPTIONS='-subdir=yes -archmc=WEEKLY' DESCRIPTION='Weekly Backup of SPCLIENT1' SCHEDSTYLE=ENHANCED STARTDATE=05/19/2022 STARTTIME=17:30:00 DAYOFWEEK=MO PRIORITY=5 DURATION=30 DURUNITS=MINUTES
- Associate the schedule with the client node
- > DEFINE ASSOCIATION <Domain> <clientname_WEEKLY_BK> <clientname>_BA
- Ex:
- > DEFINE ASSOCIATION FSDOM SPCLIENT1_WEEKLY_BK SPCLIENT1_BA
Check the schedule status
- Check the all the schedule
- > q schedule * f=d
- Check all the schedules for single domain
- > q schedule <domain> f=d
On the client node, stop / start the backup agent for schedule to effect
- Check dsmcad service running.
- ps -ef | grep dsmcad
- If service running kill the same
- kill -9 <processname>
- Start dsmcad in RHEL client
- cd /opt/tivoli/tsm/client/ba/bin
- ./dsmcad
- Start dsmcad in AIX
- cd /usr/tivoli/tsm/client/ba/bin64
- ./dsmcad
Change backup schedule
Update day of the week for client backup schedule
- Check the current day of the week for the schedule
- > q sched * <schedule-name> f=d
- Ex:
- > q sched * GBBPRD_WKLY_BKP f=d
- Change the schedule running date to saturday
- > update schedule <Domain-Name> <schedule-name> DAY=<day-of-the-week>
- Ex:
- > update schedule PRDFSDOM GBBPRD_WKLY_BKP DAY=SA
- Check the status
- > q sched * <schedule-name> f=d
- Ex:
- > q sched * HDBNPRD_WKLY_BKP f=d
Change administrative schedule
Update day of the week for administrative schedule
- Check all administrative schedules
- > q sched * t=a
- Check particular schedule in detail
- > q sched <schedule-name> t=a f=d
- Ex:
- > q sched WEEKLY_NONPRDWKLY_MIGR t=a f=d
- Change the schedule running date to all days
- > update sched <schedule-name> t=a day=any
- Ex:
- > update sched WEEKLY_PRDWKLY_MIGR t=a day=any
Delete the schedule
- Check the schedule
- > q sched
- Delete the schedule
- > DELETE SCHEDULE <domain-name> <schedule-name>
- Ex
- > DELETE SCHEDULE NONPRDFSDOM GB4HNODE2_WKLY_BKP
- Delete the association
- > DELETE ASSOCIATION <domain-name> <schedule-name> <nodename>
- Ex:
- > DELETE ASSOCIATION NONPRDFSDOM GB4HNODE2_WKLY_BKP GB4HNODE2_BA
- Confirm schedule deleted
- > q sched
Home > RHEL > RHEL 8.x > Backup tools > Spectrum Protect Backup > Spectrum Protect Schedule the Backups