RHEL 8.x Spectrum Protect Schedule the Backups
From Notes_Wiki
Revision as of 11:28, 12 May 2023 by Saurabh (talk | contribs) (→On the client node, stop / start the backup agent)
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
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