分类:
2009-01-22 17:35:31
今天设置了DP的备份JOB,记录下常用的命令.
1.设置备份的Pre-exec与Post-exec
默认的Pre-exec与Post-exec的PATH:/opt/omni/lbin
设置时应写上全路径:FOLDER/begin_backup.sh
2.remsh调用在主机ehist中的备份JOB:ARCH_MASS
remsh ehist -n "/opt/omni/bin/omnib -datalist ARCH_MASS"
3.查看JOB名为:ARCH_EMES的24小时内的所有session
omnirpt -report list_sessions -timeframe 24 24|grep -w ARCH_DB|grep Completed|awk '{print $14}'
omnirpt -report list_sessions -timeframe 240 240 |grep -w DB_SIST
omnirpt -report list_sessions -timeframe 09/05/10 00:00 09/05/25 00:00 |grep -w DB_BACK
4.查看session为:"2009/01/22-39" 的备份内容
omnidb -filesystem mass:/ARCH "/ARCH" -session "2009/01/22-39" -catalog |awk '{print $7}'