Schedule server maintenance operations to run outside of the client backup window, with as little overlap as possible.
After you determine a timeline, use the DEFINE SCHEDULE command to create schedules for each process. You can include scripts in each schedule so that commands are processed automatically. Use the DEFINE SCRIPT command to create a script and the UPDATE SCRIPT command to add lines.
/*--------------------------------------*/
/* Storage Pool Backup */
/*--------------------------------------*/
def script STGBACKUP "/* Run stg pool backups */"
upd script STGBACKUP "backup stg archivepool copypool maxproc=4
wait=yes" line=005
upd script STGBACKUP "backup stg backuppool copypool maxproc=4
wait=yes" line=010
upd script STGBACKUP "backup stg filepool copypool maxproc=4 wait=yes"
line=020
upd script STGBACKUP "backup stg filepool2 copypool maxproc=4 wait=yes"
line=025
upd script STGBACKUP "backup stg tapepool copypool maxproc=3 wait=yes"
line=030
def sched STGBACKUP type=admin cmd="run STGBACKUP" active=yes desc="Run
all stg pool backups." \
startdate=today starttime=08:00:00 dur=45 duru=minutes per=1 peru=day
commit
/*--------------------------------------*/
/* Deduplication */
/*--------------------------------------*/
def script DEDUP "/* Run identify duplicate processes. */"
upd script DEDUP "identify duplicates FILEPOOL numpr=4 duration=120" \
line=010
upd script DEDUP "identify duplicates FILEPOOL2 numpr=2 duration=120" \
line=015
def sched DEDUP type=admin cmd="run DEDUP" active=yes desc="Run identify
duplicates." \
startdate=today starttime=11:00:00 dur=45 duru=minutes per=1 peru=day
commit
/*--------------------------------------*/
/* Expiration
/*--------------------------------------*/
def script EXPIRE "/* Run expiration processes. */"
upd script EXPIRE "expire inventory wait=yes duration=120" line=010
def sched EXPIRATION type=admin cmd="run expire" active=yes desc="Run
expiration." \
startdate=today starttime=13:00:00 dur=45 duru=minutes per=1 peru=day
commit
/*--------------------------------------*/
/* Storage Pool Migration */
/*--------------------------------------*/
def script MIGRATE "/* Run stg pool migration */"
upd script MIGRATE "migrate stg archivepool duration=30 wait=yes" line=005
upd script MIGRATE "migrate stg backuppool duration=30 wait=yes" line=010
upd script MIGRATE "migrate stg filepool2 duration=60 wait=yes" line=015
def sched MIGRATE type=admin cmd="run MIGRATE" active=yes desc="Migrate
data to tape pools ." \
startdate=today starttime=14:00 dur=45 duru=minutes per=1 peru=day
commit
/*--------------------------------------*/
/* Storage Pool Reclamation */
/*--------------------------------------*/
def script RECLAIM "/* Run stg pool reclamation */"
upd script RECLAIM "reclaim stg filepool threshold=40 duration=120
wait=yes" line=005
upd script RECLAIM "reclaim stg filepool2 threshold=40 duration=120
wait=yes" line=008
upd script RECLAIM "reclaim stg tapepool threshold=60 duration=60 wait=yes"
line=010
def sched RECLAIM type=admin cmd="run RECLAIM" active=yes desc="Reclaim
space from FILEPOOL and TAPEPOOL." \
startdate=today starttime=16:00 dur=45 duru=minutes per=1 peru=day
commit
/*--------------------------------------*/
/* Database Backup */
/*--------------------------------------*/
def script DBBACKUP "/* Run DB backups */"
upd script DBBACKUP "backup db devc=ts3310devc type=full wait=yes" line=005
upd script DBBACKUP "backup volhist" line=010
upd script DBBACKUP "backup devconf" line=015
def sched DBBACKUP type=admin cmd="run DBBACKUP" active=yes desc="Run
database backup." \
startdate=today starttime=18:00:00 dur=45 duru=minutes per=1 peru=day
commit